I am using the RW612 chipset in external XIP mode, the code is running from the FlexSPI PortA1 and I am connecting a PSRAM (APS6404L) to the FlexSPI PortB1, I am using the SDK (25.06 Version) provided configuration to access the Port B1.
When trying to read the PSRAM ID, I am not seeing any signal activities on the PortB1 (CLCK/CS).
I removed the SPARM to be sure that these signals are not held by a defective part.
is this related to the fact that the APS6404 doesn't use the DQS signal?
How I can configure the PortB1 to not use the DQS? knowing that FLEXSPI_Init function can't be called after the FlexSPI is initialized for PortA1 access.
Thanks for your help and time.
Hello Roman,
Thank you for your help, the issue was related to trying to configure the FlexSPI clock while the bus is running, I commented out the following lines:
CLOCK_EnableClock(kCLOCK_Flexspi);
BOARD_SetFlexspiClock(FLEXSPI, 5U, 3U);
The FlexSPI Port B1 is running now, and I can use the AHB Cache to Write/Read from the PSRAM.
Thanks for the help, much appreciated.
Hello @khalidL.
Did you define the PSRAM memory section in the MCU settings as shown in the image below?
Please make sure to follow the steps provided in the Application Code Hub post of the project and let me know if the problem persists.
Hello Roman,
Thank you for your help and time, in the process of integrating the above example in my project I ran into the following issue, when I call the function "__RAMFUNC(SRAM) status_t BOARD_InitPsRam(void)" from my main the code crashes silently.
Is there any other changes I need to do to my project to integrate the example other than changing the linker files (main_data.ldt, main_txt.ldt and noinit_noload_section.ldt) and copying the board.c file? I am thinking that the code crashes because the BOARD_InitPsRam wasn't correctly copyed to the RAM.
Thanks again for your time and help.
The example works on my board, thank you very much for the help.
Hello @khalidL , hope you're doing well.
There is an example in Application Code Hub regarding XIP from external NOR flash, please help me by testing the sample from the link shared and let me know if it fits into your project requirements.
In order to import the project to MCUXpresso IDE, click on "Import from Application Code Hub" option. (Note that SDK version 2.16.00 is required for this sample)
Once in the Application Code Hub window search for the sample's name (XIP from external NOR flash and configuring external pSRAM using multiport FlexSPI module), select it and click on "Github link" and wait until the "Next >" button can be used.
Once clicked on the "Next >" button, follow the steps to import the project from the git repository. Finally, when the project is available in your workspace you should be able to flash and test it on your setup.
Let me know if this helps.