Skip to content

Commit 2d2164b

Browse files
Fix flash size.
Add warning on GP19 Remove GP17
1 parent aed2dfd commit 2d2164b

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

src/boards/include/boards/raspberry_pi_pi500_rp2040.h

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,40 +13,34 @@ pico_board_cmake_set(PICO_PLATFORM, rp2040)
1313
#define RASPBERRY_PI_PI500_RP2040
1414

1515
// --- FLASH ---
16-
// Pi 500 uses W25X10CL flash (differs from standard Pico W25Q080)
16+
// Pi 500 uses the same flash as the original Pi Pico (W25Q16JVUXIQ) but only DSPI pins are connected
1717
#define PICO_BOOT_STAGE2_CHOOSE_W25X10CL 1
1818

1919
#ifndef PICO_FLASH_SPI_CLKDIV
2020
#define PICO_FLASH_SPI_CLKDIV 2
2121
#endif
2222

23-
pico_board_cmake_set_default(PICO_FLASH_SIZE_BYTES, (128 * 1024))
23+
pico_board_cmake_set_default(PICO_FLASH_SIZE_BYTES, (2 * 1024 * 1024))
2424
#ifndef PICO_FLASH_SIZE_BYTES
25-
#define PICO_FLASH_SIZE_BYTES (128 * 1024)
25+
#define PICO_FLASH_SIZE_BYTES (2 * 1024 * 1024)
2626
#endif
2727

2828

29-
3029
#ifndef PICO_RP2040_B0_SUPPORTED
3130
#define PICO_RP2040_B0_SUPPORTED 0
3231
#endif
3332

34-
// --- PI 500 KEYBOARD LEDS ---
35-
// LEDs directly connected to RP2040 (not via FFC)
36-
#ifndef PICO_DEFAULT_LED_PIN
37-
#define PICO_DEFAULT_LED_PIN 17 // Power/Status LED
38-
#endif
39-
4033
// Keyboard indicator LEDs
4134
#define PI500_RP2040_CAPS_LOCK_LED_PIN 25
4235

4336
// --- PI 500 POWER MANAGEMENT ---
4437
// Power button control (critical for Pi 500 power management)
45-
#define PI500_RP2040_POWER_BUTTON_PIN 19
38+
#define PI500_RP2040_POWER_BUTTON_PIN 19 //DO NOT SCAN OR YOU WON'T BE ABLE TO TURN THE PI500 ON!
4639
// Power key detection (shared with matrix pins but scanned separately)
4740
#define PI500_RP2040_POWER_KEY_COL_PIN 20 // Also matrix col 11
4841
#define PI500_RP2040_POWER_KEY_ROW_PIN 6 // Also matrix row 6
4942

43+
5044
// --- KEYBOARD MATRIX PINS ---
5145
// Matrix row pins (8 pins)
5246
#define PI500_RP2040_MATRIX_ROW_0_PIN 0
@@ -60,7 +54,7 @@ pico_board_cmake_set_default(PICO_FLASH_SIZE_BYTES, (128 * 1024))
6054

6155
// Matrix column pins (18 pins)
6256
#define PI500_RP2040_MATRIX_COL_0_PIN 27
63-
#define PI500_RP2040_MATRIX_COL_1_PIN 8
57+
#define PI500_RP2040_MATRIX_COL_1_PIN 8
6458
#define PI500_RP2040_MATRIX_COL_2_PIN 9
6559
#define PI500_RP2040_MATRIX_COL_3_PIN 10
6660
#define PI500_RP2040_MATRIX_COL_4_PIN 11

0 commit comments

Comments
 (0)