hid_bootloader not working on bluepill stm32f103c8t6
Posted: Tue May 16, 2023 9:36 pm
Hi,
after several tries and a lot of reading, i found no solution. So i ask for help from you.
I want to upload a sketch onto my blue pill via usb. Therefore i downloaded the bootloader archive found at https://github.com/Serasidis/STM32_HID_Bootloader. Then i uploaded the bootloader hid_generic_pc13.bin onto the board using the stm cube programmer and a ftdi. The programmer shows no error message and the onboard led is blinking at a quit fast frequence after resetting the bootjumper and restarting the blue pill. So i assume the upload of the bootloader and the bootloader itself work.
After disconnecting the usb cable from the bluepill and reconnecting it, windows states that the device could not be initialized and the device manager lists the device as "unknown USB device". I tried both version - low / medium density and high density - of the bootloader, but it works with neither version.
To narrow the problem down i wrote a simple "Hellow world" sketch and compiled it with usb support set to "CDC (generic 'Serial' supersede U(S)ART))". I upload the sketch onto the bluepill using the programmer and ftdi. After the upload a new com port is installed and i'm able to read the serial output from the sketch using Tera Term and the new com port. So i assume that the serial port over the usb connector works.
Here some issues i think about:
To upload the bootloader i set the bootjumper 0 as required. After the upload i set the jumper back. Is this the right way to upload a sketch using the bootloader?
The bootloader files are from 2019 and therefore quite old. Are there any newer files?
Any hint is welcome.
Regards
Gregor
PS: If needed here my system stats
Windows 10
Arduino IDE 2.1
Board package "STM32 MCU based Boards" Version 2.5
Bluepill stm32f103c8t6 - medium density, 128k flash, R10 reworked to 1,6k
after several tries and a lot of reading, i found no solution. So i ask for help from you.
I want to upload a sketch onto my blue pill via usb. Therefore i downloaded the bootloader archive found at https://github.com/Serasidis/STM32_HID_Bootloader. Then i uploaded the bootloader hid_generic_pc13.bin onto the board using the stm cube programmer and a ftdi. The programmer shows no error message and the onboard led is blinking at a quit fast frequence after resetting the bootjumper and restarting the blue pill. So i assume the upload of the bootloader and the bootloader itself work.
After disconnecting the usb cable from the bluepill and reconnecting it, windows states that the device could not be initialized and the device manager lists the device as "unknown USB device". I tried both version - low / medium density and high density - of the bootloader, but it works with neither version.
To narrow the problem down i wrote a simple "Hellow world" sketch and compiled it with usb support set to "CDC (generic 'Serial' supersede U(S)ART))". I upload the sketch onto the bluepill using the programmer and ftdi. After the upload a new com port is installed and i'm able to read the serial output from the sketch using Tera Term and the new com port. So i assume that the serial port over the usb connector works.
Here some issues i think about:
To upload the bootloader i set the bootjumper 0 as required. After the upload i set the jumper back. Is this the right way to upload a sketch using the bootloader?
The bootloader files are from 2019 and therefore quite old. Are there any newer files?
Any hint is welcome.
Regards
Gregor
PS: If needed here my system stats
Windows 10
Arduino IDE 2.1
Board package "STM32 MCU based Boards" Version 2.5
Bluepill stm32f103c8t6 - medium density, 128k flash, R10 reworked to 1,6k