Forum : ARM
Original Post
Post Information | Post |
---|---|
May 4, 2007 - 3:46pm
|
Hello !!! I am trying to program a STR712FR2 with STR7_pgm.exe and hex files in the motorola srec format. It is working fine when I am using RFLASHER. Is it possible ??? or do I have to convert the files to some other format ? I get "*** Error: No data in selected range." every time. /Martin |
Hi,
The srec format is different from the hex format, and STR7_pgm only handles hex files.
Most linkers can directly generate hex files. If yours can, then it's the best option.
If this is not possible, then you'll have to convert your file to the hex format. You can do that using RFlasher:
1. Load the srec file in the memory of RFlasher, open the memory view, right-click in it and you'll see the option that allows to save the content of the RFlasher memory to a hex file.
OR
2. Program srec file in the flash of the chip using RFlasher, then upload the content of the flash to a hex file using STR7_pgm.
Or you can find some conversion utilities. The gcc toolchain includes one. (called objcopy, I think)
Best Regards,
Vincent