bootsector / stm32-hid-bootloader

Driverless USB HID bootloader and flashing tool for STM32F10X devices
GNU General Public License v3.0
161 stars 48 forks source link

Using HID Bootloader with STM32 Core #3

Closed Suprazz closed 5 years ago

Suprazz commented 5 years ago

I tried to used your bootloader with STM32 core instead of the STM32druino.

I did basically the same thing as your patch does but in the STM32 1.2.0 folder.

I'm able to compile and flash now in Arduino using the new menu added in STM32 Generic STM32F103 Series but the program never execute after I remove the boot1 jumber and reset the board like it does with the STM32Druino with HID Upload.

I guess the problem is something linked with the linker script. I changed the flash memory address to 0x08001000. I'm not sure what else should I try.

Any suggestion?

bootsector commented 5 years ago

Hi there!

This bootloader and sample project are generic. You should be able to get better support on integrating this with the stm32duino from the following repo: https://github.com/Serasidis/STM32_HID_Bootloader

In any case, you should make sure that the #define VECT_TAB_OFFSET inside system_stm32f10x.c is defined properly:

It should be defined as 0x1000 for the user program and 0x0000 for the bootloader.

Cheers!

Suprazz commented 5 years ago

Thank you so much. This was the only thing missing! It works now!