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. 

  • Hi Hung,

    I can't debug when there is a bootloader.

    on original buttonless_dfu emulated project, when I started debugging, it just goes to error after ble_dfu_buttonless_async_svci_init() was called. but it runs well if I don't debug.

    on my own project, it reports error at the same location. So I don't even know if it is the root cause.

    on my own project, you can see I just put all related source code into it, but never call them from main().

    I doubt that it's about flash memory size.

Reply
  • Hi Hung,

    I can't debug when there is a bootloader.

    on original buttonless_dfu emulated project, when I started debugging, it just goes to error after ble_dfu_buttonless_async_svci_init() was called. but it runs well if I don't debug.

    on my own project, it reports error at the same location. So I don't even know if it is the root cause.

    on my own project, you can see I just put all related source code into it, but never call them from main().

    I doubt that it's about flash memory size.

Children
No Data
Related