Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HID BOOTLOADER STM32F103R.. #104

Closed
GitMauri opened this issue Jan 27, 2021 · 7 comments
Closed

HID BOOTLOADER STM32F103R.. #104

GitMauri opened this issue Jan 27, 2021 · 7 comments

Comments

@GitMauri
Copy link

Hi Thanks for your work and for your sharing.

I've used Serasidis Bootloader on Roger Clark 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 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...

@rogerclarkmelbourne
Copy link
Owner

You seem to have posted this issue to the wrong repo.

This is not the repo for the HID bootloader.

@GitMauri
Copy link
Author

GitMauri commented Jan 27, 2021

Hi Roger

Thank you for your nice work during these years. It has got me start playing with microcontroller for the first time...

I was thinking maybe other people didn't have this problem, and I've seen in your 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 Serasidis repo

Thanks again

Maurizio

@rogerclarkmelbourne
Copy link
Owner

AFIK this repo does not have a file hid_bootloader.ld

@GitMauri
Copy link
Author

I just downloaded the ZIP file and it is inside...

Arduino_STM32/STM32F1/variants/generic_stm32f103c/ld/hid_bootloader.ld
Added support to HID Bootloader 2.0 3 years ago

@GitMauri
Copy link
Author

GitMauri commented Jan 27, 2021

Ohh now I see, i did a mistake, I've put an issue on your bootloader and not on your core... i did a mistake

@rogerclarkmelbourne
Copy link
Owner

Ah. I was about to say, there are no Variants folder in this repo.

@GitMauri
Copy link
Author

Hi Guys

Maybe someone ended up here Googling, so it is useful to explain how I found a solution to my problems for the HID bootloader.
However I posted the issue here by mistake... I thought I was posting on the STM32 CORE repo.
Roger's bootloader works as good as a Swiss clock!

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.

Serasidis/STM32_HID_Bootloader#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... :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants