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

Programming using nrfjprog

Hi, 

I am using 15.2.0 SDK and 3.0.0 Mesh SDK for developing the nRF Mesh.

I am using segger IDE for programming but I am looking for a way to program the device with hex files of softdevice and application.

For example, I am executing following commands to flash enocean_switch example:

mesh-sdk$ nrfjprog --eraseall

mesh-sdk$ nrfjprog -f NRF52 --program bin/softdevice/s132_nrf52_6.1.0_softdevice.hex --chiperase

mesh-sdk$ nrfjprog -f NRF52 --program examples/enocean_switch/build/enocean_switch_nrf52832_xxAA_s132_6.1.0_Debug/enocean_switch_nrf52832_xxAA_s132_6.1.0.hex

After executing these commands, I don't think that the board is ready to be provisioned as I can't locate it in the nRFMesh app. Should I be loading the bootloader file too? Or are there any other files to be flashed?

What would be the correct order of commands to program the board with nrfjprog?

Thank you. 

Parents
  • Hi,

    When you program the device using nrfjprog, it is usually necessary to also do a reset afterwards, in order for the code to start running:

    nrfjprog -r

    Also note, that the --chiperase option is not needed when you have recently done --eraseall (since basically --chiperase means "do an --eraseall before the programming.")

    Regards,
    Terje

Reply
  • Hi,

    When you program the device using nrfjprog, it is usually necessary to also do a reset afterwards, in order for the code to start running:

    nrfjprog -r

    Also note, that the --chiperase option is not needed when you have recently done --eraseall (since basically --chiperase means "do an --eraseall before the programming.")

    Regards,
    Terje

Children
No Data
Related