I’m looking for some guidance on how to configure, load and debug using external QuadSPI FLASHes other than the single boot device when using MCUSpresso.
I’ve got a custom board that uses either a RT1052, or a RT1064, that has two S25FL256SAGBFI313 QuadSPI FLASHes.
We're still using MCUXpresso 10.3.1 with SDK 2.5 and 2.6.
Both QuadSPI FLASHes are connected to FlexSPI (1) ‘A’ bus:
the first uses the A_SS0_B select on L3, and the second the A_SS1_B on H13.
Using the RT1052, I have projects that can program, debug and run using the first external FLASH.
Using the RT1064, similar, but using the internal FLASH.
On either I can run variations of the flexspi_nor_polling_transfer examples.
In those after manually configuring FlexSPI(1) and the A_SS1_B pin on H13 I can erase and program each external FLASH separately.
Using the RT1052, I added a line to the qspiflash_config structure in flexspi_nor_config.c
.sflashA2Size = 32u * 1024u * 1024u,
After booting this code, the FLEXSPI controller is configured as expected, but the bootloader doesn’t configure the second chip select on A_SS1_B on H13.
After I configure the pin in pin_mux.c, then I can access the second FLASH.
First RT1052 question: What is the correct way to get the boot loader to enable the A_SS1_B pin?
I know I can do it by adding to the DCD, but the new tool doesn’t support the registers.
Does the bootloader?
What does csPadSettingOverride do, and where is it documented?
Also using the RT1052, I updated the MCU settings to include the second FLASH, and also had it use the same MIMXRT1050_SFDP_QSPI.cfx driver:

When I start the debugger, in the debug messages console, I see that MIMXRT1050_SFDP_QSPI.cfx is called twice.
But when it probes it uses the same address (0x60000000) twice instead of 0x62000000 for the second FLASH.

Second RT1052 question: How do I configure the MCUXexpresso so that the debugger can program code into the second FLASH?
Building on this, for the RT1064 the qspiflash_config structure in flexspi_nor_config.c is used by the bootloader to configure FLexSPI2 to access the internal FLASH at 0x70000000.
First RT1064 question: How do I configure FlexSPI(1) to access the external QuadSPI FLASHes at 0x60000000?
Second RT1064 question: And what else is needed to get MCUXpresso able to load and debug these external FLASHes?
Thanks for any insight,
Steve