platformio / platform-ststm32

ST STM32: development platform for PlatformIO
https://registry.platformio.org/platforms/platformio/ststm32
Apache License 2.0
389 stars 305 forks source link

blackpill_f401cc arduino framework doesn't work #394

Open garryhca opened 4 years ago

garryhca commented 4 years ago

I was using latest Arduino with latest stm32core. Everything is fine. I found out PlatfomIO can do inline debug, so I gave a try. When I tried PlatfomIO yesterday, even a simple blink program doesn't run. The MCU just crashes, refuse to start. I tried both ST-Link and Jlink. Same result. Upload is successful without error, but it does not actually reset or boot after upload.

The blackpill_f401cc board has onboard 25Mhz oscillator. Is this an issue?

[env:blackpill_f401cc] platform = ststm32 board = blackpill_f401cc framework = arduino debug_tool = jlink upload_protocol = jlink

Downloading file [.pio\build\blackpill_f401cc\firmware.bin]... J-Link: Flash download: Bank 0 @ 0x08000000: Skipped. Contents already match O.K.

Reset delay: 0 ms Reset type NORMAL: Resets core & peripherals via SYSRESETREQ & VECTRESET bit. Reset: Halt core after reset via DEMCR.VC_CORERESET. Reset: Reset device via AIRCR.SYSRESETREQ.

Script processing completed.

========================================================================================== [SUCCESS] Took 10.17 seconds ==========================================================================================

rikkertmark commented 4 years ago

I have the same kind of problems :(