problem with USB HID Bootloader
problem with USB HID Bootloader
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.
- darko.ilijevski
- Posts: 581
- Joined: 21 Mar 2017 16:57
Re: problem with USB HID Bootloader
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
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
Darko
Re: problem with USB HID Bootloader
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.
is there any way to flash a program without erasing the bootloader (config option or whatever...)?
thank you,
regards.
- darko.ilijevski
- Posts: 581
- Joined: 21 Mar 2017 16:57
Re: problem with USB HID Bootloader
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
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
Darko