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

  • Hi Terry,

    The error message seems that the flash area for flash storage has been erased. Please check the number of FDS_VIRTUAL_PAGES (in your application) reserved for the FDS storage match with NRF_DFU_APP_DATA_AREA_SIZE inside the bootloader. By default, they are 3 pages. (12kB).  

    -Amanda H.

  • Hi Amanda,

    I checked that FDS_VIRTUAL_PAGES is 3 while NRF_DFU_APP_DATA_AREA_SIZE is 12288.

    I tried just building the examples of 'sdk/examples/dfu/secure_bootloader' and 'sdk/examples/ble_peripheral/ble_app_buttonless_dfu'.

    After loaded the bootloader image through 'SEGGER Embedded Studio -> Debug', the bootloder could run.

    Then, I loader the application image through 'SEGGER Embedded Studio -> Debug', the problem occurred.

    That means I got the same problem even, I just built and loaded the example codes.

    Do you know what is the problem?

  • Hi Terry, 

    Terry said:
    I tried just building the examples of 'sdk/examples/dfu/secure_bootloader' and 'sdk/examples/ble_peripheral/ble_app_buttonless_dfu'.

    Did you mean testing with the unmodified secure_bootloader and ble_app_buttonless_dfu examples here? 

    To perform the Buttonless DFU Template Application, you have to prepare the image which combines sd + bootloader + buttonless + setting page 

    In the BLE Secure DFU Bootloader/Testing, it indicates how to get the bootloader HEX file with the bootloader settings. I would also suggest you take a look at the getting started with nordics secure dfu bootloader to know how to prepare the uploaded image. 

    Would you get still the error after you flash the application with the bootloader and the bootloader setting image?  

    If you generate the bootloader setting page, could you post the script?

    -Amanda H. 

  • Hi Amanda,

    Thank you for your information. They are very helpful.

    Now, I can flash the application image to the DK using mobile APP.

    However, I still have a problem on flashing the application image using SES. I followed the tutorial to setup the SES.

    After I ran the application image, I got the below error.

        <error> app: No bootloader was found
        <error> app: ERROR 4 [NRF_ERROR_NO_MEM] at          /home/15v3_0/sdk/examples/ble_peripheral/ble_app_buttonless_dfu_evboard/main.c:854
    PC at: 0x0002FAD1
        <error> app: End of error report

    But I INSTALLED the bootloader image and the SoftDevice image before.

  • Hi Amanda,

    I also found that according to this. The '--bl-settings-version' for SDK 15.3.0 was required to be set to '2'. However, I only could set it to be '1' otherwise, I got error.

    Is it ok for me to set the '--bl-settings-version' to '1'?

Related