Hi I was trying to put password lock for EEPROM , In order to check I wrote the following lines
unsigned long pulPassword[3];
pulPassword[0] = 0x01;
pulPassword[1] = 0x02;
pulPassword[2] = 0x03;
{
SysCtlPeripheralEnable(SYSCTL_PERIPH_EEPROM0);
EEPROMInit();
EEPROMBlockPasswordSet(0,pulPassword, 3); // Set password
EEPROMBlockProtectSet(0, EEPROM_PROT_RW_LRO_URW); /// Block Protect Set
EEPROMBlockLock(0); // lock Block 0
EEPROMMassErase();
EEPROMRead(pulRead, 0x400AF000, sizeof(pulRead));
EEPROMProgram(pulData, 0x400AF000, sizeof(pulData));
EEPROMRead(pulRead, 0x400AF000, sizeof(pulRead));
While stepping into the the code I was trying to monitor the 0x400AF034 to 0x400AF03C registers but i could notice only 0x00000001 written to all the registers..
Am i making the right calls....
Regards
Rakesh M.