Is there any way to OTA single bank?, I use nrf52833 and SDK v2.4.0
Is there any way to OTA single bank?, I use nrf52833 and SDK v2.4.0
Hello,
Single bank OTA is not possible in the nRF Connect SDK. You need a secondary slot to store the image for OTA, either on internal or external flash.
Regards,
Swathy
Thanks, but does the nRF5 SDK support single bank, and does it support ble mesh?
And nRF5 SDK for mesh, does it support dfu single bank?
Hi Thang,
Is there any specific reason as to why you would need to use single bank dfu.? In case of single bank dfu, the existing application is replaced by the new firmware, so if an error occurs, the original application would be corrupted and the only option would be to retry updating until it succeeds. In case of dual bank dfu, you can always fall back to the old image if something happens.
The nRF 5 SDK does support single bank dfu. See here: https://docs.nordicsemi.com/bundle/sdk_nrf5_v17.1.0/page/lib_bootloader_dfu_banks.html
As for the nRF Connect SDK.. The dfu is explained in detail here:https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-8-bootloaders-and-dfu-fota/ . We have a single slot (serial reovery) and dual slot dfu in nRF Connect SDK as explained here: https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-8-bootloaders-and-dfu-fota/topic/device-firmware-update-dfu-essentials/#:~:text=DFU%20over%20UART%20from%20the%20bootloader
Best Regards,
Swathy
Hi Swathy, thanks for your answer.
Currently I am doing a program on nrf52833, the flash memory is not enough for me to divide it into 2 banks, so I want to OTA on 1 bank. I repartitioned the partition using static partition. And I used the configuration CONFIG_BOOTLOADER_MCUBOOT=y and the division was successful.
I use an esp32 OTA for nrf52833 using UART. In the program I initiate OTA and receive files from UART, can I write directly to the main partition?