rogerclarkmelbourne / Arduino_STM32

Arduino STM32. Hardware files to support STM32 boards, on Arduino IDE 1.8.x including LeafLabs Maple and other generic STM32F103 boards
Other
2.49k stars 1.25k forks source link

Writing String to EEPROM #921

Closed agganitk closed 1 month ago

agganitk commented 3 months ago

Hello I am using NUCLEOF103RB board and need to write string on Flash Memory Address starting 0x0801FC00 (page127). I see in your code EEPROM.write(AddressWrite, DataWrite) function doesn't have pointer to data as input. I am confuse on how to give string as input . pls suggest.

Thanks

board707 commented 3 months ago

split the string into bytes and write one at a time?

agganitk commented 3 months ago

ok,,.. another query is when i check example. Status = EEPROM.write(AddressWrite, DataWrite); AddressWrite is set to uint16 AddressWrite = 0x10; I don't understand. why so.... It should be 32 bit address between STM32 flash address range...

board707 commented 3 months ago

It is a logical address in the EEPROM page