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

Firmware upgrade via UART

Hello everyone,

I trying to firmware update my nrf52832 via Tx and Rx pin uart. I create my own application using keil compiled get .hex file i upload this hex file into my nrf52832 board please support me what are the procedure i do and which example code can i used to doing this process. I using SDK version 15.2.0

Parents
  • Hello ,

    You should read through this guide on getting started with DFU.

    This guide shows how to use the BLE bootloader, but if I understand you correctly, you want to use the serial (uart) bootloader instead. Then you should use the SDK\examples\dfu\secure_bootloader\pca10040_uart example, and instead of using nRF Connect, you should use nrfutil (which is the same application that is used to generate keys and DFU images in the guide).

    When you have installed nrfutil, type "nrfutil dfu serial --help" to see how to use this command.

    Best regards,

    Edvin

  • Thanks for replay Edvin,

    I don't need secure bootloader on my requirement. I interfacing nrf52832 into WiFi its basically work WiFi download nrf52832 updated .hex or .bin file only firmware from server and push into nrf52832 via uart communication

  • I understand, but I believe it is easier to get started with the secure bootloader, because the open bootloader currently only supports USB (on the nRF52840, not UART). Make sure you have that up and running before you try to port the transport layer in this project to USB.

    Once you know everything is working as intended you can try to port to the open(unsecure)_bootloader. DFU is a bit complex, so there are plenty of things that can go wrong, which is why I suggest that you test something you know that is working before porting it. 

    Best regards,

    Edvin

Reply
  • I understand, but I believe it is easier to get started with the secure bootloader, because the open bootloader currently only supports USB (on the nRF52840, not UART). Make sure you have that up and running before you try to port the transport layer in this project to USB.

    Once you know everything is working as intended you can try to port to the open(unsecure)_bootloader. DFU is a bit complex, so there are plenty of things that can go wrong, which is why I suggest that you test something you know that is working before porting it. 

    Best regards,

    Edvin

Children
No Data
Related