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.

What could be the issue?

SDK: 14.1

board: nrf52832

Parents
  • Here is more information from gdb:

  • Hi Schef, 

    Do you have HWFC on UART ? At which baudrate you were running   ? 

    Error 4 is NRF_ERROR_NO_MEM. We need to track down which function throwing that error. Could you test using the bootloader debug version and turn optimization off to see more debug information ? 

  • You are right. It's the UART ERROR and bit 3 is Framing error. You can to monitor the UART communication with a logic analyzer to look for the error. Do you have a long UART cable/track ? any parasitic capacitance ? 

  • 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?

  • Have you tried to call nrf_drv_uart_uninit() before you init uart again ? 

    Could you check in the info if there is a file name and line number, error code ? 

  • There was error not connected to uart but to the flash. So this is resolved.

  • Could you elaborate? I have the same issue.

Reply Children
No Data