Skip to content

Commit 1a87357

Browse files
Use flash size menu for Olimex boards (#2866)
Remove duplicated boards with just different flash sizes. Use the flash size menu to select 2 or 16 MB units.
1 parent cc1af99 commit 1a87357

File tree

7 files changed

+264
-637
lines changed

7 files changed

+264
-637
lines changed

boards.txt

Lines changed: 256 additions & 571 deletions
Large diffs are not rendered by default.

package/package_pico_index.template.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -237,10 +237,7 @@
237237
"name": "nullbits Bit-C PRO"
238238
},
239239
{
240-
"name": "Olimex RP2040-Pico30 2MB"
241-
},
242-
{
243-
"name": "Olimex RP2040-Pico30 16MB"
240+
"name": "Olimex RP2040-Pico30"
244241
},
245242
{
246243
"name": "Pimoroni PGA2040"

tools/json/olimex_rp2040pico30_2mb.json renamed to tools/json/olimex_rp2040pico30.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
},
1010
"core": "earlephilhower",
1111
"cpu": "cortex-m0plus",
12-
"extra_flags": "-DARDUINO_OLIMEX_RP2040_PICO30_2MB -DARDUINO_ARCH_RP2040 -DUSBD_MAX_POWER_MA=250 ",
12+
"extra_flags": "-DARDUINO_OLIMEX_RP2040_PICO30 -DARDUINO_ARCH_RP2040 -DUSBD_MAX_POWER_MA=250 ",
1313
"f_cpu": "133000000L",
1414
"hwids": [
1515
[
@@ -22,7 +22,7 @@
2222
]
2323
],
2424
"mcu": "rp2040",
25-
"variant": "olimex_rp2040pico30_2mb"
25+
"variant": "olimex_rp2040pico30"
2626
},
2727
"debug": {
2828
"jlink_device": "RP2040_M0_0",
@@ -32,7 +32,7 @@
3232
"frameworks": [
3333
"arduino"
3434
],
35-
"name": "RP2040-Pico30 2MB",
35+
"name": "RP2040-Pico30",
3636
"upload": {
3737
"maximum_ram_size": 262144,
3838
"maximum_size": 2097152,

tools/json/olimex_rp2040pico30_16mb.json

Lines changed: 0 additions & 55 deletions
This file was deleted.

tools/makeboards.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,9 @@ def MakeBoard(name, chip, vendor_name, product_name, vid, pid, pwr, boarddefine,
340340
BuildFlashMenu(name, chip, 2*1024*1024, [0, 1*1024*1024])
341341
BuildFlashMenu(name, chip, 8*1024*1024, [0, 7*1024*1024, 4*1024*1024, 2*1024*1024])
342342
BuildFlashMenu(name, chip, 16*1024*1024, [0, 15*1024*1024, 14*1024*1024, 12*1024*1024, 8*1024*1024, 4*1024*1024, 2*1024*1024])
343+
elif name == "olimex_rp2040pico30":
344+
BuildFlashMenu(name, chip, 2*1024*1024, [0, 1*1024*1024])
345+
BuildFlashMenu(name, chip, 16*1024*1024, [0, 15*1024*1024, 14*1024*1024, 12*1024*1024, 8*1024*1024, 4*1024*1024, 2*1024*1024])
343346
elif (name == "challenger_2350_wifi6_ble5") or (name == "challenger_2040_wifi_ble"):
344347
BuildWifiType(name)
345348
BuildCountry(name)
@@ -615,8 +618,7 @@ def MakeBoardJSON(name, chip, vendor_name, product_name, vid, pid, pwr, boarddef
615618
MakeBoard("nullbits_bit_c_pro", "rp2040", "nullbits", "Bit-C PRO", "0x2e8a", "0x6e61", 500, "NULLBITS_BIT_C_PRO", 4, 0, "boot2_w25x10cl_4_padded_checksum")
616619

617620
# Olimex
618-
MakeBoard("olimex_rp2040pico30_2mb", "rp2040", "Olimex", "RP2040-Pico30 2MB", "0x15ba", "0x0026", 250, "OLIMEX_RP2040_PICO30_2MB", 2, 0, "boot2_w25q080_2_padded_checksum")
619-
MakeBoard("olimex_rp2040pico30_16mb", "rp2040", "Olimex", "RP2040-Pico30 16MB", "0x15ba", "0x0026", 250, "OLIMEX_RP2040_PICO30_16MB", 16, 0, "boot2_w25q080_2_padded_checksum")
621+
MakeBoard("olimex_rp2040pico30", "rp2040", "Olimex", "RP2040-Pico30", "0x15ba", "0x0026", 250, "OLIMEX_RP2040_PICO30", 2, 0, "boot2_w25q080_2_padded_checksum")
620622

621623
# Pimoroni
622624
MakeBoard("pimoroni_pga2040", "rp2040", "Pimoroni", "PGA2040", "0x2e8a", "0x1008", 250, "PIMORONI_PGA2040", 8, 0, "boot2_w25q64jv_4_padded_checksum")

variants/olimex_rp2040pico30_2mb/pins_arduino.h

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)