AnsweredAssumed Answered

IAP commands Copy to Flash

Question asked by lpcware Employee on Jun 15, 2016
Latest reply on Jul 19, 2017 by Juan Abelaira
Content originally posted in LPCWare by OldisGold on Fri Oct 02 11:42:27 MST 2015
Hi,

Board: LPC54102 Sensor processing
IDE: LPC Xpresso v 7.7.2

I am working on building a secondary bootloader and using IAP commands to copy a binary(application firmware) to the flash. However the Copy RAM to Flash doesn't work for me. I am using the  function Chip_IAP_CopyRamToFlash from iap.c passing arguments as follows

Chip_IAP_CopyRamToFlash(START_WRITE_ADDR, src_iap_array_data01, IAP_NUM_BYTES_TO_WRITE);

Start_write_address is 0x00018000

src_iap_array_data01 is the array containing the data from the binary(application firmware)

IAP_NUM_BYTES_TO_WRITE is 4096


I have prepared the sector for erase/write prior to calling the Chip_IAP_CopyRamToFlash.

Regards,
OldidGold

Outcomes