platform-ststm32 icon indicating copy to clipboard operation
platform-ststm32 copied to clipboard

Installed version of STM32Flash (v. 0.4) does not support newer chips (e.g. STM32F4)

Open talikarng opened this issue 2 years ago • 1 comments

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.

talikarng avatar Mar 29 '22 10:03 talikarng

+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

dalbert2 avatar Jul 13 '22 00:07 dalbert2