cancel
Showing results for 
Search instead for 
Did you mean: 

PGEEZ1 - Cant write second time

SikandarLF
Associate III

Hi 

I m using PGEEZ1. Hope you are well. I am going through some irregularities , when i try to read second time it gives me all zeros. Your Assistance will be appreciated!

MX_EEPROM_Init();

/* USER CODE BEGIN 2 */

PGEEZ1_M95P32_WriteEnable(0); printf("\n\rWrite Enabled...");

for (int i = 0; i < 10; i++)

{

EEBuff1[i] = i+98765432; // Assigning incrementing values to each element

EEBuff [i] = i+12345678; // Assigning incrementing values to each element

 

}

 

PGEEZ1_M95P32_WritePage(0, EEBuff1, 1*M95P32_PAGESIZE, M95P32_PAGESIZE); printf("\n\rWrite OK ...");

 

PGEEZ1_M95P32_ReadPage(0, EEBuffRx1, 1*M95P32_PAGESIZE, M95P32_PAGESIZE); printf("\n\rRead ...");

 

PGEEZ1_M95P32_WritePage(0, EEBuff, 2*M95P32_PAGESIZE, M95P32_PAGESIZE); printf("\n\rWrite OK ...");

 

PGEEZ1_M95P32_ReadPage(0, EEBuffRx, 2*M95P32_PAGESIZE, M95P32_PAGESIZE); printf("\n\rRead ...");

 

0 REPLIES 0