Skip to content

Commit 0aafeac

Browse files
committed
Board specific flash sizes for RP2040
Stop-gap solution for #4041. Comment is there to provide info needed in the future. (We currently run the generic "safe" settings.)
1 parent b19e7c9 commit 0aafeac

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

ports/raspberrypi/boards/adafruit_feather_rp2040/mpconfigboard.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,6 @@
1212

1313
// #define DEFAULT_UART_BUS_RX (&pin_PA11)
1414
// #define DEFAULT_UART_BUS_TX (&pin_PA10)
15+
16+
// Flash chip is GD25Q32 connected over QSPI
17+
#define TOTAL_FLASH_SIZE 4 * 1024 * 1024

ports/raspberrypi/boards/qtpy_rp2040/mpconfigboard.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,6 @@
1212

1313
// #define DEFAULT_UART_BUS_RX (&pin_PA11)
1414
// #define DEFAULT_UART_BUS_TX (&pin_PA10)
15+
16+
// Flash chip is GD25Q32 connected over QSPI
17+
#define TOTAL_FLASH_SIZE 4 * 1024 * 1024

ports/raspberrypi/boards/raspberry_pi_pico/mpconfigboard.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,6 @@
1313

1414
// #define DEFAULT_UART_BUS_RX (&pin_PA11)
1515
// #define DEFAULT_UART_BUS_TX (&pin_PA10)
16+
17+
// Flash chip is W25Q16JVUXIQ connected over QSPI
18+
#define TOTAL_FLASH_SIZE 2 * 1024 * 1024

ports/raspberrypi/supervisor/internal_flash.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,6 @@
4646

4747
#define RESERVED_FLASH 1 * 1024 * 1024
4848

49-
// TODO: Parameterize flash size based on the configured flash.
50-
#define TOTAL_FLASH_SIZE 2 * 1024 * 1024
51-
5249
// TODO: Split the caching out of supervisor/shared/external_flash so we can use it.
5350
#define SECTOR_SIZE 4096
5451
#define NO_CACHE 0xffffffff

0 commit comments

Comments
 (0)