Skip to content

Commit e5a0eaf

Browse files
authored
Merge branch 'master' into new_openthread_example
2 parents 40ae94f + 532d5f2 commit e5a0eaf

File tree

44 files changed

+260
-18
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+260
-18
lines changed

.github/scripts/sketch_utils.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,10 +416,17 @@ function build_sketches(){ # build_sketches <ide_path> <user_path> <target> <pat
416416
echo "Start Sketch: $start_num"
417417
echo "End Sketch : $end_index"
418418

419+
#if fqbn is not passed then set it to default for compilation log
420+
if [ -z $fqbn ]; then
421+
log_fqbn="espressif:esp32:$target"
422+
else
423+
log_fqbn=$fqbn
424+
fi
425+
419426
sizes_file="$GITHUB_WORKSPACE/cli_compile_$chunk_index.json"
420427
if [ $log_compilation ]; then
421428
#echo board,target and start of sketches to sizes_file json
422-
echo "{ \"board\": \"$fqbn\",
429+
echo "{ \"board\": \"$log_fqbn\",
423430
\"target\": \"$target\",
424431
\"sketches\": [" >> "$sizes_file"
425432
fi

boards.txt

Lines changed: 154 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3732,6 +3732,160 @@ um_nanos3.menu.EraseFlash.all.upload.erase_cmd=-e
37323732

37333733
##############################################################
37343734

3735+
um_omgs3.name=UM OMGS3
3736+
um_omgs3.vid.0=0x303a
3737+
um_omgs3.pid.0=0x8224
3738+
um_omgs3.upload_port.0.vid=0x303a
3739+
um_omgs3.upload_port.0.pid=0x8224
3740+
3741+
um_omgs3.bootloader.tool=esptool_py
3742+
um_omgs3.bootloader.tool.default=esptool_py
3743+
3744+
um_omgs3.upload.tool=esptool_py
3745+
um_omgs3.upload.tool.default=esptool_py
3746+
um_omgs3.upload.tool.network=esp_ota
3747+
3748+
um_omgs3.upload.maximum_size=1310720
3749+
um_omgs3.upload.maximum_data_size=327680
3750+
um_omgs3.upload.flags=
3751+
um_omgs3.upload.extra_flags=
3752+
um_omgs3.upload.use_1200bps_touch=false
3753+
um_omgs3.upload.wait_for_upload_port=false
3754+
3755+
um_omgs3.serial.disableDTR=false
3756+
um_omgs3.serial.disableRTS=false
3757+
3758+
um_omgs3.build.tarch=xtensa
3759+
um_omgs3.build.bootloader_addr=0x0
3760+
um_omgs3.build.target=esp32s3
3761+
um_omgs3.build.mcu=esp32s3
3762+
um_omgs3.build.core=esp32
3763+
um_omgs3.build.variant=um_omgs3
3764+
um_omgs3.build.board=OMGS3
3765+
3766+
um_omgs3.build.usb_mode=1
3767+
um_omgs3.build.cdc_on_boot=1
3768+
um_omgs3.build.msc_on_boot=0
3769+
um_omgs3.build.dfu_on_boot=0
3770+
um_omgs3.build.f_cpu=240000000L
3771+
um_omgs3.build.flash_size=8MB
3772+
um_omgs3.build.flash_freq=80m
3773+
um_omgs3.build.flash_mode=dio
3774+
um_omgs3.build.boot=qio
3775+
um_omgs3.build.partitions=default
3776+
um_omgs3.build.defines=
3777+
um_omgs3.build.loop_core=
3778+
um_omgs3.build.event_core=
3779+
um_omgs3.build.flash_type=qio
3780+
um_omgs3.build.psram_type=qspi
3781+
um_omgs3.build.memory_type=qio_qspi
3782+
3783+
um_omgs3.menu.LoopCore.1=Core 1
3784+
um_omgs3.menu.LoopCore.1.build.loop_core=-DARDUINO_RUNNING_CORE=1
3785+
um_omgs3.menu.LoopCore.0=Core 0
3786+
um_omgs3.menu.LoopCore.0.build.loop_core=-DARDUINO_RUNNING_CORE=0
3787+
3788+
um_omgs3.menu.EventsCore.1=Core 1
3789+
um_omgs3.menu.EventsCore.1.build.event_core=-DARDUINO_EVENT_RUNNING_CORE=1
3790+
um_omgs3.menu.EventsCore.0=Core 0
3791+
um_omgs3.menu.EventsCore.0.build.event_core=-DARDUINO_EVENT_RUNNING_CORE=0
3792+
3793+
um_omgs3.menu.USBMode.hwcdc=Hardware CDC and JTAG
3794+
um_omgs3.menu.USBMode.hwcdc.build.usb_mode=1
3795+
um_omgs3.menu.USBMode.default=USB-OTG (TinyUSB)
3796+
um_omgs3.menu.USBMode.default.build.usb_mode=0
3797+
3798+
um_omgs3.menu.CDCOnBoot.cdc=Enabled
3799+
um_omgs3.menu.CDCOnBoot.cdc.build.cdc_on_boot=1
3800+
um_omgs3.menu.CDCOnBoot.default=Disabled
3801+
um_omgs3.menu.CDCOnBoot.default.build.cdc_on_boot=0
3802+
3803+
um_omgs3.menu.MSCOnBoot.default=Disabled
3804+
um_omgs3.menu.MSCOnBoot.default.build.msc_on_boot=0
3805+
um_omgs3.menu.MSCOnBoot.msc=Enabled (Requires USB-OTG Mode)
3806+
um_omgs3.menu.MSCOnBoot.msc.build.msc_on_boot=1
3807+
3808+
um_omgs3.menu.DFUOnBoot.default=Disabled
3809+
um_omgs3.menu.DFUOnBoot.default.build.dfu_on_boot=0
3810+
um_omgs3.menu.DFUOnBoot.dfu=Enabled (Requires USB-OTG Mode)
3811+
um_omgs3.menu.DFUOnBoot.dfu.build.dfu_on_boot=1
3812+
3813+
um_omgs3.menu.UploadMode.cdc.upload.wait_for_upload_port=true
3814+
um_omgs3.menu.UploadMode.default=UART0 / Hardware CDC
3815+
um_omgs3.menu.UploadMode.cdc=USB-OTG CDC (TinyUSB)
3816+
um_omgs3.menu.UploadMode.cdc.upload.use_1200bps_touch=true
3817+
um_omgs3.menu.UploadMode.default.upload.use_1200bps_touch=false
3818+
um_omgs3.menu.UploadMode.default.upload.wait_for_upload_port=false
3819+
3820+
um_omgs3.menu.PSRAM.enabled=Enabled
3821+
um_omgs3.menu.PSRAM.enabled.build.defines=-DBOARD_HAS_PSRAM
3822+
um_omgs3.menu.PSRAM.disabled=Disabled
3823+
um_omgs3.menu.PSRAM.disabled.build.defines=
3824+
3825+
um_omgs3.menu.PartitionScheme.default_8MB=Default (3MB APP/1.5MB SPIFFS)
3826+
um_omgs3.menu.PartitionScheme.default_8MB.build.partitions=default_8MB
3827+
um_omgs3.menu.PartitionScheme.default_8MB.upload.maximum_size=3342336
3828+
um_omgs3.menu.PartitionScheme.tinyuf2=TinyUF2 Compatibility (2MB APP/3.7MB FFAT)
3829+
um_omgs3.menu.PartitionScheme.tinyuf2.build.custom_bootloader=bootloader_tinyuf2
3830+
um_omgs3.menu.PartitionScheme.tinyuf2.build.custom_partitions=partitions_tinyuf2
3831+
um_omgs3.menu.PartitionScheme.tinyuf2.upload.extra_flags=0x410000 "{runtime.platform.path}/variants/{build.variant}/tinyuf2.bin"
3832+
um_omgs3.menu.PartitionScheme.tinyuf2.upload.maximum_size=2097152
3833+
3834+
um_omgs3.menu.CPUFreq.240=240MHz (WiFi)
3835+
um_omgs3.menu.CPUFreq.240.build.f_cpu=240000000L
3836+
um_omgs3.menu.CPUFreq.160=160MHz (WiFi)
3837+
um_omgs3.menu.CPUFreq.160.build.f_cpu=160000000L
3838+
um_omgs3.menu.CPUFreq.80=80MHz (WiFi)
3839+
um_omgs3.menu.CPUFreq.80.build.f_cpu=80000000L
3840+
um_omgs3.menu.CPUFreq.40=40MHz
3841+
um_omgs3.menu.CPUFreq.40.build.f_cpu=40000000L
3842+
um_omgs3.menu.CPUFreq.20=20MHz
3843+
um_omgs3.menu.CPUFreq.20.build.f_cpu=20000000L
3844+
um_omgs3.menu.CPUFreq.10=10MHz
3845+
um_omgs3.menu.CPUFreq.10.build.f_cpu=10000000L
3846+
3847+
um_omgs3.menu.FlashMode.qio=QIO
3848+
um_omgs3.menu.FlashMode.qio.build.flash_mode=dio
3849+
um_omgs3.menu.FlashMode.qio.build.boot=qio
3850+
um_omgs3.menu.FlashMode.dio=DIO
3851+
um_omgs3.menu.FlashMode.dio.build.flash_mode=dio
3852+
um_omgs3.menu.FlashMode.dio.build.boot=dio
3853+
3854+
um_omgs3.menu.UploadSpeed.921600=921600
3855+
um_omgs3.menu.UploadSpeed.921600.upload.speed=921600
3856+
um_omgs3.menu.UploadSpeed.115200=115200
3857+
um_omgs3.menu.UploadSpeed.115200.upload.speed=115200
3858+
um_omgs3.menu.UploadSpeed.256000.windows=256000
3859+
um_omgs3.menu.UploadSpeed.256000.upload.speed=256000
3860+
um_omgs3.menu.UploadSpeed.230400.windows.upload.speed=256000
3861+
um_omgs3.menu.UploadSpeed.230400=230400
3862+
um_omgs3.menu.UploadSpeed.230400.upload.speed=230400
3863+
um_omgs3.menu.UploadSpeed.460800.linux=460800
3864+
um_omgs3.menu.UploadSpeed.460800.macosx=460800
3865+
um_omgs3.menu.UploadSpeed.460800.upload.speed=460800
3866+
um_omgs3.menu.UploadSpeed.512000.windows=512000
3867+
um_omgs3.menu.UploadSpeed.512000.upload.speed=512000
3868+
3869+
um_omgs3.menu.DebugLevel.none=None
3870+
um_omgs3.menu.DebugLevel.none.build.code_debug=0
3871+
um_omgs3.menu.DebugLevel.error=Error
3872+
um_omgs3.menu.DebugLevel.error.build.code_debug=1
3873+
um_omgs3.menu.DebugLevel.warn=Warn
3874+
um_omgs3.menu.DebugLevel.warn.build.code_debug=2
3875+
um_omgs3.menu.DebugLevel.info=Info
3876+
um_omgs3.menu.DebugLevel.info.build.code_debug=3
3877+
um_omgs3.menu.DebugLevel.debug=Debug
3878+
um_omgs3.menu.DebugLevel.debug.build.code_debug=4
3879+
um_omgs3.menu.DebugLevel.verbose=Verbose
3880+
um_omgs3.menu.DebugLevel.verbose.build.code_debug=5
3881+
3882+
um_omgs3.menu.EraseFlash.none=Disabled
3883+
um_omgs3.menu.EraseFlash.none.upload.erase_cmd=
3884+
um_omgs3.menu.EraseFlash.all=Enabled
3885+
um_omgs3.menu.EraseFlash.all.upload.erase_cmd=-e
3886+
3887+
##############################################################
3888+
37353889
um_pros3.name=UM PROS3
37363890
um_pros3.vid.0=0x303a
37373891
um_pros3.pid.0=0x80D3
@@ -4507,8 +4661,6 @@ S_ODI_Ultra.menu.EraseFlash.all.upload.erase_cmd=-e
45074661
##############################################################
45084662

45094663
lilygo_t_display.name=LilyGo T-Display
4510-
lilygo_t_display.vid.0=0x1a86
4511-
lilygo_t_display.pid.0=0x55d4
45124664

45134665
lilygo_t_display.upload.tool=esptool_py
45144666
lilygo_t_display.upload.tool.default=esptool_py
@@ -27574,8 +27726,6 @@ fm-devkit.menu.EraseFlash.all.upload.erase_cmd=-e
2757427726
### Fri3d Badge 2024 (ESP32-S3-WROOM-1)
2757527727

2757627728
fri3d_2024_esp32s3.name=Fri3d Badge 2024 (ESP32-S3-WROOM-1)
27577-
fri3d_2024_esp32s3.vid.0=0x303a
27578-
fri3d_2024_esp32s3.pid.0=0x1001
2757927729

2758027730
fri3d_2024_esp32s3.bootloader.tool=esptool_py
2758127731
fri3d_2024_esp32s3.bootloader.tool.default=esptool_py
@@ -39913,8 +40063,6 @@ waveshare_esp32_s3_lcd_169.menu.EraseFlash.all.upload.erase_cmd=-e
3991340063
##############################################################
3991440064

3991540065
waveshare_esp32s3_touch_lcd_128.name=Waveshare ESP32S3 Touch LCD 128
39916-
waveshare_esp32s3_touch_lcd_128.vid.0=0x1a86
39917-
waveshare_esp32s3_touch_lcd_128.pid.0=0x55d3
3991840066

3991940067
waveshare_esp32s3_touch_lcd_128.upload.tool=esptool_py
3992040068
waveshare_esp32s3_touch_lcd_128.upload.tool.default=esptool_py
@@ -40584,8 +40732,6 @@ walter.menu.EraseFlash.all.upload.erase_cmd=-e
4058440732
##############################################################
4058540733

4058640734
elecrow_crowpanel_7.name=Elecrow CrowPanel 7.0P
40587-
elecrow_crowpanel_7.vid.0=0x1a86
40588-
elecrow_crowpanel_7.pid.0=0x7523
4058940735

4059040736
elecrow_crowpanel_7.upload.tool=esptool_py
4059140737
elecrow_crowpanel_7.upload.tool.default=esptool_py

cores/esp32/Tone.cpp

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@
44
#include "freertos/queue.h"
55
#include "freertos/semphr.h"
66

7+
#if SOC_LEDC_SUPPORTED
78
static TaskHandle_t _tone_task = NULL;
89
static QueueHandle_t _tone_queue = NULL;
910
static int8_t _pin = -1;
11+
static uint8_t _channel = 255;
1012

1113
typedef enum {
1214
TONE_START,
@@ -20,6 +22,12 @@ typedef struct {
2022
unsigned long duration;
2123
} tone_msg_t;
2224

25+
#ifdef SOC_LEDC_SUPPORT_HS_MODE
26+
#define LEDC_CHANNELS (SOC_LEDC_CHANNEL_NUM << 1)
27+
#else
28+
#define LEDC_CHANNELS (SOC_LEDC_CHANNEL_NUM)
29+
#endif
30+
2331
static void tone_task(void *) {
2432
tone_msg_t tone_msg;
2533
while (1) {
@@ -29,7 +37,13 @@ static void tone_task(void *) {
2937
log_d("Task received from queue TONE_START: pin=%d, frequency=%u Hz, duration=%lu ms", tone_msg.pin, tone_msg.frequency, tone_msg.duration);
3038

3139
if (_pin == -1) {
32-
if (ledcAttach(tone_msg.pin, tone_msg.frequency, 10) == 0) {
40+
bool ret = true;
41+
if (_channel == 255) {
42+
ret = ledcAttach(tone_msg.pin, tone_msg.frequency, 10);
43+
} else {
44+
ret = ledcAttachChannel(tone_msg.pin, tone_msg.frequency, 10, _channel);
45+
}
46+
if (!ret) {
3347
log_e("Tone start failed");
3448
break;
3549
}
@@ -73,7 +87,7 @@ static int tone_init() {
7387
"toneTask", // Name of the task
7488
3500, // Stack size in words
7589
NULL, // Task input parameter
76-
1, // Priority of the task
90+
10, // Priority of the task must be higher than Arduino task
7791
&_tone_task // Task handle.
7892
);
7993
if (_tone_task == NULL) {
@@ -126,3 +140,13 @@ void tone(uint8_t pin, unsigned int frequency, unsigned long duration) {
126140
return;
127141
}
128142
}
143+
144+
void setToneChannel(uint8_t channel) {
145+
if (channel >= LEDC_CHANNELS) {
146+
log_e("Channel %u is not available (maximum %u)!", channel, LEDC_CHANNELS);
147+
return;
148+
}
149+
_channel = channel;
150+
}
151+
152+
#endif /* SOC_LEDC_SUPPORTED */

cores/esp32/chip-debug-report.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,7 @@ static void printChipInfo(void) {
8787
default: chip_report_printf("Unknown %d\n", info.model); break;
8888
}
8989
printPkgVersion();
90-
chip_report_printf(" Revision : ");
91-
if (info.revision > 0xFF) {
92-
chip_report_printf("%d.%d\n", info.revision >> 8, info.revision & 0xFF);
93-
} else {
94-
chip_report_printf("%d\n", info.revision);
95-
}
90+
chip_report_printf(" Revision : %.2f\n", (float)(info.revision) / 100.0);
9691
chip_report_printf(" Cores : %d\n", info.cores);
9792
rtc_cpu_freq_config_t conf;
9893
rtc_clk_cpu_freq_get_config(&conf);

libraries/WiFi/src/WiFiScan.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ int16_t
7777
scanDelete();
7878

7979
wifi_scan_config_t config;
80+
memset(&config, 0, sizeof(wifi_scan_config_t));
8081
config.ssid = (uint8_t *)ssid;
8182
config.bssid = (uint8_t *)bssid;
8283
config.channel = channel;

tests/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cryptography==42.0.7
1+
cryptography==43.0.1
22
--only-binary cryptography
33
pytest-cov==5.0.0
44
pytest-embedded-serial-esp==1.11.5
Binary file not shown.
19.1 KB
Binary file not shown.
Binary file not shown.
9.48 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
30 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
8.28 KB
Binary file not shown.
Binary file not shown.
9.45 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
13.2 KB
Binary file not shown.
Binary file not shown.
20.9 KB
Binary file not shown.
Binary file not shown.
9.44 KB
Binary file not shown.
Binary file not shown.
17.7 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
16.4 KB
Binary file not shown.
22.2 KB
Binary file not shown.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# ESP-IDF Partition Table
2+
# Name, Type, SubType, Offset, Size, Flags
3+
# bootloader.bin,, 0x1000, 32K
4+
# partition table,, 0x8000, 4K
5+
nvs, data, nvs, 0x9000, 20K,
6+
otadata, data, ota, 0xe000, 8K,
7+
ota_0, 0, ota_0, 0x10000, 2048K,
8+
ota_1, 0, ota_1, 0x210000, 2048K,
9+
uf2, app, factory,0x410000, 256K,
10+
ffat, data, fat, 0x450000, 3776K,

variants/um_omgs3/pins_arduino.h

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
#ifndef Pins_Arduino_h
2+
#define Pins_Arduino_h
3+
4+
#include <stdint.h>
5+
#include "soc/soc_caps.h"
6+
7+
#define USB_VID 0x303A
8+
#define USB_PID 0x8224
9+
#define USB_MANUFACTURER "Unexpected Maker"
10+
#define USB_PRODUCT "OMGS3"
11+
#define USB_SERIAL ""
12+
13+
static const uint8_t TX = 43;
14+
static const uint8_t RX = 44;
15+
16+
static const uint8_t SDA = 8;
17+
static const uint8_t SCL = 9;
18+
19+
static const uint8_t SS = 3;
20+
static const uint8_t MOSI = 6;
21+
static const uint8_t MISO = 5;
22+
static const uint8_t SDO = 6;
23+
static const uint8_t SDI = 5;
24+
static const uint8_t SCK = 4;
25+
26+
static const uint8_t A0 = 1;
27+
static const uint8_t A1 = 2;
28+
static const uint8_t A2 = 3;
29+
static const uint8_t A3 = 4;
30+
static const uint8_t A4 = 5;
31+
static const uint8_t A5 = 6;
32+
static const uint8_t A6 = 7;
33+
static const uint8_t A7 = 8;
34+
static const uint8_t A8 = 9;
35+
36+
static const uint8_t T1 = 1;
37+
static const uint8_t T2 = 2;
38+
static const uint8_t T3 = 3;
39+
static const uint8_t T4 = 4;
40+
static const uint8_t T5 = 5;
41+
static const uint8_t T6 = 6;
42+
static const uint8_t T7 = 7;
43+
static const uint8_t T8 = 8;
44+
static const uint8_t T9 = 9;
45+
46+
static const uint8_t VBUS_SENSE = 33;
47+
48+
static const uint8_t RGB_DATA = 35;
49+
// RGB_BUILTIN and RGB_BRIGHTNESS can be used in new Arduino API rgbLedWrite()
50+
#define RGB_BUILTIN (RGB_DATA + SOC_GPIO_PIN_COUNT)
51+
#define RGB_BRIGHTNESS 64
52+
// BUILTIN_LED can be used in new Arduino API digitalWrite() like in Blink.ino
53+
static const uint8_t LED_BUILTIN = RGB_BUILTIN;
54+
#define BUILTIN_LED LED_BUILTIN // backward compatibility
55+
#define LED_BUILTIN LED_BUILTIN // allow testing #ifdef LED_BUILTIN
56+
57+
static const uint8_t RGB_PWR = 34;
58+
59+
#endif /* Pins_Arduino_h */

variants/um_omgs3/tinyuf2.bin

180 KB
Binary file not shown.

0 commit comments

Comments
 (0)