Can EEPROM used in while(1) loop?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
bugkiller
Level 2
Level 2
10 replies posted 50 sign-ins First like received

So as a debugging method, I writing eeprom data to function in infinite while loop.

I can't show you the code, but here is some example:

while(1)

{

 function1();

funciton2();

}

//////////

void function1();

{

Em_EEPROM_Write(0,0x00,1);

Em_EEPROM_Read(0,eepromRead[0],1);

}

void function2();

{

Em_EEPROM_Write(1,0x01,1);

Em_EEPROM_Read(1,eepromRead[1],1);

}

like this.

But I can't read EEPROM data.

Is it possible read data from infinite loop?

 

Best regards.

0 Likes
2 Replies
LeoMathews
Moderator
Moderator
Moderator
First question asked 500 replies posted 100 solutions authored

Hi @bugkiller 

Can you please tell us whether you are getting any console messages while trying to read the EEPROM data in the while loop?

Thanks and Regards,
Leo

0 Likes
Rakesh_Patrudu
Moderator
Moderator
Moderator
25 solutions authored 5 likes given 50 replies posted

Hi @bugkiller ,

Thread was locked due to inactivity for long time, you can continue the discussion on the topic by opening a new thread with reference to the locked one. The continuous discussion in an inactive thread may mostly be unattended by community users.

Best Regards,
Rakesh

 

0 Likes