Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 7512

General • PSRAM on RP2350A cannot be enabled

$
0
0
I added a APS6404L PSRAM to my Pico2-Board, but can't get it to work.
With the simple Code in direct SPI Mode

Code:

#define PSRAM_SIZE_BYTES (8 * 1024 * 1024)#define PSRAM_BASE_ADDRESS 0x11000000#define PSRAM_CS_PIN 7gpio_set_function(PSRAM_CS_PIN, GPIO_FUNC_XIP_CS1); // Set GPIO 7 as CS pinxip_ctrl_hw->ctrl |= XIP_CTRL_WRITABLE_M1_BITS; uint8_t* psram_buffer = (uint8_t*)PSRAM_BASE_ADDRESS;
Any write / read attempt to psram_buffer fails. There no activity on GPIO 7, it's all time low.

I tried the QSPI Mode with a copy of the code from here:
https://github.com/micropython/micropyt ... p2_psram.c
but have the same Chip Select issue, doesn't work too. I use Pico SDK 2.2.0.
Is there anything more to do as calling gpio_set_function(...) to enable CS1?

Statistics: Posted by holler — Fri Dec 12, 2025 1:27 pm



Viewing all articles
Browse latest Browse all 7512

Trending Articles