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.
What could be the issue?
SDK: 14.1
board: nrf52832
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
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)
Is it possible to recover from this issue using software only? Reinit uart and repeat the packet. CRC will fail and then i can try to send it again.
I tried to enable nrf_drv_uart_rx but after that i got <error> app: Received a fault! id: 0x00004002, pc: 0x00000000, info: 0x2003FEF8
do you have any suggestions?