Skip to content

Commit 8e6ef4e

Browse files
authored
add nugget and nibble boards for 38c3 (#5609)
* add nugget and nibble boards for 38c3 * mark those boards extra for now
1 parent fb7866f commit 8e6ef4e

File tree

10 files changed

+160
-0
lines changed

10 files changed

+160
-0
lines changed

boards/esp32-s3-zero.json

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"build": {
3+
"arduino": {
4+
"partitions": "default.csv",
5+
"memory_type": "qio_qspi"
6+
},
7+
"core": "esp32",
8+
"extra_flags": [
9+
"-DARDUINO_ESP32S3_DEV",
10+
"-DARDUINO_RUNNING_CORE=1",
11+
"-DARDUINO_EVENT_RUNNING_CORE=1",
12+
"-DARDUINO_USB_CDC_ON_BOOT=1",
13+
"-DBOARD_HAS_PSRAM"
14+
],
15+
"f_cpu": "240000000L",
16+
"f_flash": "80000000L",
17+
"flash_mode": "qio",
18+
"psram_type": "qio",
19+
"hwids": [["0x303A", "0x1001"]],
20+
"mcu": "esp32s3",
21+
"variant": "esp32s3"
22+
},
23+
"connectivity": ["wifi", "bluetooth"],
24+
"debug": {
25+
"default_tool": "esp-builtin",
26+
"onboard_tools": ["esp-builtin"],
27+
"openocd_target": "esp32s3.cfg"
28+
},
29+
"frameworks": ["arduino", "espidf"],
30+
"platforms": ["espressif32"],
31+
"name": "Espressif ESP32-S3-FH4R2 (4 MB QD, 2MB PSRAM)",
32+
"upload": {
33+
"flash_size": "4MB",
34+
"maximum_ram_size": 327680,
35+
"maximum_size": 4194304,
36+
"require_upload_port": true,
37+
"speed": 921600
38+
},
39+
"url": "https://docs.espressif.com/projects/esp-idf/en/latest/esp32s3/hw-reference/esp32s3/user-guide-devkitc-1.html",
40+
"vendor": "Espressif"
41+
}

src/platform/rp2xx0/architecture.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,6 @@
3333
#define HW_VENDOR meshtastic_HardwareModel_RP2040_LORA
3434
#elif defined(RP2040_FEATHER_RFM95)
3535
#define HW_VENDOR meshtastic_HardwareModel_RP2040_FEATHER_RFM95
36+
#elif defined(PRIVATE_HW)
37+
#define HW_VENDOR meshtastic_HardwareModel_PRIVATE_HW
3638
#endif
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[env:nibble-esp32]
2+
extends = esp32s3_base
3+
board = esp32-s3-zero
4+
board_level = extra
5+
build_flags =
6+
${esp32_base.build_flags} -D PRIVATE_HW -I variants/nibble_esp32

variants/nibble_esp32/variant.h

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#define I2C_SDA 11 // I2C pins for this board
2+
#define I2C_SCL 10
3+
4+
#define LED_PIN 1 // If defined we will blink this LED
5+
6+
#define BUTTON_PIN 0 // If defined, this will be used for user button presses
7+
#define BUTTON_NEED_PULLUP
8+
9+
#define USE_RF95
10+
#define LORA_SCK 6
11+
#define LORA_MISO 7
12+
#define LORA_MOSI 8
13+
#define LORA_CS 9
14+
#define LORA_DIO0 5 // a No connect on the SX1262 module
15+
#define LORA_RESET 4
16+
17+
#define LORA_DIO1 RADIOLIB_NC
18+
#define LORA_DIO2 RADIOLIB_NC
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[env:nibble-rp2040]
2+
extends = rp2040_base
3+
board = rpipico
4+
board_level = extra
5+
upload_protocol = picotool
6+
7+
# add our variants files to the include and src paths
8+
build_flags = ${rp2040_base.build_flags}
9+
-DPRIVATE_HW
10+
-Ivariants/nibble_rp2040
11+
-DDEBUG_RP2040_PORT=Serial
12+
-DHW_SPI1_DEVICE
13+
-L "${platformio.libdeps_dir}/${this.__env__}/bsec2/src/cortex-m0plus"
14+
lib_deps =
15+
${rp2040_base.lib_deps}
16+
debug_build_flags = ${rp2040_base.build_flags}, -g
17+
debug_tool = cmsis-dap ; for e.g. Picotool

variants/nibble_rp2040/variant.h

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#define ARDUINO_ARCH_AVR
2+
3+
#define BUTTON_PIN -1 // Pin 17 used for antenna switching via DIO4
4+
5+
#define LED_PIN 1
6+
7+
#define HAS_CPU_SHUTDOWN 1
8+
9+
#define USE_RFM95
10+
#define LORA_SCK 10
11+
#define LORA_MISO 12
12+
#define LORA_MOSI 11
13+
#define LORA_CS 13
14+
15+
#define LORA_DIO0 14
16+
#define LORA_RESET 15
17+
#define LORA_DIO1 RADIOLIB_NC
18+
#define LORA_DIO2 RADIOLIB_NC
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[env:nugget-s2-lora]
2+
extends = esp32s2_base
3+
board = lolin_s2_mini
4+
board_level = extra
5+
build_flags =
6+
${esp32s2_base.build_flags} -D PRIVATE_HW -I variants/nugget_s2_lora

variants/nugget_s2_lora/variant.h

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#define I2C_SDA 34 // I2C pins for this board
2+
#define I2C_SCL 36
3+
4+
#define LED_PIN 15 // If defined we will blink this LED
5+
6+
#define HAS_NEOPIXEL // Enable the use of neopixels
7+
#define NEOPIXEL_COUNT 3 // How many neopixels are connected
8+
#define NEOPIXEL_DATA 12 // gpio pin used to send data to the neopixels
9+
#define NEOPIXEL_TYPE (NEO_GRB + NEO_KHZ800) // type of neopixels in use
10+
11+
#define BUTTON_PIN 0 // If defined, this will be used for user button presses
12+
#define BUTTON_NEED_PULLUP
13+
14+
#define USE_RF95
15+
#define LORA_SCK 6
16+
#define LORA_MISO 8
17+
#define LORA_MOSI 10
18+
#define LORA_CS 13
19+
#define LORA_DIO0 16
20+
#define LORA_RESET 5
21+
22+
#define LORA_DIO1 RADIOLIB_NC
23+
#define LORA_DIO2 RADIOLIB_NC
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[env:nugget-s3-lora]
2+
extends = esp32s3_base
3+
board = lolin_s3_mini
4+
board_level = extra
5+
build_flags =
6+
${esp32s3_base.build_flags} -D PRIVATE_HW -I variants/nugget_s3_lora

variants/nugget_s3_lora/variant.h

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#define I2C_SDA 34 // I2C pins for this board
2+
#define I2C_SCL 38
3+
4+
#define LED_PIN 15 // If defined we will blink this LED
5+
6+
#define HAS_NEOPIXEL // Enable the use of neopixels
7+
#define NEOPIXEL_COUNT 3 // How many neopixels are connected
8+
#define NEOPIXEL_DATA 10 // gpio pin used to send data to the neopixels
9+
#define NEOPIXEL_TYPE (NEO_GRB + NEO_KHZ800) // type of neopixels in use
10+
11+
#define BUTTON_PIN 0 // If defined, this will be used for user button presses
12+
#define BUTTON_NEED_PULLUP
13+
14+
#define USE_RF95
15+
#define LORA_SCK 6
16+
#define LORA_MISO 7
17+
#define LORA_MOSI 8
18+
#define LORA_CS 9
19+
#define LORA_DIO0 16 // a No connect on the SX1262 module
20+
#define LORA_RESET 4
21+
22+
#define LORA_DIO1 RADIOLIB_NC
23+
#define LORA_DIO2 RADIOLIB_NC

0 commit comments

Comments
 (0)