write data to the E2PROM, ruining the program area

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

cross mob
Anonymous
Not applicable

 I used CY8C24533,CY8C27643 and CY8C29666, but only CY8C29666 save data to the E2PROM, if the address is wrong, the program area will be destroyed, such as digital controls are not displayed, the program can not run. Many similar situations happen, I need to address one by one to try, such as 

   

save six bytes of data should be: E2PROM_E2Read (0, SAVE, 6); 

   

but I need wirte :

   

       E2PROM_E2Read (1, & SAVE [0], 1); 

   

       E2PROM_E2Read (7, & SAVE [1], 1); 

   

       E2PROM_E2Read (12, & SAVE [2], 1); 

   

       E2PROM_E2Read (18, & SAVE [3], 1); 

   

       E2PROM_E2Read (28, & SAVE [4], 1); 

   

       E2PROM_E2Read (58, & SAVE [5], 1); 

   

who can help me???

0 Likes
2 Replies
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

When you start PSOC  Designer there is a project using EEPROM you

   

can try out and/or use -

   

 

   

On start page "Launch Example Browser", and you will see E2PROM example in the

   

list.

   

 

   

This might help as well - http://www.cypress.com/?docID=34929

   

 

   

Regards, Dana.

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Can you post your complete program here so that we all can have a look at the internal settings you provided.

   

To do so use Designer's function "Archive Project" and upload the resulting .zip file here using internet explorer (CHROME does NOT work)

   

 

   

Bob

0 Likes