Dear Everyone,
SDK 3.3.0, Board: NRF54L15
We have integrated MCUBOOT into our project. We have image built for two slots and we can see that it works once uploaded by VS-Code extension 'flash' action.
We have another bare metal board which should provide BLE board with firmware updates. We would like to transfer images through serial port to BLE board.
We have an application running on BLE board which we believe could process reception of serial data. I assume we need to capture image chunk, and write it to flash, we need to manually track image offset and length and keep writing until the image is received. Then we would like to trigger software reboot and let MCUBOOT detect new image and run it.
Is there any example close to our case?
We found info about the serial recovery, but we would prefer to handle update within the application if it's possible
https://docs.nordicsemi.com/bundle/ncs-3.2.3/page/nrf/app_dev/bootloaders_dfu/mcuboot_serial_recovery.html
There is also an example with DFU over UART however there are few concerns:
1. The application itself is a NUS bridge so how does it work with ongoing operation over the UART? We can ensure there is no traffic on the serial port for the duration of the upload, we would just need a confirmation that it has to be done.
2. The second board need to send serial data packets in SMP format right? if so, then is there any way to redirect specific packets to smp backend or is every packet automatically routed there?
I can't find anything on the application level that could process these packets, I think it's processed in the background. This seems to be crucial as we send custom commands through serial to ensure communication between boards.
https://github.com/NordicDeveloperAcademy/ncs-inter/blob/main/l9/l9_e1_sol/src/main.c
https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-9-bootloaders-and-dfu-fota/topic/exercise-1-dfu-over-uart/?version=v3.3.0
Thanks in advance for any support or suggestions.
Best Regards,
Jakub