From 5d2b60cbf69c99abd6984c298d4f052514221177 Mon Sep 17 00:00:00 2001 From: Scott Shawcroft Date: Thu, 4 Mar 2021 13:12:24 -0800 Subject: Redo RP2040 flash settings This switches stage2 to C and uses Jinja to change the C code based on flash settings from https://github.com/adafruit/nvm.toml. It produces the fastest settings for the given set of external flashes. Flash size is no longer hard coded so switching flashes with similar capabilities but different sizes should *just work*. This PR also places "ITCM" code in RAM to save the XIP cache for code execution. Further optimization is possible. A blink code.py still requires a number of flash fetches every blink. Fixes #4041 --- supervisor/shared/memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'supervisor/shared') diff --git a/supervisor/shared/memory.c b/supervisor/shared/memory.c index 83c9d6323..30482ea7b 100644 --- a/supervisor/shared/memory.c +++ b/supervisor/shared/memory.c @@ -36,7 +36,7 @@ enum { CIRCUITPY_SUPERVISOR_IMMOVABLE_ALLOC_COUNT = // stack + heap 2 - #ifdef EXTERNAL_FLASH_DEVICES + #if INTERNAL_FLASH_FILESYSTEM == 0 + 1 #endif #if CIRCUITPY_USB_MIDI -- cgit v1.2.3