cancel
Showing results for 
Search instead for 
Did you mean: 

How to write a flash area during programming

Damiano Balzani
Associate III

Hi everyone,

i need to store in a flash area during programming a default value

What i have to do exactly?

Thanks

2 REPLIES 2

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

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.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..