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

nRF52810 SDK15.3.0 add NUS(ble_app_uart) to ble_app_buttonless_dfu can not bootup

SDK15.3.0

nRF52810

the original secure_bootloader and buttonless_dfu works fine.

nRF5_SDK_15.3.0_59ac345\examples\dfu\secure_bootloader\pca10040e_ble

and nRF5_SDK_15.3.0_59ac345\examples\ble_peripheral\ble_app_buttonless_dfu\pca10040e

so I start to porting NUS and UART/FIFO module into ble_app_buttonless_dfu(leave secure bootloader untouched), but fails:

it can not boot up to ble_app_buttonless_dfu.

Here I attach my project ble_app_buttonless_dfu.7z

Mostly, I add uart related files and some functions in main.c, even have not init NUS service.

Would you share some suggestion?

Or should I add DFU into ble_app_uart example, would be easier?

Parents
  • Hi Leo,

     If you  see your device not booting up, you would need to debug it. Basically it's to find which assertion you have. You can follow this guide on debugging. 

    I can see in your code (sdk_config.h) you have NRF_SDH_BLE_VS_UUID_COUNT = 1 when it should be 2 as you have 2 vendor specific model.

    It doesn't matter if you integrate NUS into DFU buttonless or the other way around, it's the same process. 

  • I forget to read RTT backend debug message, now I read it from Jlink RTT viewer somehow, attach here:

    0> <info> app: Setting vector table to bootloader: 0x00028000
    0> <info> app: Setting vector table to main app: 0x00019000
    0> <warning> nrf_sdh_ble: Insufficient RAM allocated for the SoftDevice.
    0> <warning> nrf_sdh_ble: Change the RAM start location from 0x20001C18 to 0x20002390.
    0> <warning> nrf_sdh_ble: Maximum RAM size for application is 0xDC70.
    0> <error> nrf_sdh_ble: sd_ble_enable() returned NRF_ERROR_NO_MEM.
    0> <error> app: Fatal error

Reply
  • I forget to read RTT backend debug message, now I read it from Jlink RTT viewer somehow, attach here:

    0> <info> app: Setting vector table to bootloader: 0x00028000
    0> <info> app: Setting vector table to main app: 0x00019000
    0> <warning> nrf_sdh_ble: Insufficient RAM allocated for the SoftDevice.
    0> <warning> nrf_sdh_ble: Change the RAM start location from 0x20001C18 to 0x20002390.
    0> <warning> nrf_sdh_ble: Maximum RAM size for application is 0xDC70.
    0> <error> nrf_sdh_ble: sd_ble_enable() returned NRF_ERROR_NO_MEM.
    0> <error> app: Fatal error

Children
No Data
Related