This is more of a fundamental question, so please feel free to correct me if I'm wrong in my understanding.
As of now I cannot set up SPIFI to read/write data when my application is running from the same external Flash on the LPCLink-2.
Specifically, I am getting stuck when trying to write to the SPIFI CMD register in spifilib_chiphw.h:
static INLINE void spifi_HW_SetCmd(LPC_SPIFI_CHIPHW_T *pSpifi, uint32_t cmd)
I'm using IAR with the default linker script to load my application into external Flash (iar_linker_scripts\lpc18xx_43xx_spifi_heap.icf) on the LPCLink-2. I am trying to set up my SPIFI peripheral so that I can access my own section of Flash to read/write data. In the linker file, the code section is set up as follows:
define symbol __ICFEDIT_region_ROM_start__ = 0x14000140;
define symbol __ICFEDIT_region_ROM_end__ = 0x140FFFFF;
So my basic question is: can I set up SPIFI and access data stored in 0x14100000? Thanks in advance.