Writing data to a flash adn reading it using memcpy function(IAP method)

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

Writing data to a flash adn reading it using memcpy function(IAP method)

1,553 次查看
chethankumar
Contributor III

Hi,

 

i am using board which contains NXP's lpc54102. I am trying to write data to a flash (Sector 15 , Address 0x0007E000) and read it using memcpy() function. I am using Chip_IAP_CopyRamToFlash() api to write data. If i read data using memcpy() immediately after writing then i am able to read the proper data.  if i try to read data in some other file using memcpy function, then i am not getting the expected data. What could be the issue? Is there any sequence to follow while reading data from the flash?(IAP mode)

 

 

Thanks in adavance,

Ck

标签 (3)
标记 (2)
0 项奖励
回复
1 回复

1,221 次查看
peter_furtner
NXP Employee
NXP Employee

Hi, reading data from the FlLASH is always possible. The Core usually reads its instructions from FLASH.
This may be a problem with the addresses you use for your memcpy().

0 项奖励
回复