No serial with BlackPill and PlatformIO
Posted: Sat Oct 30, 2021 10:44 am
So,
I'm just getting started with the BlackPill (F401CC) uploading with the DFU through VSCode/PlatformIO with ST STM32 14.2.0 (and before I had 12.something, updated it to see if that was the issues). It's a knock off WeAct v2.0, and came with the original pulsing blink.
I can upload to it with the DFU with the Arduino IDE (1.8.13) and the stm32duino 1.9.0 (which looking at it is deprecated, but it works so I don't think this is my issue).
I upload a blink sketch with a Serial.begin(11520) and a Serial.println("Hello World!") and everything works fine... it uploads, I starts blinking, there's a serial port which outputs "Hello World!" every few seconds. All good.
If I copy the same code over to PlatformIO (having set the .ini up for the board) I then upload it from here, and all works fine, DFU uploads ok, the blink works (I know its this file as I changed the delays so it's a different blink) BUT, no serial port or communication.
I've checked it in Arduino and there's no port being set up there either.
Anyone got any ideas? I imagine its simple, but I've tried updating/restarting everything to no avail.
I imagine it's something I'm missing in PlatformIO as I'm not really a power user yet.
Cheers,
Nick
I'm just getting started with the BlackPill (F401CC) uploading with the DFU through VSCode/PlatformIO with ST STM32 14.2.0 (and before I had 12.something, updated it to see if that was the issues). It's a knock off WeAct v2.0, and came with the original pulsing blink.
I can upload to it with the DFU with the Arduino IDE (1.8.13) and the stm32duino 1.9.0 (which looking at it is deprecated, but it works so I don't think this is my issue).
I upload a blink sketch with a Serial.begin(11520) and a Serial.println("Hello World!") and everything works fine... it uploads, I starts blinking, there's a serial port which outputs "Hello World!" every few seconds. All good.
If I copy the same code over to PlatformIO (having set the .ini up for the board) I then upload it from here, and all works fine, DFU uploads ok, the blink works (I know its this file as I changed the delays so it's a different blink) BUT, no serial port or communication.
I've checked it in Arduino and there's no port being set up there either.
Anyone got any ideas? I imagine its simple, but I've tried updating/restarting everything to no avail.
I imagine it's something I'm missing in PlatformIO as I'm not really a power user yet.
Cheers,
Nick