Marmes
Member
If the second chip is absent or PSRAM: yes.
If the second chip is flash and the combined sum of both chips is smaller than 32MB: no, because LittleFS will overwrite FLEXSPI2_FLSHA2CR0.
Thanks, that makes sense. On my board both chips are PSRAM, so leaving A2CR0 at 64 MB works there (results above). For a flash on chip 2 where PSRAM + flash is below 32 MB, LittleFS rewriting A2CR0 would bring the hole back, so resizing the MPU region to the detected total (A1 + A2) is the only variant I tested that does not depend on what else touches the FlexSPI2 registers. I cannot test the LittleFS case myself, as I have no flash on that bus.