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?
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 ==========================================================================================
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 ==========================================================================================