Skip to content

Commit 7485a18

Browse files
authored
install esptool via tl-install (#220)
1 parent ee47851 commit 7485a18

File tree

16 files changed

+344
-3
lines changed

16 files changed

+344
-3
lines changed

.github/workflows/examples.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ jobs:
2626
- "examples/espidf-arduino-matter-light"
2727
- "examples/espidf-arduino-blink"
2828
- "examples/espidf-arduino-littlefs"
29+
- "examples/espidf-arduino-C6-ULP-blink"
2930
- "examples/espidf-blink"
3031
- "examples/espidf-coap-server"
3132
- "examples/espidf-exceptions"
@@ -44,6 +45,8 @@ jobs:
4445
example: "examples/espidf-ulp-lp"
4546
- os: windows-latest
4647
example: "examples/espidf-ulp-riscv"
48+
- os: windows-latest
49+
example: "examples/espidf-arduino-C6-ULP-blink"
4750
- os: windows-latest
4851
example: "examples/espidf-arduino-matter-light"
4952
runs-on: ${{ matrix.os }}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Espressif Systems is a privately held, fabless semiconductor company renowned fo
2525
The Wiki is AI generated and insane detailed and accurate.
2626

2727
### Stable Arduino
28-
currently espressif Arduino 3.2.0 and IDF 5.4.1
28+
currently espressif Arduino 3.2.1 and IDF 5.4.2
2929

3030
```ini
3131
[env:stable]

boards/yb_esp32s3_drv.json

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
{
2+
"build": {
3+
"arduino":{
4+
"partitions": "default_8MB.csv",
5+
"memory_type": "qio_qspi"
6+
},
7+
"core": "esp32",
8+
"extra_flags": [
9+
"-DARDUINO_YB_ESP32S3_DRV",
10+
"-DARDUINO_USB_MODE=1",
11+
"-DARDUINO_USB_CDC_ON_BOOT=1",
12+
"-DARDUINO_RUNNING_CORE=1",
13+
"-DARDUINO_EVENT_RUNNING_CORE=1",
14+
"-DBOARD_HAS_PSRAM"
15+
],
16+
"f_cpu": "240000000L",
17+
"f_flash": "80000000L",
18+
"flash_mode": "qio",
19+
"hwids": [
20+
[
21+
"0x303A",
22+
"0x1001"
23+
]
24+
],
25+
"mcu": "esp32s3",
26+
"variant": "yb_esp32s3_drv"
27+
},
28+
"connectivity": [
29+
"wifi",
30+
"bluetooth"
31+
],
32+
"debug": {
33+
"openocd_target": "esp32s3.cfg"
34+
},
35+
"frameworks": [
36+
"arduino",
37+
"espidf"
38+
],
39+
"name": "YelloByte YB-ESP32-S3-DRV",
40+
"upload": {
41+
"flash_size": "8MB",
42+
"maximum_ram_size": 327680,
43+
"maximum_size": 8388608,
44+
"require_upload_port": true,
45+
"speed": 460800
46+
},
47+
"url": "https://github.com/yellobyte/YB-ESP32-S3-DRV",
48+
"vendor": "YelloByte"
49+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.pio
2+
.vscode
3+
.dependencies.lock
4+
sdkconfig.esp32c6
5+
managed_components
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
cmake_minimum_required(VERSION 3.16.0)
2+
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
3+
project(espidf-arduino-c6-ulp-blink)
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Arduino ULP Example for the ESP32-C6
2+
3+
This example shows how to run a C program on the ESP32-C6 ULP core with Arduino (as an component of ESP-IDF)
4+
5+
## Two programs run parallel
6+
7+
1. **Arduino on the High Power Core (HP Core):** The Arduino program blinks the onboard RGB
8+
2. **C Program on the Ultra-Low Power Core (ULP):** The ULP C program blinks an external LED connected to GPIO3
9+
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
2+
This directory is intended for project header files.
3+
4+
A header file is a file containing C declarations and macro definitions
5+
to be shared between several project source files. You request the use of a
6+
header file in your project source file (C, C++, etc) located in `src` folder
7+
by including it, with the C preprocessing directive `#include'.
8+
9+
```src/main.c
10+
11+
#include "header.h"
12+
13+
int main (void)
14+
{
15+
...
16+
}
17+
```
18+
19+
Including a header file produces the same results as copying the header file
20+
into each source file that needs it. Such copying would be time-consuming
21+
and error-prone. With a header file, the related declarations appear
22+
in only one place. If they need to be changed, they can be changed in one
23+
place, and programs that include the header file will automatically use the
24+
new version when next recompiled. The header file eliminates the labor of
25+
finding and changing all the copies as well as the risk that a failure to
26+
find one copy will result in inconsistencies within a program.
27+
28+
In C, the usual convention is to give header files names that end with `.h'.
29+
It is most portable to use only letters, digits, dashes, and underscores in
30+
header file names, and at most one dot.
31+
32+
Read more about using header files in official GCC documentation:
33+
34+
* Include Syntax
35+
* Include Operation
36+
* Once-Only Headers
37+
* Computed Includes
38+
39+
https://gcc.gnu.org/onlinedocs/cpp/Header-Files.html
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
2+
This directory is intended for project specific (private) libraries.
3+
PlatformIO will compile them to static libraries and link into executable file.
4+
5+
The source code of each library should be placed in a an own separate directory
6+
("lib/your_library_name/[here are source files]").
7+
8+
For example, see a structure of the following two libraries `Foo` and `Bar`:
9+
10+
|--lib
11+
| |
12+
| |--Bar
13+
| | |--docs
14+
| | |--examples
15+
| | |--src
16+
| | |- Bar.c
17+
| | |- Bar.h
18+
| | |- library.json (optional, custom build options, etc) https://docs.platformio.org/page/librarymanager/config.html
19+
| |
20+
| |--Foo
21+
| | |- Foo.c
22+
| | |- Foo.h
23+
| |
24+
| |- README --> THIS FILE
25+
|
26+
|- platformio.ini
27+
|--src
28+
|- main.c
29+
30+
and a contents of `src/main.c`:
31+
```
32+
#include <Foo.h>
33+
#include <Bar.h>
34+
35+
int main (void)
36+
{
37+
...
38+
}
39+
40+
```
41+
42+
PlatformIO Library Dependency Finder will find automatically dependent
43+
libraries scanning project source files.
44+
45+
More information about PlatformIO Library Dependency Finder
46+
- https://docs.platformio.org/page/librarymanager/ldf.html
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
; PlatformIO Project Configuration File
2+
;
3+
; Build options: build flags, source filter, extra scripting
4+
; Upload options: custom port, speed, and extra flags
5+
; Library options: dependencies, extra library storages
6+
;
7+
; Documentation: https://docs.platformio.org/page/projectconf.html
8+
9+
[env:esp32c6]
10+
platform = espressif32
11+
framework = arduino, espidf
12+
board = esp32-c6-devkitc-1
13+
monitor_speed = 115200
14+
lib_deps =
15+
Adafruit NeoPixel@1.12.3
16+
custom_component_remove =
17+
espressif/esp_hosted
18+
espressif/esp_wifi_remote
19+
espressif/esp-dsp
20+
espressif/esp32-camera
21+
espressif/libsodium
22+
espressif/esp-modbus
23+
espressif/qrcode
24+
espressif/esp_insights
25+
espressif/esp_diag_data_store
26+
espressif/esp_diagnostics
27+
espressif/esp_rainmaker
28+
espressif/rmaker_common
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# C6 devkit has 8 MB flash
2+
CONFIG_ESPTOOLPY_FLASHSIZE_8MB=y
3+
4+
# Enable ULP
5+
CONFIG_ULP_COPROC_ENABLED=y
6+
CONFIG_ULP_COPROC_TYPE_LP_CORE=y
7+
CONFIG_ULP_COPROC_RESERVE_MEM=8192
8+
9+
# Set log level
10+
CONFIG_BOOTLOADER_LOG_LEVEL_WARN=y
11+
CONFIG_BOOTLOADER_LOG_LEVEL=2
12+
CONFIG_LOG_DEFAULT_LEVEL_WARN=y
13+
CONFIG_LOG_DEFAULT_LEVEL=2
14+
15+
# Arduino settings
16+
CONFIG_AUTOSTART_ARDUINO=y
17+
CONFIG_FREERTOS_HZ=1000
18+
CONFIG_MBEDTLS_PSK_MODES=y
19+
CONFIG_MBEDTLS_KEY_EXCHANGE_PSK=y

0 commit comments

Comments
 (0)