STM8L : why is the beginning of flash memory (0x8000 to 0x9200) erased/modified after power off ?(!)
Hello,
When I flash a user application to STM8L with STVD, it works fine. As long as I do NOT power off MCU, I can read back flash content with STVP. For the first byte located at address 0x8000 (beginning of IT vector table), value is 0x82, which is normal.
But, if I disconnect USB cable and reconnect it, and if I read flash content with STVP, the data have been modified and the first byte is not 0x82 any more ! Moreover, it seems that most of data are 0 (not all of them) from address 0x8000 to 0x9200.
I replaced my user application by a simple one, let's say an "empty main function", and the issue is still there.
Any idea ? Thank you in advance for any help... :)
Julien
