Hello there, I have a project that flashes fine from the mbed online compiler on my STM32L4 and F4 nucleo boards.
I wanted to move to using the PIO ide.
My config that Im running:
PIO ide v0.16.1
VSCode 1.24.1 (the current latest version)
One of the things that does not work from my project is the UART.
I can build and flash simple blinky programs just fine. so I know my setup is fine.
But as soon as I add this line,
Serial pc(USBTX, USBRX);
to a simple program it stops working entirely. But it it builds fine with no errors and uploads just fine as well. Just the application breaks.
I’ve added a pic of my output.
Any help on this problem would be greatly appreciated
Hi, an update, I’ve tried a few terminal programs to no avail. I have it working now but a bit of confusion on my part.
So it seems this line:
upload_protocol = stlink
Allows me to upload. I had newly added that line when I posted my platformio.ini above and still had some problems for a while after making the change. But it started working after that. My relief and joy from getting something working out of this overshadows my slight frustration over why the mbed upload protocol doesn’t work, so I won’t complain too much.
So if anyone’s having trouble flashing mbed programs using PIO. Maybe substituting
upload_protocol = mbed for upload_protocol = stlink will help you as well.