platform-ststm32
platform-ststm32 copied to clipboard
Installed version of STM32Flash (v. 0.4) does not support newer chips (e.g. STM32F4)
OS etc: VSCode on Windows or Linux
PlatformIO version: 5.2.5
ST STM32 version: 15.2.0
Fresh install of the STM32 platform uses STM32Flash version 0.4 which does not support newer chips (e.g. STM32F4). When attempting to upload via UART to the STM32F4 (regardless of USB to serial device), I would get an error message along the lines of ("unknown/unsupported device 0x431") and would fail to upload any sketch. Checking the STM32Flash gitlab page reveals that device 0x431 (STM32F4...) was included in version 0.5 onwards.
Manually installing a newer version of STM32Flash.exe into .platformio\packages\tool-stm32duino resulted in me being able to upload successfully to the STM32F4 board.
+1
stm32flash.exe version 0.4 is badly out of date and doesn't support many newer ST processors (e.g. STM32L471). Replacing with the latest stm32flash.exe version (0.7) fixes this.
Latest version is available here: https://sourceforge.net/projects/stm32flash/ Replacement goes in $USER/.platformio/packages/tool-stm32duino/stm32flash