HID bootloader and STM32F103R

Bootloader for STM32F103 and STM32F4xx micro-controllers
No special driver is required. Support for Windows, Linux and Mac Operating System
Post Reply
mauriziostm32
Posts: 23
Joined: Sat Mar 21, 2020 3:18 pm
Answers: 1

HID bootloader and STM32F103R

Post 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: https://stm32-base.org/boards/STM32F103 ... -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)


Thanks
by mauriziostm32 » Fri Jan 29, 2021 2:06 am
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.

https://github.com/TheKikGen/stm32-tkg-hid-bootloader

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.

https://github.com/Serasidis/STM32_HID_ ... /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... :-)
Go to full post
stevestrong
Posts: 502
Joined: Fri Dec 27, 2019 4:53 pm
Answers: 8
Location: Munich, Germany
Contact:

Re: HID bootloader and STM32F103R

Post by stevestrong »

You should post the issue on Vassilis github site: https://github.com/Serasidis/STM32_HID_Bootloader
mauriziostm32
Posts: 23
Joined: Sat Mar 21, 2020 3:18 pm
Answers: 1

Re: HID bootloader and STM32F103R

Post by mauriziostm32 »

stevestrong wrote: Wed Jan 27, 2021 8:30 am You should post the issue on Vassilis github site: https://github.com/Serasidis/STM32_HID_Bootloader

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


Thanks

Maurizio
mauriziostm32
Posts: 23
Joined: Sat Mar 21, 2020 3:18 pm
Answers: 1

Re: HID bootloader and STM32F103R

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

https://github.com/TheKikGen/stm32-tkg-hid-bootloader

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.

https://github.com/Serasidis/STM32_HID_ ... /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... :-)
Post Reply

Return to “STM32 HID bootloader”