PlatformIO Community

CAN'T Download into STM32


#1

I can’t upload code to my developer board ,following is my setup in .ini file
IDE: VScode

[env:genericSTM32F103ZE]
platform = ststm32
framework = stm32cube
board = genericSTM32F103ZE
upload_speed = 115200
upload_port = COM4
upload_protocol =serial


#2

You also put the chip into UART bootloader mode, yes? https://github.com/palhartinger/HowTo-STM32F103C8T6/wiki/6_Programming-with-UART? Does it work with the official STM32 tool? https://www.st.com/en/development-tools/flasher-stm32.html


#3

Thanks for your reply,
Yes,I have put chip into UART bootloder mode ,and I upload .hex file into chip success with other tool, but it is not work on "PlatformlO uplode mode ", also you can tell me how to generate .hex by PlatformlO

Auto-detected: COM4
Uploading .pioenvs\genericSTM32F103ZE\firmware.bin
stm32flash 0.4Failed to init device.

There is error information


#4

Which other tool exactly?


#5

A ISP upload tool exactly