6.16. UART Trigger DFU
6.16.1. Overview
uart_trigger_dfu example project demonstrates a UART trigger DFU functionality. This application monitors the console UART for a specific trigger sequence. When the user types “dfu” on the console UART, the device will reboot into DFU mode, allowing firmware updates through USB or other DFU interfaces. This example requires DFU bootloader, ensure the device has been correctly programmed with the DFU bootloader.
6.16.2. Board Setting
Connect console UART to PC
6.16.3. Running the example
When the project runs correctly, the serial terminal will output:
DFU UART trigger demo
Type 'dfu' on console UART to reboot into DFU mode
dfu trigger received, reboot to DFU bootloader...
Type “dfu” on the console UART to trigger a reboot into DFU mode.