Page 1 of 1

HID bootloader and STM32F103R

Posted: Wed Jan 27, 2021 7:26 am
by mauriziostm32
Hi Guys

I'm using Roger Core

I've used Serasidis Bootloader on Roger Clark's core and it was working great on 103c8t6... now I've tried to use on STM32F103RCT6 and there are problems that I cannot fix... (STM32 HID Bootloader 2.1.0)

I tried to add an edited hid_bootloader file to ....\STM32F1\variants\generic_stm32f103r\ld and I edited the boards.txt file for genericSTM32F103R UPLOAD METHODS adding HID....

I tried to recompile the generic-PD2.bin (make generic-pd2 PAGE_SIZE=2048) ...
When I upload the sketch the IDE recognizes the board and it seems to upload correctly, but a simple blink doesn't work...
(It works with Roger bootloader).

Maybe the HID bootloader is just not compatible with high density devices..?

Can I use the board as a 128KB STM32F103RBT6? That should be a low density right?

I tried but without luck... I compiled the generic-PD2.bin on Windows using CYGWIN64 and the GNU Arm Embedded Toolchain: 10-2020-q4-major December 11, 2020. It compiles without errors but it gives some warning about deprecated things...

the board: ... -V2.0.html
The chip onboard seems to be genuine... in the past I had issues with blue pills that worked ok with Roger bootloader, but they all couldn't work with the HID bootloader... turned out those blue and black pills had on board all fake chips...

I would like to keep Roger Core because I'm working on a project using arprus USB_composite (which is only compatible with Roger core)


Re: HID bootloader and STM32F103R

Posted: Wed Jan 27, 2021 8:30 am
by stevestrong
You should post the issue on Vassilis github site:

Re: HID bootloader and STM32F103R

Posted: Wed Jan 27, 2021 8:48 am
by mauriziostm32
stevestrong wrote:
Wed Jan 27, 2021 8:30 am
You should post the issue on Vassilis github site:

Hi Steve, I'll do it. I was thinking maybe other people didn't have this problem, and I've seen in Roger Clark core the hid_bootloader.ld file is already inside the variant STM32F103C8T6, but not in other folders...

I'll try to write an ISSUE on his repo



Re: HID bootloader and STM32F103R

Posted: Fri Jan 29, 2021 2:06 am
by mauriziostm32
Hi Guys

Maybe someone ended up here Googling, so it is useful to explain how I've found a solution to my problems for the HID bootloader and STM32F103RC.

I used a mixed solution: I got the bootloader bin file from the new project of TheKikGen, but I used the Flasher (hidflash) of Serasidis, down I explain why.

KikGen also helped me to correct my wrong values in the ld file.

I experienced some problems with the tkg-flash that KikGen has probably already fixed. Check out his new HID bootloader, very nice new features... he is tuning all up.

Here the chronology and details of my fix. ... /issues/44

Thanks to Roger, Serasidis, Arprus, Kikgen, Stevestrong, MrBurnette, FpiSTM and many others. who help us to have fun with our small projects without even checking one register...

Thanks to them we can focus on ideas and creativity forgetting the complexity...

Kudos, Sudos, Nudos, Pudos, Rados.... There are no words to express gratitude so I just forged some... :-)