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

nrf9160 : Writing to flash at a specified location using nrfjprog command line utility

Hi,

We have a requirement where we need to store some application parameters (Eg. APN name ) in the nrf9160 flash. This parameters will be storing during production time by using the nrfjprog command line utility.

Our requirement is we need to write a binary file at a specified flash location( 0xFA000 ) in nrf and application code should able to read this.

We are able to use the 'memwr' option.

Eg: nrfjprog -f UNKNOWN --memwr 1024000 --val 0x00000105

However this can only be used to write 4 byte at a time. Can we able to write a file as a whole ( 4096 bytes file in form of .bin or .hex)?

Or is there any option to specify the offset where we write using the '--program <hex-file>' option in nrfjprog?

Thanks and regards,

Aswin

Parents Reply Children
Related