Write serial number after flashing works with commander but not API #1510
-
Hi, I have got stuck however, I am flashing a Nordic NRF52832_xxAA with a hex file and then I need to write a uint16 serial number to an address in the UICR flash. I have got this working great with commander but for some reason the device does not boot after using the API. I think perhaps I am using the incorrect API tool for the job and too much flash is getting erased when I make the write. My commander script is:
My API script is:
Should I be using something different in the API script to perform the equivalent of a write16? Thanks very much Ed |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Ok I think I managed to figure this out but it would be good to get any suggestions to make it better. It was not very intuitive that I would need to call an init() function and that I would need to set the region explicitly when I am already passing the target. Perhaps I have missed an example somewhere!
|
Beta Was this translation helpful? Give feedback.
Ok I think I managed to figure this out but it would be good to get any suggestions to make it better. It was not very intuitive that I would need to call an init() function and that I would need to set the region explicitly when I am already passing the target. Perhaps I have missed an example somewhere!