Read and write an array to the microcontroller EEPROM

Use this section to discuss your embedded Flowcode projects.
Post Reply
Carmelo
Posts: 123
http://meble-kuchenne.info.pl
Joined: Thu Oct 14, 2021 10:04 am
Has thanked: 50 times
Been thanked: 4 times

Read and write an array to the microcontroller EEPROM

Post by Carmelo »

I have a variable set as an array of 10 elements and I would like to read and write all the data of that array into EEprom memory.
Can it be done in some way or do you have to read and write them cyclically, one by one each element of the array in a memory location?

C.

medelec35
Matrix Staff
Posts: 1955
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 626 times
Been thanked: 656 times

Re: Read and write an array to the microcontroller EEPROM

Post by medelec35 »

Hello.
You can use a loop and increment the count of the loop the count will be the address and send one element at a time as the data value.'
I can post a simple example if you like?
Just don't keep writing as there is a limit to how many times EEPROM can be written to.
Martin

Carmelo
Posts: 123
Joined: Thu Oct 14, 2021 10:04 am
Has thanked: 50 times
Been thanked: 4 times

Re: Read and write an array to the microcontroller EEPROM

Post by Carmelo »

Muchas gracias por la respuesta.
Agradecía el ejemplo.

C.

liudeqiang_2008
Posts: 18
Joined: Wed Jan 12, 2022 8:25 am

Re: Read and write an array to the microcontroller EEPROM

Post by liudeqiang_2008 »

medelec35 wrote:
Fri May 30, 2025 7:25 pm
Hello.
You can use a loop and increment the count of the loop the count will be the address and send one element at a time as the data value.'
I can post a simple example if you like?
Just don't keep writing as there is a limit to how many times EEPROM can be written to.
Hello
Could you please post a simple example? I am now have the same question.
Many thanks!

Best regards
Deqiang

Post Reply