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

Implementing buttonless_dfu to hrs_freertos

Hi,

I am developing the 'buttonless dfu' to the 'hrs freertos' using the SDK v15.3.0.

However, after I compiled the modified code and loaded to the target broad, I got the below error.

    <info> app: nrf_sdh_ble_enable() err:0 ram_start:0x20002258
    <error> app: Fatal error

Is there any example for this application?

Thanks

Parents
  • Hi Amanda,

    I think this version is too old to support SDK 15.3 later. 

    As replied before, I have continued my testing on another PC and the version of the tool is 6.1.0.

    After you program the bootloader + SD, you should see the device advertises with the name as "DfuTarg".

    Yes, I can see that. Thus, I can program the application image through mobile APP.

    What is the application you used? Is it your application or example application?

    The application is the example "ble_app_buttonless_dfu".

  • Hi Terry,

    Terry said:
    Thus, I can program the application image through mobile APP.

    If you upload the application, you should prepare the package as:

    nrfutil pkg generate --application ble_app_buttonless_dfu_pca10040_s132.hex --application-version 1 --application-version-string "1.0.0" --hw-version 52 --sd-req 0xB7 --key-file private.pem FW.zip

    If you program the ble_app_buttonless_dfu with nrfjprog (with the programed bootloader + SD), you should prepare the application as:

    nrfutil settings generate --family NRF52 --application ble_app_buttonless_dfu_pca10040_s132.hex --application-version 1 --bootloader-version 1 --bl-settings-version 1 bootloaderSettings.hex
    
    mergehex -m ble_app_buttonless_dfu_pca10040_s132.hex bootloaderSettings.hex -o merged.hex
    
    nrfjprog --program merged.hex --sectorerase
    
    nrfjprog -r

    Or you can merge your mergedBootloadersettingsApplication.hex and mergedBootloaderSoftdevice.hex to one hex (bootloader+softdevice+setting+app) to program and reset.

    -Amanda H. 

  • Hi Amanda,

    I did exactly what you mentioned above.

    I could update the application FW through mobile APP and the FW could run on the ev board.

    However, the FW could not run on the ev board while I programmed apllication FW using 'nfrjprog'.

    That is very frustrating!!!

  • Hi Terry, 

    If you want to program the ble_app_buttonless_dfu with nrfjprog, you should use the image which merges bootloaderSettings and ble_app_buttonless_dfu instead as I mentioned in the previous reply instead of FW.

    -Amanda H.

Reply Children
No Data
Related