- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Is there a possibility to have two or more memory slots in XIP mode without switching between them manualy?
Now it is only possible to manually select QSPI slave, for example using this sequence:
cyhal_qspi_init(&qspi_psram_obj, QSPI_IO0, QSPI_IO1, QSPI_IO2, QSPI_IO3, NC, NC,NC, NC, QSPI_CLK, PSRAM_SSEL, QSPI_FREQ, 0);
cyhal_qspi_slave_select_config(&qspi_psram_obj, FLASH_SSEL);
/*Entering XIP mode and working with external PSRAM on slot 0...*/
cyhal_qspi_select_active_ssel(&qspi_psram_obj, FLASH_SSEL);
/*Entering XIP mode and working with external FLASH on slot 1...*/
Regards,
Gintaras
- Labels:
-
PSoC 6 MCU
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello @Gintaras ,
Can you please provide more details of the device, connections, and memories you are working with? Also, please share the linker script so that we can understand the layout and XIP sections that have been defined.
Is the requirement to have XIP modes working simultaneously on multiple memory devices?
Regards,
Dheeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Dheeraj,
Indeed, simultaneous XIP modes with external Flash and external PSRAM in a different memory regions is what I need. This would extend both the Flash and the RAM of the MCU.
MCU CY8C6245AZI-S3D72, PSRAM APS6404L-3SQR-ZR Slot 0, Flash S25HL512TFABHI010 Slot 1; Using Quad SPI interface.
At the moment the ld script has a single xip region for Flash memory and the reserved section for first sector (it is a hybrid sector I do not need now). Flash could begin 0x18000000 and PSRAM 0x1C000000.
But firstly, will it work at all?
I have PSRAM and Flash working in XIP modes in separate projects already, but not both at same time.
Regards,
Gintaras