Skip to main content
Visitor II
June 30, 2020
Question

writing into EEPROM failed in Second attempt

  • June 30, 2020
  • 1 reply
  • 1027 views

Hi,

i am using st link v3. with stm32 cube programmer v2.4.0.

hardware = stm32L071

set the RDP level to AA.

i can write the eeprom only once on same address, if i try to change the value on same address then cube programmer is block. please take look on image.

first i read the address 0x08080000. i try to write 2 on the 4th byte. it was written successfully after that if i try to chang the same value to 3 then cube programmer blocked.i can not disconnect the device and eeprom value is also not updated .

0693W000001rqsZQAQ.png

the second issue is,

set the RDP level to AA. write some value int the eeprom address after that set the RDP level to BB. then again set the RDP level to AA. the eeprom data is erased automatically. is this normal behaviour ? just changing the protection level will erase the eeprom.

Thank you..

0693W000001rvF8QAI.gif

    This topic has been closed for replies.

    1 reply

    Graduate II
    June 30, 2020

    You need to erase the eeprom cel before rewrite!

    JuttAuthor
    Visitor II
    June 30, 2020

    thank you for quick reply. there is no option in cubeprogrammer to erase the eeprom memory. if i try to write Zeros(0) inside cell before rewriting, still this is also not working.

    here is log form rewirting. cube pro is trying to erase but not successfull.

    19:28:09:433 : DOWNLOADING ...
    19:28:09:433 : Size : 4 Bytes
    19:28:09:433 : Address : 0x08080010 
    19:28:09:434 : Memory edition...
    19:28:09:434 : Reading data...
    19:28:09:434 : r ap 0 @0x08080010 0x00000004 bytes
    19:28:09:435 : Reading data...
    19:28:09:435 : r ap 0 @0x00000000 0x00000000 bytes
    19:28:09:624 : Memory erase...