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.
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.