Skip to main content
Visitor II
October 22, 2010
Question

STM8L Bootloader

  • October 22, 2010
  • 3 replies
  • 1418 views
Posted on October 23, 2010 at 00:58

STM8L Bootloader

    This topic has been closed for replies.

    3 replies

    Visitor II
    May 17, 2011
    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

    siaAuthor
    Visitor II
    May 17, 2011
    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,

    Visitor II
    May 17, 2011
    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.