We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a55e96 commit fd1a730Copy full SHA for fd1a730
ports/raspberrypi/supervisor/port.c
@@ -225,6 +225,9 @@ static void __no_inline_not_in_flash_func(setup_psram)(void) {
225
_psram_size *= 4;
226
}
227
228
+ // Mark that we can write to PSRAM.
229
+ xip_ctrl_hw->ctrl |= XIP_CTRL_WRITABLE_M1_BITS;
230
+
231
// Test write to the PSRAM.
232
volatile uint32_t *psram_nocache = (volatile uint32_t *)0x15000000;
233
psram_nocache[0] = 0x12345678;
@@ -233,9 +236,6 @@ static void __no_inline_not_in_flash_func(setup_psram)(void) {
236
_psram_size = 0;
234
237
return;
235
238
-
- // Mark that we can write to PSRAM.
- xip_ctrl_hw->ctrl |= XIP_CTRL_WRITABLE_M1_BITS;
239
240
241
void port_heap_init(void) {
0 commit comments