• Visit https://www.embeddedcomputers.net/ for Hardware; Software and all other things related to FlashcatUSB

Scripting to write Intel HEX format FW

Nonuf Yerbiz

New Member
Hi, all:
I'm presently able to write to my SPI flash of choice, a Numonyx M25P64, using BlackCatUSB (yeah!). File I'm using I believe is formatted as "Intel HEX", meaning LSB, and some addressing and checksum info packed in with the file. The ".hex" file for my 8388608 byte device ends up actually being 20,187,260 on my Win7 computer. Manually telling the BCU to write this file, it seems to figure out the format OK, and I get a good write (board boots up).
My problem comes when trying to script .hex files. For some reason if I make the script look for a .hex (as I can do manually) the console reports
"Unable to write data to flash device (out of bounds)" and stops.

Any suggestions what I'm doing wrong? I tried playing with the FwSize and FwLen variables, but maybe just not correctly. Missing a parameter command?

Anyone have an example of how to script writing a .hex file? All the scripts I looked at on here used .bin files.

Thanks for any help you can lend.
 
Can you post a copy of your script , so i can see , i have not tried to make a script for that format as yet , but i can try .
 
For others: I ended up converting my Intel .hex formatted files to plain binaries (.bin) using Total Phase's "Flash Center" app, which I already had installed. Converts between Intel .hex, Motorola .srec, and .bin. I'm sure there are millions of other tools to convert between the formats, but this was familiar and freely downloadable. Don't need to have their hardware attached for it to open.
 
Back
Top