Skip to content

Commit 752d771

Browse files
Add board definitions for unphone ESP32 and ESP32S3 devices (platformio#870)
1 parent 36445b2 commit 752d771

File tree

3 files changed

+134
-0
lines changed

3 files changed

+134
-0
lines changed

boards/unphone7.json

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"build": {
3+
"arduino":{
4+
"ldscript": "esp32_out.ld"
5+
},
6+
"core": "esp32",
7+
"extra_flags": [
8+
"-DUNPHONE_SPIN=7",
9+
"-DARDUINO_FEATHER_ESP32"
10+
],
11+
"f_cpu": "240000000L",
12+
"f_flash": "40000000L",
13+
"flash_mode": "dio",
14+
"mcu": "esp32",
15+
"variant": "feather_esp32"
16+
},
17+
"connectivity": [
18+
"wifi",
19+
"bluetooth",
20+
"ethernet",
21+
"can"
22+
],
23+
"debug": {
24+
"openocd_board": "esp-wroom-32.cfg"
25+
},
26+
"frameworks": [
27+
"arduino",
28+
"espidf"
29+
],
30+
"name": "unPhone 7",
31+
"upload": {
32+
"flash_size": "4MB",
33+
"maximum_ram_size": 327680,
34+
"maximum_size": 4194304,
35+
"require_upload_port": true,
36+
"speed": 460800
37+
},
38+
"url": "https://unphone.net/",
39+
"vendor": "University of Sheffield"
40+
}

boards/unphone8.json

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"build": {
3+
"arduino":{
4+
"ldscript": "esp32s3_out.ld",
5+
"partitions": "default_8MB.csv"
6+
},
7+
"core": "esp32",
8+
"extra_flags": [
9+
"-DBOARD_HAS_PSRAM",
10+
"-DUNPHONE_SPIN=8",
11+
"-DARDUINO_USB_MODE=1",
12+
"-DARDUINO_USB_CDC_ON_BOOT=0",
13+
"-DARDUINO_RUNNING_CORE=1",
14+
"-DARDUINO_EVENT_RUNNING_CORE=1"
15+
],
16+
"f_cpu": "240000000L",
17+
"f_flash": "80000000L",
18+
"flash_mode": "qio",
19+
"mcu": "esp32s3",
20+
"variant": "unphone8"
21+
},
22+
"connectivity": [
23+
"wifi"
24+
],
25+
"debug": {
26+
"openocd_board": "esp32s3.cfg"
27+
},
28+
"frameworks": [
29+
"arduino",
30+
"espidf"
31+
],
32+
"name": "unPhone 8",
33+
"upload": {
34+
"flash_size": "8MB",
35+
"maximum_ram_size": 2424832,
36+
"maximum_size": 8323072,
37+
"use_1200bps_touch": true,
38+
"wait_for_upload_port": true,
39+
"require_upload_port": true,
40+
"speed": 460800
41+
},
42+
"url": "https://unphone.net/",
43+
"vendor": "University of Sheffield"
44+
}

boards/unphone9.json

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
{
2+
"build": {
3+
"arduino":{
4+
"ldscript": "esp32s3_out.ld",
5+
"partitions": "default_8MB.csv"
6+
},
7+
"core": "esp32",
8+
"extra_flags": [
9+
"-DBOARD_HAS_PSRAM",
10+
"-DUNPHONE_SPIN=9",
11+
"-DARDUINO_USB_MODE=1",
12+
"-DARDUINO_USB_CDC_ON_BOOT=1",
13+
"-DARDUINO_RUNNING_CORE=1",
14+
"-DARDUINO_EVENT_RUNNING_CORE=1"
15+
],
16+
"f_cpu": "240000000L",
17+
"f_flash": "80000000L",
18+
"flash_mode": "qio",
19+
"hwids": [
20+
[
21+
"0x16D0",
22+
"0x1178"
23+
]
24+
],
25+
"mcu": "esp32s3",
26+
"variant": "unphone9"
27+
},
28+
"connectivity": [
29+
"wifi"
30+
],
31+
"debug": {
32+
"openocd_board": "esp32s3.cfg"
33+
},
34+
"frameworks": [
35+
"arduino",
36+
"espidf"
37+
],
38+
"name": "unPhone 9",
39+
"upload": {
40+
"flash_size": "8MB",
41+
"maximum_ram_size": 8716288,
42+
"maximum_size": 8323072,
43+
"use_1200bps_touch": true,
44+
"wait_for_upload_port": true,
45+
"require_upload_port": true,
46+
"speed": 460800
47+
},
48+
"url": "https://unphone.net/",
49+
"vendor": "University of Sheffield"
50+
}

0 commit comments

Comments
 (0)