2010-10-22 03:58 PM
STM8L Bootloader
2011-05-17 06:11 AM
2011-05-17 06:11 AM
Hello leo,
Thank you for your reply. Well, I found the solution to my problem which is not a clean one, here it is: 1- I have to erase both data and program area before any attempt to prgram the flash using the STLink. Earasing the memory using STLink beats the purpose of using bootloader to Erase/Program the flash or eeprom. 2- I had to undock my DELL laptop. Once the laptop is undocked and the RS232 is directly connected to the laptop then I could start the bootloader. So, I hope that you get some useful information for your problem. Regards,2011-05-17 06:11 AM
The bootloader is only enabled by default if the device is blank.
If you want the bootloader to run on a non-blank deviceyou must setthe bootload bits in the option byte
If you have been debugging with swim then almost certainly the device will not be blank.
Read the section in the datasheet and the bootloader app notes.
This is why the pc app doesn't detect the bootloader and why when you erase the device it works.