Arduino_STM32
Arduino_STM32 copied to clipboard
write and update have been modified
details described in issue named EEPROM multiple data at the same address
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?
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.
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