# FIRMWARE UPDATE INSTRUCTIONS
- 20241220
- pandaplacer.com


#==========================================#
# How to upload MARLIN firmware for PP_MC_V3.x (WINDOWS with DFU upload):

- Install PlatfromIO (or Auto Build Marlin plugin) in VS code.

- Import/Open the Marlin source file and select the corresponding motherboard configuration "PANDAPLACER_MC_V3_0" in PlatformIO.

- Power up PPMC_V3.x board and connect the USB to the PC. 

- Press the BOOT button first, then press the RESET button and release the 2 buttons. In windows device manager, the device "STM BOOTLOADER" will appear.

- Click on "Upload", the firmware will start compiling, and will be uploaded automatically via USB port after the compilation is finished.

- After the download is complete, you need to manually presss RESET button or power off and on again to complete the update.


#==========================================#

On other systems (LINUX/MAC/WIN), you can also use the STM32CubeProgrammer with DFU interface for updates.
https://www.st.com/en/development-tools/stm32cubeprog.html

- Power up PPMC_V3.x board and connect the USB to the PC. 
- Press the BOOT button first, then press the RESET button and release the 2 buttons. MCU goes into DFU mode.
- In STM32CubeProgrammer, select the USB mode and the corresponding USB port and then connect.
- Open and select the .bin file that you got by compiling in PlatfromIO.
- Download the firmware.
- Manually presss RESET button to restart the board.

#==========================================#

Alternatively, you can use STLINK and SWD port to update the .bin file from the compilation.

#==========================================#