6.2.1.2 Timer Based Trigger DFU Mode
Note: Ensure that Python v3.12.7 is installed, and the required
libraries such as pyserial and numpy are pre-installed.
- Run the script first, then reset
the PIC32WM-BW1 Curiosity Board.
python flash_load_2ndSlot_timer.py -i ota_ble_sensor.X.production.signed.bin - The script waits for the DFU window and starts the process when detected.
- If the DFU window is not
captured, the script prompts the user to reset the PIC32WM-BW1 Curiosity Board again.Note: Repeat the reset process as needed until the DFU process begins.
- Once the DFU process starts, the
script will display the DFU progress as a percentage (for example,
Progress: 45% complete). - When the progress reaches
100%, the new firmware image is successfully copied to slot1 of the PIC32WM-BW1 Curiosity Board internal Flash memory. - The script will indicate that the DFU process is complete.
Note:
- For Timer Based Trigger mode DFU, the user do not need to manually reset the PIC32WM-BW1 Curiosity Board to start a new image. Timer Based Trigger mode DFU bootloader automatically copies the new user image and jumps to start it.
- If the user has enabled the Use Firmware Signature Verification API in Bootloader in the “Bootloader Services” component, the bootloader code verifies the metaheader and firmware using the specified method. If the bootloader verifies the metaheader and firmware, Tera Term displays their verification result.
