my project use the ls1043a cpu, there are 2 qspi flashes, separated attached to cs0 and cs1.
cs0 flash is bootflash, run on XIP mode. cs1 flash is data flash.
During bootup, it will copy load_firmware.bin to run in OCRAM, responsible for loading firmware from data flash (cs1) and then return to bootflash.
After accessing data flash using AHB mode, how could i reconfigure QSPI controller to access bootflash in XIP mode ?
Investigating.
QSPI flash is XIP mode so based on the address scheme you define for your system, when you access back the bootflash address range, you will be in XIP mode.
Is there something I am missing? Please detail if yes.
Hi Yiping,
I am not sure about that. From my perspective, QSPI controller need to be setting to a special state to realize XIP access.
After i access the CS1 data sNOR, i need to configure the QSPI controller to AHB/IP mode to READ/ERASE/Program. The qspi controller is not in the initial state (maybe bootROM configure for bootflash)