When accessing the SPI flash with more than 128Mb *ldr,it is recommended to change byte addressing from 3 byte to 4 byte in flash.To access the memory array beyond 128Mb.This can be done by Entering the 4-Byte addressing mode using (B7h) command.
Please follow the instructions below to change the addressing mode:
1. Include and call the attached function in Init code and build it. Use this modified initcode while creating loader file.adi_spi_config.zip
2. Enable the below macro in device programmer code:
#define ENABLE_EXTENDED_ADDRESSING_MODE 1 /* Enable extended mode of access to the complete Flash address space */
Use modified 25lp512m_dpia_SC594_Core1.dxe in CLDP .