I downloaded VB 2005 Express and it is way better than any other VB i have used. Support for COM port is back again and it is really easy to read HEX files either into byte arrays or to read the lines into a string array.
ReadAllText and ReadAllLines are really usefull functions
Since each line after the colon has the number of data bytes we can easily get the data bytes from the string. Just remember that they are stored LB, HB in the HEXFILE. Rearrange that part and send them out as a string to the comport.
In the pic collect them with HSERIN [HEX4 x] and they are ready to be written to the FLASH.
Do this for all lines until the next line in the HEX file has an address that is different from 16+last line's address, then we know we have gotten all data.
It can be done in any VB but in 6.0 and 2005 there is a comport object, 2003 does not have that.
and it is free
/me
Bookmarks