No source available for "0xfffffffe"

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

No source available for "0xfffffffe"

1,298 次查看
leechen
Contributor III

I'm trying to read data from EEPROM. I use LPC11u68.  When I read data from EEPROM, it shows "No source available for "0xfffffffe". Can any one help me?  I don't understand what I've done wrong. 

my code:

#define EEPROM_START_ADDRESS                      (0x00000040)

#define IAP_NUM_BYTES_TO_READ_WRITE         16

uint32_t buffer[IAP_NUM_BYTES_TO_READ_WRITE / sizeof(uint32_t)];

void readEEPROM(int addressEEPROM, uint32_t serial)
{
   uint32_t command[5], result[4];
   uint8_t *ptr = (uint8_t *) buffer;
   uint32_t i;

   / * Data to be read from EEPROM */
   command[0] = IAP_EEPROM_READ;
   command[1] = addressEEPROM;
   command[2] = (uint32_t) ptr;
   command[3] = IAP_NUM_BYTES_TO_READ_WRITE;
   command[4] = SystemCoreClock / 1000;
   iap_entry(command, result);

   for(i = 0 ; i < IAP_NUM_BYTES_TO_READ_WRITE ; i++)
   {
      testReceiverUID[serial][i] = *((uint8_t *)buffer + i);
   }
}

while(1)
{
   uint32_t i;

   readEEPROM(EEPROM_START_ADDRESS + (10 * IAP_NUM_BYTES_TO_READ_WRITE), 10);

}

标记 (2)
2 回复数

1,123 次查看
j_meme
Contributor I

Please refer to : https://community.nxp.com/thread/436678 

(You must disable interrupts ; And from my experience, available too for LPC17xx) ;

0 项奖励

1,123 次查看
jeremyzhou
NXP Employee
NXP Employee

Hi  Lee Chen

Thank you for your interest in NXP Semiconductor products and 
the opportunity to serve you.

To provide the fastest possible support, I'd like to suggest you to refer to the periph_eeprom demo which illustrates using IAP command to read, write EEPROM operations in LPCOpen library.

Have a great day,
TIC

 

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 项奖励