6.2.1.1 GPIO based DFU Mode

Note: Ensure that Python v3.12.7 is installed, and that required libraries such as pyserial and numpy are pre-installed.
On the PIC32WM-BW1 Curiosity Board:
  1. Press and hold SW2 Button to trigger the DFU mode.
  2. Short press Reset button (SW1) to restart firmware. The firmware enters the DFU mode.
  3. Opening Tera Term on PC, and configure it as:
    1. Baud rate: 115200
    2. Data bits : 8
    3. Parity: None
    4. Stop bits: 1
  4. Look for the message, DFU Now! indicating DFU mode is active.
    Figure 6-30. Enter into DFU Mode
  5. Close Tera Term.
  6. Open Windows® command prompt.
  7. Navigate to the folder containing the python script and binary image.
  8. For GPIO Trigger mode DFU, execute the following python script:
    python flash_load_2ndSlot.py -i new_upgradable.signed.bin
    Figure 6-31. Run Python Script to Do DFU (GPIO Trigger Mode)
    Note: To run the above Python script, the user may need to copy the Python script files and the binary image file into the same folder. However, the Python script also supports files with absolute or relative path names.