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

why is this code not running in nrfjprog tool

the code is nrfjprog -f nrf52 --snr --memwr 0x10001080 --val 0xabcd0102

I am doing the example infocenter.nordicsemi.com/index.jsp

I am able to get everything up to step 2 of the second part and the command above is not being executed in the command prompt.

The message being given is "system cannot find file specified"

Parents
  • Hi,

    You need to use the serial number found on the on-board Segger programmer/debugger(The big chip on the DK) when you use the --snr parameter. The serial number on a nRF52-DK starts with 682. Note that you only need to use the --snr <SN> parameter when you have multiple programmers connected. If you only have one connected you can use nrfjprog -f nrf52 --memwr 0x10001080 --val 0xabcd0102.

  • Hi,

    0x10001080 is the memory location for the UICR (User Information Configuration Register). When the flag USE_UICR_FOR_MAJ_MIN_VALUES is used, the application will read the UICR register to find the Major and Minor values it should use when setting up the advertising packet.

    You want to dynamically change the advertising packet? How often do you want to change the advertising packet?

Reply
  • Hi,

    0x10001080 is the memory location for the UICR (User Information Configuration Register). When the flag USE_UICR_FOR_MAJ_MIN_VALUES is used, the application will read the UICR register to find the Major and Minor values it should use when setting up the advertising packet.

    You want to dynamically change the advertising packet? How often do you want to change the advertising packet?

Children
No Data
Related