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

DFU serial failed

Hi guys,

i'm using DFU over serial and i get the error 4 in NRF_DRV_UART_EVT_ERROR.

This was not happening before and suddenly started.

<debug> nrf_dfu_flash: nrf_fstorage_write(addr=0x00040300, len=0x100 bytes), queue usage: 1
<info> dfu_req_handling: Storing 256 bytes at: 0x00040300
<debug> nrf_dfu_flash: Flash write success: addr=0x00040300, pending 0
<debug> nrf_dfu_flash: nrf_fstorage_write(addr=0x00040400, len=0x100 bytes), queue usage: 1
<info> dfu_req_handling: Storing 256 bytes at: 0x00040400
<debug> nrf_dfu_flash: Flash write success: addr=0x00040400, pending 0
<debug> nrf_dfu_flash: nrf_fstorage_write(addr=0x00040500, len=0x100 bytes), queue usage: 1
<info> dfu_req_handling: Storing 256 bytes at: 0x00040500
<debug> nrf_dfu_flash: Flash write success: addr=0x00040500, pending 0
<error> app: Received an error: 0x00000004
<info> app: Inside main

What could be the issue?

SDK: 14.1

board: nrf52832

Parents
  • Here is more information from gdb:

    #0 app_error_handler_bare (error_code=4) at ../../main.c:73
    #1 0x000775a0 in uart_event_handler (p_event=<optimized out>, p_context=<optimized out>, p_event=<optimized out>) at ../../sdk_edited/components/libraries/bootloader/serial_dfu/nrf_serial_dfu.c:403
    #2 0x00076534 in uarte_irq_handler (p_uarte=0x40002000, p_cb=<optimized out>) at ../../../../sdk/nRF5_SDK_14.2.0_17b948a/components/drivers_nrf/uart/nrf_drv_uart.c:912
    #3 UARTE0_UART0_IRQHandler () at ../../../../sdk/nRF5_SDK_14.2.0_17b948a/components/drivers_nrf/uart/nrf_drv_uart.c:963
    #4 <signal handler called>
    #5 0x00013d6e in ?? ()
    #6 0x00013d6c in ?? ()
    Backtrace stopped: previous frame identical to this frame (corrupt stack?)
    (gdb)

Reply
  • Here is more information from gdb:

    #0 app_error_handler_bare (error_code=4) at ../../main.c:73
    #1 0x000775a0 in uart_event_handler (p_event=<optimized out>, p_context=<optimized out>, p_event=<optimized out>) at ../../sdk_edited/components/libraries/bootloader/serial_dfu/nrf_serial_dfu.c:403
    #2 0x00076534 in uarte_irq_handler (p_uarte=0x40002000, p_cb=<optimized out>) at ../../../../sdk/nRF5_SDK_14.2.0_17b948a/components/drivers_nrf/uart/nrf_drv_uart.c:912
    #3 UARTE0_UART0_IRQHandler () at ../../../../sdk/nRF5_SDK_14.2.0_17b948a/components/drivers_nrf/uart/nrf_drv_uart.c:963
    #4 <signal handler called>
    #5 0x00013d6e in ?? ()
    #6 0x00013d6c in ?? ()
    Backtrace stopped: previous frame identical to this frame (corrupt stack?)
    (gdb)

Children
Related