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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

961 Views
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

Labels (3)
Tags (2)
0 Kudos
1 Reply

629 Views
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 Kudos