Skip to content

add board definitions for unphone ESP32 and ESP32S3 devices #870

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Sep 26, 2022
40 changes: 40 additions & 0 deletions boards/unphone7.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"build": {
"arduino":{
"ldscript": "esp32_out.ld"
},
"core": "esp32",
"extra_flags": [
"-DUNPHONE_SPIN=7",
"-DARDUINO_FEATHER_ESP32"
],
"f_cpu": "240000000L",
"f_flash": "40000000L",
"flash_mode": "dio",
"mcu": "esp32",
"variant": "feather_esp32"
},
"connectivity": [
"wifi",
"bluetooth",
"ethernet",
"can"
],
"debug": {
"openocd_board": "esp-wroom-32.cfg"
},
"frameworks": [
"arduino",
"espidf"
],
"name": "unPhone 7",
"upload": {
"flash_size": "4MB",
"maximum_ram_size": 327680,
"maximum_size": 4194304,
"require_upload_port": true,
"speed": 460800
},
"url": "https://unphone.net/",
"vendor": "University of Sheffield"
}
44 changes: 44 additions & 0 deletions boards/unphone8.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"build": {
"arduino":{
"ldscript": "esp32s3_out.ld",
"partitions": "default_8MB.csv"
},
"core": "esp32",
"extra_flags": [
"-DBOARD_HAS_PSRAM",
"-DUNPHONE_SPIN=8",
"-DARDUINO_USB_MODE=1",
"-DARDUINO_USB_CDC_ON_BOOT=0",
"-DARDUINO_RUNNING_CORE=1",
"-DARDUINO_EVENT_RUNNING_CORE=1"
],
"f_cpu": "240000000L",
"f_flash": "80000000L",
"flash_mode": "qio",
"mcu": "esp32s3",
"variant": "unphone8"
},
"connectivity": [
"wifi"
],
"debug": {
"openocd_board": "esp32s3.cfg"
},
"frameworks": [
"arduino",
"espidf"
],
"name": "unPhone 8",
"upload": {
"flash_size": "8MB",
"maximum_ram_size": 2424832,
"maximum_size": 8323072,
"use_1200bps_touch": true,
"wait_for_upload_port": true,
"require_upload_port": true,
"speed": 460800
},
"url": "https://unphone.net/",
"vendor": "University of Sheffield"
}
50 changes: 50 additions & 0 deletions boards/unphone9.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"build": {
"arduino":{
"ldscript": "esp32s3_out.ld",
"partitions": "default_8MB.csv"
},
"core": "esp32",
"extra_flags": [
"-DBOARD_HAS_PSRAM",
"-DUNPHONE_SPIN=9",
"-DARDUINO_USB_MODE=1",
"-DARDUINO_USB_CDC_ON_BOOT=1",
"-DARDUINO_RUNNING_CORE=1",
"-DARDUINO_EVENT_RUNNING_CORE=1"
],
"f_cpu": "240000000L",
"f_flash": "80000000L",
"flash_mode": "qio",
"hwids": [
[
"0x16D0",
"0x1178"
]
],
"mcu": "esp32s3",
"variant": "unphone9"
},
"connectivity": [
"wifi"
],
"debug": {
"openocd_board": "esp32s3.cfg"
},
"frameworks": [
"arduino",
"espidf"
],
"name": "unPhone 9",
"upload": {
"flash_size": "8MB",
"maximum_ram_size": 8716288,
"maximum_size": 8323072,
"use_1200bps_touch": true,
"wait_for_upload_port": true,
"require_upload_port": true,
"speed": 460800
},
"url": "https://unphone.net/",
"vendor": "University of Sheffield"
}