Reprogram mod5213 from windows

Discussion to talk about software related topics only.
Post Reply
linhm
Posts: 18
Joined: Fri Sep 05, 2008 6:39 am

Reprogram mod5213 from windows

Post by linhm »

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
linhm
Posts: 18
Joined: Fri Sep 05, 2008 6:39 am

Re: Reprogram mod5213 from windows

Post by linhm »

Problem solved.
Thanks.
Post Reply