cancel
Showing results for 
Search instead for 
Did you mean: 

STM8L Bootloader

sia
Associate II
Posted on October 23, 2010 at 00:58

STM8L Bootloader

3 REPLIES 3
leoren_tm
Associate II
Posted on May 17, 2011 at 15:11

Hi.

    if we refer to datasheet and notes. 55 AA should work, but for now I have same problem. maybe you can try a new IC as by default bootloader is enable. also ROP should be disable.

leo

sia
Associate II
Posted on May 17, 2011 at 15:11

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,

Stm32User
Associate II
Posted on May 17, 2011 at 15:11

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.