I am trying to update on nRF52 DK board with another, separate nRF52 DK board using OTA firmware updates. Essentially, I am trying to replicate how the nRF Connect Desktop app flashes firmware onto these boards.
Here are the steps that I want to conduct:
- "First" nRF52 scans for "second" nRF52.
- If "second" nRF52 is present and advertising, connect to it.
- After connection, check for Buttonless Service.
- If service exists, send "second" nRF52 to DFU mode.
- "First" nRF52 will wait for "second" nRF52 to disconnect, then reconnect after it begins advertising again.
- "First" nRF52 will transmit the firmware update to "second" nRF52.
- "First" nRF52 will disconnect after the firmware update is successfully sent.
The dfu_transport_ble.py example provides a lot of this functionality. However, I am stuck on how to get the firmware image onto the "First nRF52" before the transmission begins.
I found a post asking a similar question that was posted in 2018, however, this post only mentions that the image needs to be stored on the DK, not how to actually do it.
Any help would be greatly appreciated.