PlatformIO Community

Nucleo Board Upload issue

In the beginning when PlatformIO starts and doesn’t have a downloaded compiler yet (such as starting PlatformIO for the first time or after deleting all packages; downloading only happens during build time / project creation time), VSCode will complain that the compiler PlatformIO tells it to use for IntelliSense (via the .vscode/c_cpp_properties.json) is not there and defaults to Microsoft (Visual) C compiler. That issue should go away once the project is built once (and optionally a Ctrl+Shift+P → Rebuild IntelliSense is done). Also it does not affect building since not VSCode builds the firmware, but PlatformIO does – VSCode is only informed about the compiler for IntelliSense.

1 Like

There’s a discussion about what seems to be the same issue here:

A workaround is to replace the platform entry in platformio.ini by: platform = ststm32@13.0.0

Sorry I was at work but totally forgot to test it with the board.

But I have an idea at Code appears to upload but does not run on STM32 Nucleo L476RG · Issue #537 · platformio/platform-ststm32 · GitHub. Could you try if this helps with the 14.0.0 platform?

1 Like

Workaround valid per Code appears to upload but does not run on STM32 Nucleo L476RG · Issue #537 · platformio/platform-ststm32 · GitHub, waiting for official fix.