Announcements

Equip yourself to optimize PSoc4 MCUs for Evs at the EV Webinar. Click here to register.

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

PSoC™ 4 Forum Discussions

bugkiller
Level 2
Level 2
50 sign-ins First like received 10 questions asked

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
100 sign-ins 25 solutions authored 100 replies posted

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
100 sign-ins 25 replies posted 10 solutions authored

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