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

DFU bootloader doesn't load the my application

I loaded the bootloader on the device and it always advertises as DfuTarg even after loading a application that simply blinks an LED. It doesn't seem to switch to the application after uploading the DFU zip from my phone.

I followed these instructions: devzone.nordicsemi.com/.../

The bootloader I'm using is the bootloader_secure project

arm gcc SDK 12.2 nrf52 sd132

Update @ Hung Bui

I'm using a custom "ble app hrm freertos" project. However, I'm just doing a led flash at the moment just to test. So Yes I'm using SD 132 v3.0.0 which is merged in the app hex file. I've also tried merging in the custom bootloader setting based on the CRC of the custom app and that hasn't worked either. The bootloader I'm using is from examples / dfu / bootloader_secure on SDK12.2. I haven't tried pca10040_debug yet. I haven't been succesful at steping into the bootloader code, but perhaps I need to use pca10040_debug? My setup allows me to step into my custom app fine.public_key.c(/attachment/9b7e0eb43efe055aca6cc7b8e02ab242) I can't seem to attach the private key, but its below.. app_dfu_package.zip

-----BEGIN EC PRIVATE KEY----- MHcCAQEEIFj6TzCah7ghiOTQY/vHGVdqqGN+GDqoey33NXUh4mvmoAoGCCqGSM49 AwEHoUQDQgAEQQ/Zv12AKzXB8tqQSFsvmYNH4yiHdJSMqWhqDnHO9QFtsK2++weB JaZGH5QG6nFPdluL6jgVRq+uS0Gy2c6RMg== -----END EC PRIVATE KEY-----

UPDATE

Here is the RTT log. It appears to be okRTT_Terminal_201703301209.log

Parents
  • Does the blinky work with the softdevice S132 ? Or it works as a stand alone application without softdevice ?

    Could you provide the .zip file you used, the private and public key you generated and the bootloader you generated ? Please set your bootloader in debug mode and step into the code and put a breakpoint inside nrf_dfu_init() in nrf_dfu.c. We have a function called nrf_dfu_app_is_valid() to check if there is a valid application. Please check the return value of nrf_dfu_app_is_valid().

    Please try to test with unmodified bootloader and an image of an BLE example in the SDK.

Reply
  • Does the blinky work with the softdevice S132 ? Or it works as a stand alone application without softdevice ?

    Could you provide the .zip file you used, the private and public key you generated and the bootloader you generated ? Please set your bootloader in debug mode and step into the code and put a breakpoint inside nrf_dfu_init() in nrf_dfu.c. We have a function called nrf_dfu_app_is_valid() to check if there is a valid application. Please check the return value of nrf_dfu_app_is_valid().

    Please try to test with unmodified bootloader and an image of an BLE example in the SDK.

Children
No Data
Related