Application does not start after DFU

Hello all,
I have a nrf52820 SoC with which I would like to do a DFU.
When I flash softdevice, application and bootloader together with bootloader settings, the bootloader jumps to the right place in the flash, that is to the application.


If I then switch from the application for the DFU to the bootloader, the DFU is also performed correctly. However, the bootloader does not switch to the application after the DFU.

I attached the log of the DFU.

1805.log_dfu_no_success.txt

It looks like a UART error occurs when trying to write the bootloader settings page. This can be seen clearly in the memory layout:

The left layout is OK and works, the right one is what is there after the DFU and does not work.

Does anyone have a solution for this?

Parents
  • Hi,

    Can you post the commands you use to perform the DFU?

    Regards,
    Sigurd Hellesvik

  • Hi,


    I have a custom application in which I perform the DFU via a second microcontroller that receives the packets via TCP and forwards them via UART to the nRF52. The UART is configured to 115200 baud and does not use HWFC.... I think an equivalent command would therefore be

    nrfutil dfu serial -pkg app_dfu_package.zip -p COMx -b 115200 -fc 0

    I have found that after successful DFU, a UART error occurs as confirmed by the log attached in the post (in nrf_dfu_serial_uart line 150). The error handler then causes a system reset. Since the bootloader settings were not completely flashed beforehand, the application will probably not be able to be called from the bootloader. If I comment out the error handler, then everything seems to work as it should.


    I get the UART error code 1, do you know what this means?

    BR

    Louis

Reply
  • Hi,


    I have a custom application in which I perform the DFU via a second microcontroller that receives the packets via TCP and forwards them via UART to the nRF52. The UART is configured to 115200 baud and does not use HWFC.... I think an equivalent command would therefore be

    nrfutil dfu serial -pkg app_dfu_package.zip -p COMx -b 115200 -fc 0

    I have found that after successful DFU, a UART error occurs as confirmed by the log attached in the post (in nrf_dfu_serial_uart line 150). The error handler then causes a system reset. Since the bootloader settings were not completely flashed beforehand, the application will probably not be able to be called from the bootloader. If I comment out the error handler, then everything seems to work as it should.


    I get the UART error code 1, do you know what this means?

    BR

    Louis

Children
Related