2018-09-11 03:02 AM
Hi everyone,
i need to store in a flash area during programming a default value
What i have to do exactly?
Thanks
2018-09-11 04:59 AM
Well, that depends on what exactly do you mean by "default value", and how do you program the flash area.
One option would be to add the "default value" to a fixed position in FLASH into the .hex (e.g. using srecord) and then program the resulting combined .hex.
JW
2018-09-11 06:12 AM
Final Test?
Writing serial number, crypt keys or calibration data?
How about have a test mode for your app where it recognizes this data is missing and prompts the test operator/app to supply them?
Merge the unique data with the .HEX provided to the programming app in the test station. HEX files are not a complicated format.
Have the programming app in the test station do this automatically, from a data base, user interaction, earlier test, etc.
If you use the system loader in USART mode it's not that hard to code a PC based app to talk the documented protocol.
For SWD/JTAG you might want to get a pod supported by libraries and DLLs that facilitate integration into user test applications/scripts.