I want to use serial dfu. But I don't know what should I do in the application to enter the DFU mode safely similar to the OTA DFU.
I want to use serial dfu. But I don't know what should I do in the application to enter the DFU mode safely similar to the OTA DFU.
Hi,
Have you implemented the serial transport layer for the bootloader ? by default it only supports BLE.
To switch from application to enter DFU mode, it's pretty simple, you just need to set the enter_buttonless_dfu = true and update the bootloader setting then do a soft reset. You can have a look at function enter_bootloader() in ble_dfu.c
Hi,
Have you implemented the serial transport layer for the bootloader ? by default it only supports BLE.
To switch from application to enter DFU mode, it's pretty simple, you just need to set the enter_buttonless_dfu = true and update the bootloader setting then do a soft reset. You can have a look at function enter_bootloader() in ble_dfu.c