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

nRF52 app plus bootloader

We're working on getting our nRF52 app working with buttonless OTA updates and the bootloader. OTA works fine with the example bootloader, but when we extend our application to include the bootloader (as described here: infocenter.nordicsemi.com/index.jsp, the app or anything that we can tell never starts properly. It's as if the device is just sitting there.

I suspect our problem is with the packaging of the the hex file. There are a few posts about using mergehex to update the hex file with to apply proper bootloader settings. I've found a few different hex files to merge in various posts which should allow our app to start on power up or reset, but I believe they are specific to the nRF51. Don't know if that makes a difference, but given I've found at least two different ones, and neither works, makes me thinks this could be the problem.

Can anyone provide a proper hex file for the nRF52 dev kit that will allow us to add the bootloader to our app/hex file and have the app properly start on hard reset? Or is there a specific example app in a later version of the SDK that we haven't seen that has a buttonless OTA implemented and working for the nRF52?

We are using nRF52 SDK 0.9.2, with softdevice s132 1.0.0-3 alpha, on pca10040 version of the dev kit. Our app is based on the ble_app_hrs in the SDK. Keil uVision with various jlink tools.

Any help or pointers are appreciated.

Thanks Ed

Parents
  • Yes, that appears to be the case. Neither the debugger nor various printfs I've added show anything - I've see various posts on debugging this, but none have really worked for me.

    Here's my script:

    mergehex -m s132_nrf52_1.0.0-3.alpha_softdevice.hex appIn.hex app_valid_setting_apply.hex -o appOut.hex nrfjprog.exe --family NRF52 --eraseall nrfjprog.exe --family NRF52 --program appOut.hex nrfjprog.exe --family NRF52 --verify appOut.hex nrfjprog.exe --family NRF52 --reset

    After I run the script, I can see the app, softdevice, and bootloader at the proper addresses in nRFgo Studio.

    Ed

Reply
  • Yes, that appears to be the case. Neither the debugger nor various printfs I've added show anything - I've see various posts on debugging this, but none have really worked for me.

    Here's my script:

    mergehex -m s132_nrf52_1.0.0-3.alpha_softdevice.hex appIn.hex app_valid_setting_apply.hex -o appOut.hex nrfjprog.exe --family NRF52 --eraseall nrfjprog.exe --family NRF52 --program appOut.hex nrfjprog.exe --family NRF52 --verify appOut.hex nrfjprog.exe --family NRF52 --reset

    After I run the script, I can see the app, softdevice, and bootloader at the proper addresses in nRFgo Studio.

    Ed

Children
No Data
Related