Skip to content

Commit e4ac072

Browse files
authored
Arduino 3.1.x based on IDF 5.3.x (#74)
* IDF 5.3 support * IDF 5.3 * IDF 5.3 toolchains remove dynamic toolchains support, currently only older incompatible are possible to fetch. * Fix owner of * ULP compability for IDF 5.3 * remove debug print * Fix bootloader offset code retrieve * Update esp32-c6-devkitc-1.json * use espressif Arduino branch `release/v3.1.x` * Update README.md * Update README.md * Fix compile issue with managed components * use latest Arduino 3.1.0 libs * fetch Arduino libs dl URL from manifest json * fetch Arduino libs dl URL from manifest json * Update README.md * Fix IDF 5.3 ULP compile * Use espressif Arduino branch release/v3.1.x * Update platform.py * better handling of complex Macros from cmake model * IDF 5.3.1 release * fix handling of cc fragments * unchanged IDF 5.3.1 * ULP has now a cmake build script * add arduino/idf examples * fix used platform * prepare LP ULP support * enable bootloader components build * ULP LP support * add missing P4 * add P4 * change some if checks * Update README.md * remove wrong left over code * add ULP LP example / update Matter example * fix path * add zigbee examples * disable zigbee examples needs merge of the open zigbee Arduino PR * esptool.py v4.8.0 * add cmake_utilities for C2 * add auto select "espidf" when pio var "custom_sdkconfig" is set * IDF v5.3.1.240924 * Update main.py * matter example currently broken * Update platformio.ini * Update platformio.ini * Update platformio.ini * Update platformio.ini * Update examples.yml * IDF v5.3.1.241016 * Update Zigbee_On_Off_Light.ino * Update Zigbee_On_Off_Switch.ino * Update examples.yml * Update platformio.ini * Update platformio.ini * Update examples.yml * esptool.py v4.8.1.1 s2 s3 usb jtag reset fix * Update platform.py * Update gdb 14.2.0+20240403 * fix owner for gdb * Update IDF v5.3.1.241024 * Update adafruit_matrixportal_esp32s3.json * Use compatible h2zero NimBLE git commit * Update Zigbee_On_Off_Light.ino * Update Zigbee_On_Off_Switch.ino * fix custom partiton table offset calculation * Update README.md * Create esp32-p4.json * add P4 to blink example * Update Zigbee_On_Off_Switch.ino * Update Zigbee_On_Off_Light.ino * Update sdkconfig.defaults * add P4 to LP example * Create esp32-p4-evboard.json * IDF 5.3.2 release * prep for "pioarduino-build.py" script * add missing import os * fix not defined var * Update Zigbee_On_Off_Switch.ino * esptool.py v4.8.5 * Update Zigbee_On_Off_Light.ino * add Hybrid Compile (#73) * Update README.md * set Arduino compile option `UPDATE_NOCRYPT` in example Tasmota * Update C2 Hybrid compile skeleton * Update IDF v5.3.2.241210 * Revert to IDF 5.3.2 * Update pioarduino IDF 5.2 * Update release_zips.yml
1 parent a7fb6cd commit e4ac072

24 files changed

+597
-19
lines changed

boards/adafruit_matrixportal_esp32s3.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"build": {
33
"arduino":{
4-
"ldscript": "esp32s3_out.ld",
5-
"partitions": "partitions-8MB-tinyuf2.csv"
4+
"partitions": "tinyuf2-partitions-8MB.csv",
5+
"memory_type": "qio_qspi"
66
},
77
"core": "esp32",
88
"extra_flags": [

boards/esp32-p4-evboard.json

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"build": {
3+
"core": "esp32",
4+
"extra_flags": [
5+
"-DBOARD_HAS_PSRAM"
6+
],
7+
"f_cpu": "360000000L",
8+
"f_flash": "80000000L",
9+
"flash_mode": "qio",
10+
"mcu": "esp32p4",
11+
"variant": "esp32p4"
12+
},
13+
"arduino": {
14+
"partitions": "default_16MB.csv"
15+
},
16+
"connectivity": [
17+
"bluetooth",
18+
"openthread"
19+
],
20+
"debug": {
21+
"openocd_target": "esp32p4.cfg"
22+
},
23+
"frameworks": [
24+
"arduino",
25+
"espidf"
26+
],
27+
"name": "Espressif ESP32-P4 Function EV Board",
28+
"upload": {
29+
"flash_size": "16MB",
30+
"maximum_ram_size": 512000,
31+
"maximum_size": 16777216,
32+
"require_upload_port": true,
33+
"speed": 1500000
34+
},
35+
"url": "https://docs.espressif.com/projects/esp-dev-kits/en/latest/esp32p4/esp32-p4-function-ev-board/index.html",
36+
"vendor": "Espressif"
37+
}

boards/esp32-p4.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"build": {
3+
"core": "esp32",
4+
"extra_flags": [
5+
"-DBOARD_HAS_PSRAM"
6+
],
7+
"f_cpu": "360000000L",
8+
"f_flash": "80000000L",
9+
"flash_mode": "qio",
10+
"mcu": "esp32p4",
11+
"variant": "esp32p4"
12+
},
13+
"connectivity": [
14+
"bluetooth",
15+
"openthread"
16+
],
17+
"debug": {
18+
"openocd_target": "esp32p4.cfg"
19+
},
20+
"frameworks": [
21+
"arduino",
22+
"espidf"
23+
],
24+
"name": "Espressif ESP32-P4 generic",
25+
"upload": {
26+
"flash_size": "4MB",
27+
"maximum_ram_size": 327680,
28+
"maximum_size": 4194304,
29+
"require_upload_port": true,
30+
"speed": 460800
31+
},
32+
"url": "https://docs.espressif.com",
33+
"vendor": "Espressif"
34+
}

boards/esp32-solo1.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"build": {
33
"core": "esp32",
44
"extra_flags": "-DARDUINO_ESP32_DEV -DARDUINO_USB_CDC_ON_BOOT=0 -DCORE32SOLO1",
5-
"f_cpu": "80000000L",
5+
"f_cpu": "160000000L",
66
"f_flash": "40000000L",
77
"flash_mode": "dio",
88
"mcu": "esp32",
@@ -29,6 +29,11 @@
2929
"require_upload_port": true,
3030
"speed": 460800
3131
},
32+
"espidf": {
33+
"custom_sdkconfig": [
34+
"CONFIG_FREERTOS_UNICORE=y"
35+
]
36+
},
3237
"url": "https://en.wikipedia.org/wiki/ESP32",
3338
"vendor": "Espressif"
3439
}
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
{
2+
"build": {
3+
"arduino": {
4+
"memory_type": "qio_opi",
5+
"partitions": "default_16MB.csv"
6+
},
7+
"core": "esp32",
8+
"f_cpu": "240000000L",
9+
"f_flash": "80000000L",
10+
"f_boot": "120000000L",
11+
"boot": "qio",
12+
"flash_mode": "qio",
13+
"extra_flags": [
14+
"-DBOARD_HAS_PSRAM",
15+
"-DARDUINO_USB_MODE=1",
16+
"-DARDUINO_USB_CDC_ON_BOOT=1",
17+
"-DARDUINO_RUNNING_CORE=1",
18+
"-DARDUINO_EVENT_RUNNING_CORE=1"
19+
],
20+
"hwids": [
21+
[
22+
"0x303A",
23+
"0x1001"
24+
]
25+
],
26+
"mcu": "esp32s3",
27+
"variant": "esp32s3"
28+
},
29+
"connectivity": [
30+
"bluetooth",
31+
"wifi"
32+
],
33+
"debug": {
34+
"openocd_target": "esp32s3.cfg"
35+
},
36+
"frameworks": [
37+
"arduino",
38+
"espidf"
39+
],
40+
"name": "ESP32-S3 16MB QIO, 8MB OPI PSRAM",
41+
"upload": {
42+
"flash_size": "16MB",
43+
"maximum_ram_size": 327680,
44+
"maximum_size": 16777216,
45+
"require_upload_port": true,
46+
"speed": 460800
47+
},
48+
"url": "https://www.espressif.com/sites/default/files/documentation/esp32-s3-wroom-1_wroom-1u_datasheet_en.pdf",
49+
"vendor": "espressif"
50+
}

builder/build_lib/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
idf_component_register(SRCS "sketch.cpp" "arduino-lib-builder-gcc.c" "arduino-lib-builder-cpp.cpp" "arduino-lib-builder-as.S" INCLUDE_DIRS ".")

builder/build_lib/arduino-lib-builder-as.S

Whitespace-only changes.

builder/build_lib/arduino-lib-builder-cpp.cpp

Whitespace-only changes.

builder/build_lib/arduino-lib-builder-gcc.c

Whitespace-only changes.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
dependencies:
2+
# Required IDF version
3+
idf: ">=5.1"
4+
espressif/cmake_utilities:
5+
version: "0.*"
6+
espressif/fb_gfx:
7+
version: "master"
8+
path: components/fb_gfx
9+
git: https://github.com/espressif/esp32-arduino-lib-builder.git
10+
require: public
11+
rules:
12+
- if: "target in [esp32, esp32s2, esp32s3, esp32p4]"

0 commit comments

Comments
 (0)