2017-11-14 04:19 AM
Hi,
I have 100 units that I need to program with unique ID, SN... somewhere in the FLASH memory
What is the easiest way to do it?
Thx,
Michael
2017-11-14 04:26 AM
Hi,
Segger's J-Flash can do that automatically, you need to specify the Flash address and the ID start and range, and then it is incremented after each successful programming sequence.
I believe this could also be done with a ST-Link pod but with a bit of scripting to:
- insert an ID at a fix location inside the binary file then prog that file
- or prog the binary first, then write the ID at the wanted location in flash
I have never done something like this,but I believe that it could be done with a .bat file and the ST-Link CLI.
2017-11-14 05:33 AM
Thanks, I will look into J-flash and ST-link CLI.
I need to write several parameters into flash not only SN
2017-11-14 05:52 AM
The firmware itself can handle programming serial and calibration data into FLASH or OTP. We typically add test/configuration functionality into the devices, and a factory console mode.
You can integrate the writing into the production or final test stages, using/extending the methods you already use.