Reprogram mod5213 from windows
Posted: Wed Sep 24, 2008 6:41 am
Hello all,
Based on the postings on the yahoo newsgroup and the source code in the folder
C:\Nburn\pctools\magicload, I developed a firmware loader using Labwindows/CVI.
In my code, I have to repace the communication call "cc.write(unsigned char* buf, int count)" with "ComWrt(int port, char* buf, int count)". All other file conversions and transfers were kept intact. The firmware file is downloaded 4 bytes @ each transfer just like Magicload.exe.
My program works well except one thing. I have to introduce at least 5 mS DELAY after each transfer (0f 4 bytes) to make the loading successful, otherwise the mod5213 will have checksum errors. While the Magicload.exe has no problem with that ( on the same PC machine). Does anybody know why this happens?
Thanks in advance.
Haomin
Based on the postings on the yahoo newsgroup and the source code in the folder
C:\Nburn\pctools\magicload, I developed a firmware loader using Labwindows/CVI.
In my code, I have to repace the communication call "cc.write(unsigned char* buf, int count)" with "ComWrt(int port, char* buf, int count)". All other file conversions and transfers were kept intact. The firmware file is downloaded 4 bytes @ each transfer just like Magicload.exe.
My program works well except one thing. I have to introduce at least 5 mS DELAY after each transfer (0f 4 bytes) to make the loading successful, otherwise the mod5213 will have checksum errors. While the Magicload.exe has no problem with that ( on the same PC machine). Does anybody know why this happens?
Thanks in advance.
Haomin