NRF5340 firmware update using STM32 controller via serial recovery mode

Hi all,

                           i am trying to update the nrf5340 firmware using STM32 as the master controller via UART. i  initially tried to upload the .bin file of my project to nrf5340 using MCUmgr tool and it was successful. so i tried to incorporate the SMP (simple Management Protocol) using STM32 as a client, which is used in sending the commands to nrf3540 ( which acts as the SMP server) to upload the firmware. however, i failed to implement it since i could not get proper data packeting and encoding format. can anyone say if there is any other approach to upload the firmware into nrf5340 from a master controller using UART rather than SMP protocol.

  • Hi,

    If your nRF5340 can receive the firmware image from the main application, you can use the DFU target library to stage updates in the secondary slots. It does not matter how the .bin files are transferred to the device if you would prefer to use another transfer method than SMP. With serial recovery, you are limited to the SMP protocol unless you are prepared to customize the bootloader. 

    however, i failed to implement it since i could not get proper data packeting and encoding format.

    I would compare it with the packets sent by the MCUmgr tool to see what the differences are.

    Best regards,

    Vidar

Related