I followed this tutorial to upload a bootloader to my bluepill https://youtu.be/Myon8H111PQ. I am able to successfully upload my code when using VSCode Platformio on Windows, but it's failing for me when I try it on Linux Manjaro.
my platformio.ini is this:
Code: Select all
[env:bluepill_f103c8]
platform = ststm32
board = bluepill_f103c8
framework = arduino
upload_flags = -c set CPUTAPID 0x2ba01477
upload_protocol = hid
build_flags=
-D PIO_FRAMEWORK_ARDUINO_ENABLE_CDC
-D USBCON
-D USB_VID=0x0483
-D USB_MANUFACTURER='Unknown'
-D USB_PRODUCT="\"BLUEPILL_F103C8\""
-D HAL_PCD_MODULE_ENABLED
Code: Select all
hid-flash: command not found
Code: Select all
> Trying to open the [ttyACM0]...
> Toggling DTR...
> Searching for [1209:BEBA] device...
###
> [1209:BEBA] device is found !
> Sending <reset pages> command...
*** [upload] Error -11
Also, when the board is in this state, the device is not recognized by the computer anymore, and I need to hit the reset button in order to get the computer recognize it again.
Any help on this would be appreciated. I would like to do my development on linux if I can.
Thank you.