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)

943件の閲覧回数
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 返信

611件の閲覧回数
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 件の賞賛