CKS32F103C8T6 HID Upload failing on Arch Linux

Bootloader for STM32F103 and STM32F4xx micro-controllers
No special driver is required. Support for Windows, Linux and Mac Operating System
Post Reply
sandeshakya
Posts: 1
Joined: Sun Jun 27, 2021 5:42 am

CKS32F103C8T6 HID Upload failing on Arch Linux

Post by sandeshakya »

Hey guys,
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
  
I initially had an error saying

Code: Select all

hid-flash: command not found
I installed hid-flash, and now I get this error:

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
When it gets to Toggling DTR, the builtin led is blinking really quickly.

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.
Post Reply

Return to “STM32 HID bootloader”