Skip to content

Commit 62ed93f

Browse files
Add board BridgeTek IDM2040-7A (#912)
1 parent e89ce78 commit 62ed93f

File tree

6 files changed

+702
-0
lines changed

6 files changed

+702
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ See https://arduino-pico.readthedocs.io/en/latest/ along with the examples for m
2020
* Adafruit STEMMA Friend RP2040
2121
* Adafruit Trinkey RP2040 QT
2222
* Arduino Nano RP2040 Connect
23+
* BridgeTek IDM2040-7A
2324
* Cytron Maker Pi RP2040
2425
* Cytron Maker Nano RP2040
2526
* Degz Mizu

boards.txt

Lines changed: 595 additions & 0 deletions
Large diffs are not rendered by default.

package/package_pico_index.template.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@
4747
{
4848
"name": "Arduino Nano RP2040 Connect"
4949
},
50+
{
51+
"name": "BridgeTek IDM2040-7A"
52+
},
5053
{
5154
"name": "Cytron Maker Nano RP2040"
5255
},
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
{
2+
"build": {
3+
"arduino": {
4+
"earlephilhower": {
5+
"boot2_source": "boot2_w25q080_2_padded_checksum.S",
6+
"usb_vid": "0x2E8A",
7+
"usb_pid": "0x1041"
8+
}
9+
},
10+
"core": "earlephilhower",
11+
"cpu": "cortex-m0plus",
12+
"extra_flags": "-D ARDUINO_BRIDGETEK_IDM2040-7A -DARDUINO_ARCH_RP2040 -DUSBD_MAX_POWER_MA=250 -DFT8XX_TYPE=BT817 -DDISPLAY_RES=WVGA -DPLATFORM_RP2040",
13+
"f_cpu": "133000000L",
14+
"hwids": [
15+
[
16+
"0x2E8A",
17+
"0x00C0"
18+
],
19+
[
20+
"0x2E8A",
21+
"0x1041"
22+
]
23+
],
24+
"mcu": "rp2040",
25+
"variant": "bridgetek_idm2040-7a"
26+
},
27+
"debug": {
28+
"jlink_device": "RP2040_M0_0",
29+
"openocd_target": "rp2040.cfg",
30+
"svd_path": "rp2040.svd"
31+
},
32+
"frameworks": [
33+
"arduino"
34+
],
35+
"name": "IDM2040-7A",
36+
"upload": {
37+
"maximum_ram_size": 270336,
38+
"maximum_size": 8388608,
39+
"require_upload_port": true,
40+
"native_usb": true,
41+
"use_1200bps_touch": true,
42+
"wait_for_upload_port": false,
43+
"protocol": "picotool",
44+
"protocols": [
45+
"cmsis-dap",
46+
"jlink",
47+
"raspberrypi-swd",
48+
"picotool",
49+
"picoprobe"
50+
]
51+
},
52+
"url": "https://www.raspberrypi.org/products/raspberry-pi-pico/",
53+
"vendor": "BridgeTek"
54+
}

tools/makeboards.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,9 @@ def MakeBoardJSON(name, vendor_name, product_name, vid, pid, pwr, boarddefine, f
319319
# Arduino
320320
MakeBoard("arduino_nano_connect", "Arduino", "Nano RP2040 Connect", "0x2341", "0x0058", 250, "NANO_RP2040_CONNECT", 16, "boot2_w25q080_2_padded_checksum")
321321

322+
# BridgeTek
323+
MakeBoard("bridgetek_idm2040-7a", "BridgeTek", "IDM2040-7A", "0x2e8a", "0x1041", 250, "BRIDGETEK_IDM2040-7A", 8, "boot2_w25q080_2_padded_checksum", ["FT8XX_TYPE=BT817", "DISPLAY_RES=WVGA", "PLATFORM_RP2040"])
324+
322325
# Cytron
323326
MakeBoard("cytron_maker_nano_rp2040", "Cytron", "Maker Nano RP2040", "0x2e8a", "0x100f", 250, "CYTRON_MAKER_NANO_RP2040", 2, "boot2_w25q080_2_padded_checksum")
324327
MakeBoard("cytron_maker_pi_rp2040", "Cytron", "Maker Pi RP2040", "0x2e8a", "0x1000", 250, "CYTRON_MAKER_PI_RP2040", 2, "boot2_w25q080_2_padded_checksum")
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
#pragma once
2+
3+
// Pin definitions taken from:
4+
// https://brtchip.com/ic-module/wp-content/uploads/sites/3/2022/07/DS_IDM2040-7A-Revised.pdf
5+
6+
7+
// LEDs
8+
#define PIN_LED (25u)
9+
10+
// Serial
11+
#define PIN_SERIAL1_TX (0u)
12+
#define PIN_SERIAL1_RX (1u)
13+
14+
#define PIN_SERIAL2_TX (8u)
15+
#define PIN_SERIAL2_RX (9u)
16+
17+
// SPI
18+
#define PIN_SPI0_MISO (4u)
19+
#define PIN_SPI0_MOSI (3u)
20+
#define PIN_SPI0_SCK (2u)
21+
#define PIN_SPI0_SS (5u)
22+
23+
#define PIN_SPI1_MISO (12u)
24+
#define PIN_SPI1_MOSI (11u)
25+
#define PIN_SPI1_SCK (10u)
26+
#define PIN_SPI1_SS (13u)
27+
28+
// default spi
29+
#define PIN_SD_MOSI PIN_SPI1_MOSI
30+
#define PIN_SD_MISO PIN_SPI1_MISO
31+
#define PIN_SD_SCK PIN_SPI1_SCK
32+
#define PIN_SD_SS PIN_SPI1_SS
33+
#define SDCARD_DETECT 33
34+
35+
// Wire
36+
#define PIN_WIRE0_SDA (4u)
37+
#define PIN_WIRE0_SCL (5u)
38+
39+
#define PIN_WIRE1_SDA (26u)
40+
#define PIN_WIRE1_SCL (27u)
41+
42+
#define SERIAL_HOWMANY (3u)
43+
#define SPI_HOWMANY (2u)
44+
#define WIRE_HOWMANY (2u)
45+
46+
#include "../generic/common.h"

0 commit comments

Comments
 (0)