Hello
I am just trying the "PlatformIO" development environment within VSCode editor.
I am also starting to play with the STM32 controller, and i have the ultra cheap "Blue pill" version from Banggood.
I managed to set up an Arduino framework project (basic blink), upload it to the controller using another cheap-o FTDI232 device from Banggood
so far so good.
However, i head good things about "MBED" programming platform, so i created another blink project based on MBED, and i can't upload it to the chip.
I am obviously missing something. I spent the evening failing to find anything obvious on the internet.
Has anyone got any experience with this?
In platformio, there is a platformio.ini file which specifies the target board, framework, port, and upload method for the project.
For the arduino blink project the file contents looks like this:
[env:genericSTM32F103C8]
platform = ststm32
board = genericSTM32F103C8
framework = arduino
upload_port = /dev/ttyUSB0
upload_protocol = serial
and this works.
for the MBED project the file looks as follows:
[env:genericSTM32F103C8]
platform = ststm32
board = genericSTM32F103C8
framework = mbed
upload_protocol = serial
upload_port = /dev/ttyUSB0
and this does not work. Computer says NO. More specifically, it says:
Warning! Unknown upload protocol serial
why would one platform/framework allow serial upload, while other did not?
Anyway, i am obviously missing something.
Can anyone shed any light on this?
Regards
Pete