problem with USB HID Bootloader

Post Reply
Author
Message
gmips
Posts: 1
Joined: 05 Aug 2017 15:39

problem with USB HID Bootloader

#1 Post by gmips » 05 Aug 2017 15:49

Hi, I have a problem with my clicker 2 for STM32, when I try to connect clicker to USB HID Bootloader I have a message Unable to find device: USB HID Bootloader.

User avatar
darko.ilijevski
Posts: 581
Joined: 21 Mar 2017 16:57

Re: problem with USB HID Bootloader

#2 Post by darko.ilijevski » 10 Aug 2017 08:04

Hello,

There is a possibility that the bootloader routine got overwritten accidentally, so you would have to program another one by using a programmer. Sometimes it happens, since bootloader code is kept in the flash memory, along with your code and if the code accidentally writes something in that area or the content gets damaged by other means, bootloader stops working. Second reason could be a hardware fault. Try the bootloader on another PC too, if possible.

Best regards
BR,
Darko

Brussieux
Posts: 17
Joined: 09 Dec 2011 09:48

Re: problem with USB HID Bootloader

#3 Post by Brussieux » 14 Sep 2017 14:31

hi, already had the same problem and had to reprogram the bootloader using external programmer.

is there any way to flash a program without erasing the bootloader (config option or whatever...)?

thank you,

regards.

User avatar
darko.ilijevski
Posts: 581
Joined: 21 Mar 2017 16:57

Re: problem with USB HID Bootloader

#4 Post by darko.ilijevski » 14 Sep 2017 19:44

Hi

If you use the mE bootloader to upload a hex, it won't touch the bootloader itself, it is made to take care of that, but if your code messes with the memory, or uses specifically set memory locations to store variables or other data, it can damage the bootloader code. Avoid declaring variables on predetermined addresses and flash-write functions and you should be fine...

Best regards
BR,
Darko

Post Reply

Return to “mikroBootloader”