//Day 1
In our new board we connect external is66WVS1M8ALL sram to the FlexSPI port on the channel A.
And I think - this is wrong connection, because it is not worked!
Used pins are (I think they wrong, but for question I describe them):
FLEXSPI_A_SS0_B: GPIO_SD_B1_11(19) - I think its is bind to internal flash, so we desolder from sram chip
FLEXSPI_A_SS1_B: GPIO_SD_B1_01(32) - I connect to sram chip select
FLEXSPI_A_DATA0: GPIO_SD_B1_08(23)
FLEXSPI_A_DATA1: GPIO_SD_B1_10(21)
FLEXSPI_A_DATA2: GPIO_SD_B1_09(22)
FLEXSPI_A_DATA3: GPIO_SD_B1_06(25)
FLEXSPI_A_SCLK : GPIO_SD_B1_07(24)
FLEXSPI_A_DQS : GPIO_SD_B1_05(26) - it is float(as I understand this is for 133Mhz usage possibility)
In my demo project I used modified flex_nor_poling_transfer example,
I set FlexSpi frequency to 12.5mHz(for logic analyzer) and try to read ChipId
from internal build in 4Mb flash and our external (out of cpu SRAM) chip.
I saw that chip Id for 4Mb flash read stable and relieble but chip Id for SRAM
not read correclty, just zerros...But...in my logic analizer I saw correct response
from SRAM chip, and chip select pins changing correctly while select correspond adress space. FlexSpi LUT command I use for 1PAD mode.
My question is - Is it possible to use external sram inFlexSPI port but in channel B for our External SRAM memory.
Should I have to prepare memory region in the MPU, for using this memory for code executon!
We confused with pins wich describes for boot mode and XIP!
What that meen in the document AN12878, page 3 "RT1024 has only one FlexSPI port and is used for internal flash. RT1024 doesn’t support external FlexSPI flash, please useinternal SIP flash instead".
- We cant use external sram for FlexSPI?
//Day 2
Yesterday we have soldered our SRAM chip to the FlexSpi channel B and rezult negative.
Chip select does not switched, read answer from Sram is zerroes.
I saw interest thing, if I asighn pins for FlesSpi channelA - board debug broke, if I leave pins for FlexSpi channel A not initialized - all works,
but when I decide to use pins for channel B - i do not see any signals, than I make initializing pins for channel B, and I saw correct signals.
If I try to use channel B, CS for kFLEXSPI_PortB2(47)does not switching, but for kFLEXSPI_PortA2 - CS work OK
...any Ideas?