Arduino_STM32 icon indicating copy to clipboard operation
Arduino_STM32 copied to clipboard

write and update have been modified

Open Damel91 opened this issue 5 years ago • 3 comments

details described in issue named EEPROM multiple data at the same address

Damel91 avatar Mar 27 '19 20:03 Damel91

Can you please tell me a reason why is this change needed? What kind of issue is solved with this? Any test sketch which can demonstrate the issue and the solution you provided?

stevstrong avatar Sep 14 '19 19:09 stevstrong

When I used the eeprom library i found that it didnt overwrite the data to a specific address but created a new one, so the eeprom will give fullfilled error after a bunch of time. My little modification let the data shift from one page to another, so you can overwrite the address that you written before.

Damel91 avatar Sep 19 '19 12:09 Damel91

I think this PR is related to this issue: https://github.com/rogerclarkmelbourne/Arduino_STM32/issues/606

I added some comments in line but upon a quick review of the code, it would fail to work properly since it tries to rewrite data on halfwords already written. That is invalid as per the programming manual. I added some comments in line. I haven't checked the whole rest of the changes, since that part already wouldn't work as intended.

This needs to gets rewritten as per the programming manual requirements: https://www.st.com/content/ccc/resource/technical/document/programming_manual/10/98/e8/d4/2b/51/4b/f5/CD00283419.pdf/files/CD00283419.pdf/jcr:content/translations/en.CD00283419.pdf

victorpv avatar Jan 02 '20 18:01 victorpv