Please help me!
I want to place the binary files into flash memory as constants. How can I do it?
Thank you.
Did you try a search in this forum? I have the impression that this was attempted several times in the past.
I beg your pardon!
Now I've learned the several ways to solve this problem:
1 - convert BIN file into *.c file and then compile it with project 2 - convert BIN file into HEX file at the specify location and then split this HEX with program HEX. 3 - The other way is LOAD Data HEX during Debug session into RAM use 'LOAD' keyword. Then I can program RAM contents into Flash.
all correct? Do anobody know the other way to resolve this issue?
It sounds correct. The one to use depends on what, how and when you need to update those constants.
I think more alternatives could be found, but it depends on what approach you are willing to use, I'm referring to compile-time or rum-time update of your Flash constants.
Options number 1, 2 and 3 are all compile-time ways to do it.
If you are looking for a compile-time solution, and options number 1, 2 and 3 cannot be used, you may be trying to solve a political problem :-)
This may help http://www.keil.com/support/docs/2218.htm
Thanks to everyone who pitched in and helped.
Of course, I see the difference between run- and compile- time placing BIN DATA. In a first time I want to compile-time place DATA file into ROM.
See also: srecord.sourceforge.net/ which contains the "C Array" format. It's Open Source.