Hi everybody, hope this email finds you well, I would appreciate some help about a proyect that I'm doing, I'm developing a custom board based on IMXRT1020 EVK, with the difference that I'm using two SDRAM chips to add more memory for future software developments, these SDRAM are connected to two independent 512Mbit sectors of the SEMC using two CS:
IMXRT1021DAG5A connected to:
- SDRAM0 IS42S16160J-6TLI (CS0 GPIO_EMC_12)
- SDRAM1 IS42S16160J-6TLI (CS1 GPIO_AD_B1_01)
The software is stored in a uSD card and then (using a DCD file) it is copied on SDRAM to running from there.
Using one SDRAM (SDRAM0 connected to CS0) and MCUBootutility I can download an image to the uSD with a DCD file and everithing works fine just with one SDRAM:
These are the MCU Settings to use only one SDRAM:

Problem: When I try to use the other SDRAM (CS1) putting the heap and stack there (those are in the BOARD_SDRAM_NCACHE region), it doesn't work any more:
These are the settings to use two SDRAM:

I've attahced the DCD file that works fine with one SDRAM but not for two, this DCD file is modified to send IP commands to the second SDRAM (starting with 84000000 address).
I've validated the connection hardware using a program that running in NOR to test both SDRAM0 and 1, and those work ok, so the hardware not seems to be the problem.
I think that I'm making a mistake with the inicialization process of SEMC to handle two SDRAM on differents sector.
I'm doing different tests trying to find an answer, but I can't find a solution.
Would you have an idea?
Maybe you have an "application note" to share with me about a similar case.
I'm searching on the web but I can't find something similar, usually both SDRAM are used with the same CS sector.
Many thanks in advance.