Serial DFU example uses softdevice

Hi,

There is an example of serial DFU without using softdevice, and there is a BLE DFU using softdevice. Is there an example for serial DFU that uses softdevice? If not, what may be the steps to have one like that? Use SDK15.3, nrf52832 and Segger Embedded Studio.

Thanks!

Parents
  • I tried to start from the pca10040_uart_debug project, 

    Add defines:
      BLE_STACK_SUPPORT_REQ0
      NRF_SD_BLE_API_VERSION=6
      S132
      SOFTDEVICE_PRESENT

    Remove from project:
      components/drivers_nrf/nrf_soc_nosd/nrf_nvic.c
      components/drivers_nrf/nrf_soc_nosd/nrf_soc.c

    Add to project:
      components/libraries/fstorage/nrf_fstorage_sd.c

    It complies and run in the debugger, but it seems to reset in the middle of writing the objects....
    <info> nrf_dfu_serial_uart: Allocated buffer 20001780
    <debug> nrf_dfu_req_handler: Handle NRF_DFU_OP_OBJECT_WRITE (data)
    <debug> nrf_dfu_flash: nrf_fstorage_write(addr=0x000282C0, src=0x20001700, len=64 bytes), queue usage: 1
    <debug> nrf_dfu_flash: Flash write success: addr=0x000282C0, pending 0
    <debug> nrf_dfu_req_handler: Request handling complete. Result: 0x1
    <info> nrf_dfu_serial_uart: Allocated buffer 200016FC
    <debug> nrf_dfu_req_handler: Handle NRF_DFU_OP_OBJECT_WRITE (data)
    <debug> nrf_dfu_flash: nrf_fstorage_write(addr=0x00028300, src=0x20001784, len=64 bytes), queue usage: 1
    <debug> nrf_dfu_flash: Flash write success: addr=0x00028300, pending 0
    0x1
    <info> nrf_dfu_serial_uart: Allocated buffer 20001780
    <error> app: Received an error: 0x00000001!
    <info> app: Inside main
    <debug> app: In nrf_bootloader_init
    <debug> nrf_dfu_settings: Calling nrf_dfu_settings_init()...
    <debug> nrf_dfu_flash: Initializing nrf_fstorage_nvmc backend.
    <debug> nrf_dfu_settings: Using settings page.
    <debug> nrf_dfu_settings: Copying forbidden parts from backup page.

  • Hi Joe,

    I found this similar case:  How to merge serial and BLE DFU without flow control?

    Let me know if the information in that case were not able to solve your issue.

    Regards,
    Sigurd Hellesvik

Reply Children
No Data
Related