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

How to test examples\dfu\secure_bootloader\pca10040_uart_debug

I build the example and download to PCA10040,but there no log print in RTT, and I debug in keil mdk, I found the program does not step into main function.

How to run this example?Does there have any document to describle about usart DFU?

Parents Reply Children
  • Hi, 
    You are right, if you don't plan to use BLE in both your application and the bootloader (UART DFU) then you don't need the softdevice. 

    But the bootloader requires a MBR (master boot record) to be flashed at address 0x0000 to be able to work. The MBR will handle the forwarding of the vector table. 

    You can find the MBR at \components\softdevice\mbr\hex

    We don't have an example of using proprietary RF to do DFU. But due to the way the bootloader designed, it should be rather straight forward to do. I would suggest to study the nrf_dfu_serial_uart.c code. 
    In the code you can find how you can call DFU_TRANSPORT_REGISTER() to register your own dfu transport. And how you can define  the init function to handle event from the upper level of the DFU library. It shouldn't be too hard to change it to your own transport protocol. 

    But I would suggest to test with the stock UART bootloader first , before modifying it. 

Related