This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Add configuration via additional hex

Hi

I would like to prepare a provisioning hex file for my firmware. Can somebody supply an example how this could be made?

I'm using gcc toolchain, Eclipse and SDK 12.3 for development.

Example: I would like to add specific data like e.g. DeviceType, HW-Revision , Manufacturing Date to be accessible from the firmware.

Same procedure would also be interesting for dfu bootloader configuration.

Thanks in advance

Martin

  • @Martin Peters: To write to any address on the chip , you can use the programmer program to write, it could be nrfjprog or Jlink commander. On nrfjprog you use this syntax nrfjprog --memwr <addr> --val <val> , type nrfjprog & enter to know how to use it.

    I would suggest you to have a look at the nRF51 reference manual to understand the flash layout and UICR. Bootloader setting doesn't use UICR.

Related