Skip to content

Commit 6960eb8

Browse files
committed
[MCVE] Update to latest SDK for ESP8266/ESP32-xx
Fix actually using the latest Arduino code
1 parent 983a70a commit 6960eb8

File tree

5 files changed

+457
-65
lines changed

5 files changed

+457
-65
lines changed

boards/esp32_4M.json

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"build": {
3+
"arduino":{
4+
"ldscript": "esp32_out.ld",
5+
"memory_type": "dio_qspi"
6+
},
7+
"core": "esp32",
8+
"extra_flags": "-DARDUINO_ESP32_DEV -DBOARD_HAS_PSRAM -DARDUINO_USB_CDC_ON_BOOT=0 -DESP32_4M -DESP32_CLASSIC",
9+
"f_cpu": "240000000L",
10+
"f_flash": "40000000L",
11+
"flash_mode": "dio",
12+
"mcu": "esp32",
13+
"variant": "esp32",
14+
"partitions": "boards/partitions/esp32_partition_app1810k_spiffs316k.csv"
15+
},
16+
"connectivity": [
17+
"wifi",
18+
"bluetooth",
19+
"ethernet",
20+
"can"
21+
],
22+
"debug": {
23+
"openocd_target": "esp32.cfg"
24+
},
25+
"frameworks": [
26+
"arduino",
27+
"espidf"
28+
],
29+
"name": "Espressif Generic ESP32 4M Flash ESPEasy 1810k Code/OTA 316k FS",
30+
"upload": {
31+
"flash_size": "4MB",
32+
"maximum_ram_size": 327680,
33+
"maximum_size": 1900544,
34+
"require_upload_port": true,
35+
"resetmethod": "nodemcu",
36+
"before_reset": "default_reset",
37+
"after_reset": "hard_reset",
38+
"speed": 460800
39+
},
40+
"url": "https://en.wikipedia.org/wiki/ESP32",
41+
"vendor": "Espressif"
42+
}

boards/esp32s2cdc.json

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"build": {
3+
"arduino":{
4+
"ldscript": "esp32s2_out.ld",
5+
"memory_type": "dio_qspi"
6+
},
7+
"core": "esp32",
8+
"extra_flags": "-DBOARD_HAS_PSRAM -DESP32_4M -DESP32S2 -DCONFIG_IDF_TARGET_ESP32S2=1 -DUSE_USB_CDC_CONSOLE -DARDUINO_USB_CDC_ON_BOOT=1",
9+
"f_cpu": "240000000L",
10+
"f_flash": "80000000L",
11+
"flash_mode": "dio",
12+
"mcu": "esp32s2",
13+
"variant": "esp32s2",
14+
"partitions": "boards/partitions/esp32_partition_app1810k_spiffs316k.csv"
15+
},
16+
"connectivity": [
17+
"wifi"
18+
],
19+
"debug": {
20+
"openocd_target": "esp32s2.cfg"
21+
},
22+
"frameworks": [
23+
"espidf",
24+
"arduino"
25+
],
26+
"name": "Espressif Generic ESP32-S2 USB CDC 4M Flash ESPEasy 1810k Code/OTA 316k FS",
27+
"upload": {
28+
"flash_size": "4MB",
29+
"maximum_ram_size": 327680,
30+
"maximum_size": 4194304,
31+
"before_reset": "usb_reset",
32+
"after_reset": "hard_reset",
33+
"use_1200bps_touch": true,
34+
"wait_for_upload_port": true,
35+
"require_upload_port": true,
36+
"speed": 460800
37+
},
38+
"url": "https://docs.espressif.com/projects/esp-idf/en/latest/esp32s2/hw-reference/esp32s2/user-guide-saola-1-v1.2.html",
39+
"vendor": "Espressif"
40+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Name, Type, SubType, Offset, Size, Flags
2+
nvs, data, nvs, 0x9000, 0x5000,
3+
otadata, data, ota, 0xe000, 0x2000,
4+
app0, app, ota_0, 0x10000, 0x1D0000,
5+
app1, app, ota_1, 0x1E0000,0x1D0000,
6+
eeprom, data, 0x99, 0x3B0000,0x1000,
7+
spiffs, data, spiffs, 0x3B1000,0x4F000,

0 commit comments

Comments
 (0)