Skip to content

v2.0.0 #4996

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 115 commits into from
Apr 5, 2021
Merged

v2.0.0 #4996

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
115 commits
Select commit Hold shift + click to select a range
34cd542
clean sdk
me-no-dev Mar 30, 2021
8e3e24c
Initial IDF-4.0 port
me-no-dev Jan 25, 2020
0e46b80
Add S2 variant
me-no-dev May 11, 2020
4235faa
Update esp32-hal-gpio.c
me-no-dev May 11, 2020
bbfabaf
Update app_httpd.cpp
me-no-dev May 11, 2020
b8e644e
disable BT Serial examples for S2
me-no-dev May 11, 2020
c793fa2
Update esp32-hal-i2c.c
me-no-dev May 11, 2020
7a389b4
fix peripherals
me-no-dev May 13, 2020
706d757
fix compile errors for esp32
me-no-dev May 13, 2020
2ca5fd8
Add I2C IDF Wrapper
me-no-dev May 13, 2020
6b54a55
Update HardwareSerial.cpp
me-no-dev May 13, 2020
8c5f8d6
Update esp32-hal-uart.c
me-no-dev May 14, 2020
833e139
Fix PSRAM support
me-no-dev May 14, 2020
d15e1b0
fix WiFi
me-no-dev May 17, 2020
d2d4127
fix wrong bootloader path in pio scripts
me-no-dev May 17, 2020
edfe769
Update esp32-hal-gpio.c
me-no-dev May 17, 2020
85e21ed
Disable IRAM ISRs and functions by default
me-no-dev May 18, 2020
509bcd3
update idf libs, disable WDT on S2, use malloc for PSRAM
me-no-dev May 18, 2020
3803cad
fix issue with rtc wdt
me-no-dev May 18, 2020
aa7b015
add psram to malloc only if interrupts are not in IRAM
me-no-dev May 18, 2020
9b26012
Disable modem sleep by default on S2 for now.
me-no-dev May 18, 2020
b39aca4
Pull latest IDF and enable TinyUSB
me-no-dev May 30, 2020
f40274a
Fix swapped USB pins issue
me-no-dev May 30, 2020
b02f131
TinyUSB adjust
me-no-dev Jun 1, 2020
437db96
Fixing static IP configuration so it doesn't get overwritten by DHCP …
atanisoft Jun 22, 2020
9216cbe
Fix GPIO Interrupts
me-no-dev Jun 22, 2020
e4cb02c
Update TinyUSB Lib
me-no-dev Jun 28, 2020
a7fc1a0
Update IDF Libs
me-no-dev Jun 28, 2020
70cf282
Add TinyUSB HAL and CDC
me-no-dev Jun 29, 2020
423a737
Fix DTR/RTS state for ESP32S2 native USB
me-no-dev Jun 29, 2020
5c2d1e3
Update USBCDC.cpp
me-no-dev Jun 30, 2020
2d6587d
Update TinyUSB
me-no-dev Jul 1, 2020
e1506a6
Change driver attach api and remove DFU from CDC
me-no-dev Jul 1, 2020
031988b
Handle persistent reboot better in CDC
me-no-dev Jul 2, 2020
138e369
Add debug output to CDC
me-no-dev Jul 2, 2020
17999e7
Some CDC and BTSerial compatibility fixes
me-no-dev Jul 14, 2020
42c40ec
Update USB.cpp
me-no-dev Jul 18, 2020
bfe1a6b
Update tinyusb
me-no-dev Jul 19, 2020
334a9b3
Add support for custom VID/PID and Board name to show in ArduinoIDE p…
me-no-dev Jul 22, 2020
c648b03
Add option USB CDC to be used for Serial (starting USB early)
me-no-dev Jul 22, 2020
83f78c2
Improve CDC Logging support
me-no-dev Jul 22, 2020
7da1a2b
Added UM FeatherS2 and UM ProS2 boards to boards.txt (#4188)
UnexpectedMaker Jul 23, 2020
c91105d
Update HardwareSerial.h
me-no-dev Jul 23, 2020
fccf573
Add option to select the core used for Arduino and it's events
me-no-dev Aug 16, 2020
6b110e6
Update IDF, tools and toolchains
me-no-dev Aug 24, 2020
115d742
Add board microS2 (#4314)
microdev1 Oct 2, 2020
504b148
Added ESP32-Wrover-Kit with distinct build.board (#4118)
tobozo Oct 2, 2020
5a9a679
Try with speed optimization as opposed to debug. Coremark 240 -> 430
me-no-dev Oct 11, 2020
c0d9d0c
Add camera support
me-no-dev Oct 12, 2020
1f0c5a9
Update IDF and Tools
me-no-dev Oct 13, 2020
4920cca
Make esp32-hal-tinyusb.h conditional on tinyusb (#4155)
bobobo1618 Oct 14, 2020
98d043d
Fix Arduino PIN counts
me-no-dev Oct 14, 2020
d6e58a8
Update IDF and Camera
me-no-dev Oct 14, 2020
3a32902
Update IDF master to 357a27760
me-no-dev Nov 2, 2020
b63981e
Add esp-rainmaker support for ESP32
me-no-dev Nov 3, 2020
73911eb
Adding LITTLEFS after esp_littlefs (IDF) is built-in (#4483)
lorol Nov 3, 2020
b5efb47
fix some merge errors
me-no-dev Nov 3, 2020
5ecb491
more fixes
me-no-dev Nov 3, 2020
c4f6aff
Add missing config
me-no-dev Nov 4, 2020
2e988a0
Update WiFiProv.ino
me-no-dev Nov 4, 2020
1a0f386
more fixes
me-no-dev Nov 4, 2020
3e6d164
skip bt tests for esp32s2
me-no-dev Nov 4, 2020
f376b3b
Make setHostname return true
me-no-dev Nov 5, 2020
cabfe84
fix psram init
me-no-dev Nov 6, 2020
9c51a00
RE: Change check for BT_ENABLE to really be a check for BLUEDROID_ENA…
me-no-dev Nov 6, 2020
9809406
Try to free some memory
me-no-dev Nov 6, 2020
4961cee
Create esp_arduino_version.h
me-no-dev Nov 6, 2020
e3dd168
Update Arduino.h
me-no-dev Nov 6, 2020
99272ce
add 2 variants (#4514)
ladyada Nov 10, 2020
fee89d4
Idf release/v4.2 - corrections of LITTLEFS and tools (#4515)
lorol Nov 10, 2020
7017302
Provisioning Fixes (#4522)
sweetymhaiske Nov 12, 2020
19cdaeb
Update IDF to 494a124d9
me-no-dev Nov 15, 2020
1bc5d39
Allow custom variants directory
loick111 Nov 15, 2020
a002bad
Updated SD_MMC init to match changes upstream
lbernstone Nov 15, 2020
863da8d
Fix deprecated vref function
lbernstone Nov 15, 2020
f5052bd
Fix PSRAM on S2
me-no-dev Nov 16, 2020
9a99e6a
rework persist reboot
me-no-dev Nov 17, 2020
fe12d8e
Fix Wire.begin causing divide by zero
me-no-dev Nov 17, 2020
b405941
Ignore mklittlefs
me-no-dev Nov 18, 2020
c3b4291
Separate Provisioning library from WiFi library to avoid unnecessary …
sweetymhaiske Nov 18, 2020
3fb65b6
Fix possible race condition in uart attach (#4569)
lbernstone Dec 1, 2020
9fbc016
Update boards.txt
me-no-dev Dec 1, 2020
28c4924
ESP-IDF update to 2bfdd036b and ESP-DSP
me-no-dev Jan 12, 2021
585398e
Update PlatformIO build script to handle spaces in env name (#4791)
valeros Feb 15, 2021
0e8096c
Update esp32-hal-timer.c
me-no-dev Mar 31, 2021
58966ec
Fix WiFi::setHostname
me-no-dev Mar 31, 2021
ed4d0cd
Create .skip.esp32s2
me-no-dev Mar 31, 2021
9cbf4cb
Modified WString.h to allow for larger strings with PSRAM
lbernstone Nov 29, 2020
c743f22
Add ESP RainMaker support to Arduino
sweetymhaiske Nov 17, 2020
d7f6492
Update RMakerDevice.ino
me-no-dev Mar 31, 2021
1b896c6
Added missing default TX and RX for T-watch (#4621)
happyme531 Mar 31, 2021
baaf9f2
[2.0.0] Fix issue with init I2C for esp32 S2 (#4776)
chegewara Mar 31, 2021
d7eb1fc
Update d32_pro boards.txt (#4704)
tobozo Mar 31, 2021
a205430
Add support to read/write raw sectors from/to sd card (#4777)
chegewara Mar 31, 2021
b2ab311
Update WiFiClient.cpp (#4816)
everslick Mar 31, 2021
101a85d
Update ssl_client.cpp (#4817)
everslick Mar 31, 2021
f6116ff
Merge branch 'v2-s2' of https://github.com/espressif/arduino-esp32 in…
me-no-dev Mar 31, 2021
e46b6b6
[2.0.0] Fix dropped SSL connection when buffer gets full. (#4821)
everslick Mar 31, 2021
3307e49
[2.0.0] Update release builder and package json (#4826)
me-no-dev Mar 31, 2021
5f2ec26
Add custom partition for ESP RainMaker (#4873)
sweetymhaiske Mar 31, 2021
247dba6
Added selective compilation for LITTLEFS and WiFiProv libraries. (#4877)
AronRubin Mar 31, 2021
acd715b
[2.0.0] Made selective compile of ArduinoOTA and LITTLEFS libraries a…
AronRubin Mar 31, 2021
2a3e084
Fixed missing conditional around BLE_SCHEME. (#4880)
AronRubin Mar 31, 2021
9495e33
SparkFun ESP32-S2 Thing Plus support (#4995)
lewispg228 Mar 31, 2021
59f0fb1
Fix RainMaker build
me-no-dev Apr 1, 2021
1fb9258
IDF master 1067b2870
me-no-dev Apr 1, 2021
23ed4dc
Update on-push.sh
me-no-dev Apr 1, 2021
7ac5cc3
Update PIO build scripts
me-no-dev Apr 1, 2021
e678c73
Update PIO Scripts
me-no-dev Apr 1, 2021
49328de
Fix PSRAM settings in boards.txt
me-no-dev Apr 1, 2021
47fb95e
Update build settings
me-no-dev Apr 1, 2021
68afc10
Update TinyUSB
me-no-dev Apr 2, 2021
8e7fbe2
Fix tinyusb init
me-no-dev Apr 2, 2021
f6fda74
IDF master 1cb31e509
me-no-dev Apr 2, 2021
0795bd7
Disable USB persist for now
me-no-dev Apr 2, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
4 changes: 2 additions & 2 deletions .github/scripts/check-cmakelists.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ git submodule update --init --recursive
REPO_SRCS=`find cores/esp32/ libraries/ -name 'examples' -prune -o -name '*.c' -print -o -name '*.cpp' -print | sort`

# find all source files named in CMakeLists.txt COMPONENT_SRCS
CMAKE_SRCS=`cmake --trace-expand -C CMakeLists.txt 2>&1 | grep COMPONENT_SRCS | sed 's/.\+COMPONENT_SRCS //' | sed 's/ )//' | tr ' ;' '\n' | sort`
CMAKE_SRCS=`cmake --trace-expand -C CMakeLists.txt 2>&1 | grep set\(srcs | cut -d'(' -f3 | sed 's/ )//' | sed 's/srcs //' | tr ' ;' '\n' | sort`

if ! diff -u0 --label "Repo Files" --label "COMPONENT_SRCS" <(echo "$REPO_SRCS") <(echo "$CMAKE_SRCS"); then
if ! diff -u0 --label "Repo Files" --label "srcs" <(echo "$REPO_SRCS") <(echo "$CMAKE_SRCS"); then
echo "Source files in repo (-) and source files in CMakeLists.txt (+) don't match"
echo "Edit CMakeLists.txt as appropriate to add/remove source files from COMPONENT_SRCS"
exit 1
Expand Down
4 changes: 2 additions & 2 deletions .github/scripts/install-arduino-core-esp32.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ if [ ! -d "$ARDUINO_ESP32_PATH" ]; then
git clone https://github.com/espressif/arduino-esp32.git esp32 > /dev/null 2>&1
fi

echo "Updating Submodules ..."
#echo "Updating Submodules ..."
cd esp32
git submodule update --init --recursive > /dev/null 2>&1
#git submodule update --init --recursive > /dev/null 2>&1

echo "Installing Platform Tools ..."
cd tools && python get.py
Expand Down
26 changes: 14 additions & 12 deletions .github/scripts/install-arduino-ide.sh
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,10 @@ function build_sketch(){ # build_sketch <fqbn> <path-to-ino> [extra-options]
$win_opts $xtra_opts "$sketch"
}

function count_sketches() # count_sketches <examples-path>
function count_sketches() # count_sketches <examples-path> <target-mcu>
{
local examples="$1"
local target="$2"
rm -rf sketches.txt
if [ ! -d "$examples" ]; then
touch sketches.txt
Expand All @@ -133,7 +134,7 @@ function count_sketches() # count_sketches <examples-path>
if [[ "${sketchdirname}.ino" != "$sketchname" ]]; then
continue
fi;
if [[ -f "$sketchdir/.test.skip" ]]; then
if [[ -f "$sketchdir/.skip.$target" ]]; then
continue
fi
echo $sketch >> sketches.txt
Expand All @@ -142,24 +143,25 @@ function count_sketches() # count_sketches <examples-path>
return $sketchnum
}

function build_sketches() # build_sketches <fqbn> <examples-path> <chunk> <total-chunks> [extra-options]
function build_sketches() # build_sketches <fqbn> <target-mcu> <examples-path> <chunk> <total-chunks> [extra-options]
{
local fqbn=$1
local examples=$2
local chunk_idex=$3
local chunks_num=$4
local xtra_opts=$5
local target="$2"
local examples=$3
local chunk_idex=$4
local chunks_num=$5
local xtra_opts=$6

if [ "$#" -lt 2 ]; then
if [ "$#" -lt 3 ]; then
echo "ERROR: Illegal number of parameters"
echo "USAGE: build_sketches <fqbn> <examples-path> [<chunk> <total-chunks>] [extra-options]"
echo "USAGE: build_sketches <fqbn> <target-mcu <examples-path> [<chunk> <total-chunks>] [extra-options]"
return 1
fi

if [ "$#" -lt 4 ]; then
if [ "$#" -lt 5 ]; then
chunk_idex="0"
chunks_num="1"
xtra_opts=$3
xtra_opts=$4
fi

if [ "$chunks_num" -le 0 ]; then
Expand Down Expand Up @@ -208,7 +210,7 @@ function build_sketches() # build_sketches <fqbn> <examples-path> <chunk> <total
local sketchdirname=$(basename $sketchdir)
local sketchname=$(basename $sketch)
if [ "${sketchdirname}.ino" != "$sketchname" ] \
|| [ -f "$sketchdir/.test.skip" ]; then
|| [ -f "$sketchdir/.skip.$target" ]; then
continue
fi
sketchnum=$(($sketchnum + 1))
Expand Down
33 changes: 18 additions & 15 deletions .github/scripts/install-platformio-esp32.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash

export PLATFORMIO_ESP32_PATH="$HOME/.platformio/packages/framework-arduinoespressif32"
PLATFORMIO_ESP32_URL="https://github.com/platformio/platform-espressif32.git#feature/idf-v4.0"

echo "Installing Python Wheel ..."
pip install wheel > /dev/null 2>&1
Expand All @@ -9,10 +10,10 @@ echo "Installing PlatformIO ..."
pip install -U https://github.com/platformio/platformio/archive/develop.zip > /dev/null 2>&1

echo "Installing Platform ESP32 ..."
python -m platformio platform install https://github.com/platformio/platform-espressif32.git > /dev/null 2>&1
python -m platformio platform install $PLATFORMIO_ESP32_URL > /dev/null 2>&1

echo "Replacing the framework version ..."
python -c "import json; import os; fp=open(os.path.expanduser('~/.platformio/platforms/espressif32/platform.json'), 'r+'); data=json.load(fp); data['packages']['framework-arduinoespressif32']['version'] = '*'; del data['packages']['framework-arduinoespressif32']['owner']; fp.seek(0); fp.truncate(); json.dump(data, fp); fp.close()"
python -c "import json; import os; fp=open(os.path.expanduser('~/.platformio/platforms/espressif32/platform.json'), 'r+'); data=json.load(fp); data['packages']['framework-arduinoespressif32']['version'] = '*'; fp.seek(0); fp.truncate(); json.dump(data, fp); fp.close()"

if [ "$GITHUB_REPOSITORY" == "espressif/arduino-esp32" ]; then
echo "Linking Core..."
Expand All @@ -25,19 +26,20 @@ fi
echo "PlatformIO for ESP32 has been installed"
echo ""

function build_pio_sketch(){ # build_pio_sketch <board> <path-to-ino>
if [ "$#" -lt 2 ]; then
function build_pio_sketch(){ # build_pio_sketch <board> <options> <path-to-ino>
if [ "$#" -lt 3 ]; then
echo "ERROR: Illegal number of parameters"
echo "USAGE: build_pio_sketch <board> <path-to-ino>"
echo "USAGE: build_pio_sketch <board> <options> <path-to-ino>"
return 1
fi

local board="$1"
local sketch="$2"
local options="$2"
local sketch="$3"
local sketch_dir=$(dirname "$sketch")
echo ""
echo "Compiling '"$(basename "$sketch")"' ..."
python -m platformio ci --board "$board" "$sketch_dir" --project-option="board_build.partitions = huge_app.csv"
python -m platformio ci --board "$board" "$sketch_dir" --project-option="$options"
}

function count_sketches() # count_sketches <examples-path>
Expand Down Expand Up @@ -66,20 +68,21 @@ function count_sketches() # count_sketches <examples-path>
return $sketchnum
}

function build_pio_sketches() # build_pio_sketches <board> <examples-path> <chunk> <total-chunks>
function build_pio_sketches() # build_pio_sketches <board> <options> <examples-path> <chunk> <total-chunks>
{
if [ "$#" -lt 2 ]; then
if [ "$#" -lt 3 ]; then
echo "ERROR: Illegal number of parameters"
echo "USAGE: build_pio_sketches <board> <examples-path> [<chunk> <total-chunks>]"
echo "USAGE: build_pio_sketches <board> <options> <examples-path> [<chunk> <total-chunks>]"
return 1
fi

local board=$1
local examples=$2
local chunk_idex=$3
local chunks_num=$4
local options="$2"
local examples=$3
local chunk_idex=$4
local chunks_num=$5

if [ "$#" -lt 4 ]; then
if [ "$#" -lt 5 ]; then
chunk_idex="0"
chunks_num="1"
fi
Expand Down Expand Up @@ -138,7 +141,7 @@ function build_pio_sketches() # build_pio_sketches <board> <examples-path> <chun
|| [ "$sketchnum" -gt "$end_index" ]; then
continue
fi
build_pio_sketch "$board" "$sketch"
build_pio_sketch "$board" "$options" "$sketch"
local result=$?
if [ $result -ne 0 ]; then
return $result
Expand Down
48 changes: 34 additions & 14 deletions .github/scripts/on-push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,42 +30,62 @@ elif [ "$CHUNK_INDEX" -eq "$CHUNKS_CNT" ]; then
BUILD_PIO=1
fi

echo "Updating submodules ..."
git -C "$GITHUB_WORKSPACE" submodule update --init --recursive > /dev/null 2>&1
#echo "Updating submodules ..."
#git -C "$GITHUB_WORKSPACE" submodule update --init --recursive > /dev/null 2>&1

if [ "$BUILD_PIO" -eq 0 ]; then
# ArduinoIDE Test
# ArduinoIDE ESP32 Test
TARGET="esp32"
FQBN="espressif:esp32:esp32:PSRAM=enabled,PartitionScheme=huge_app"
source ./.github/scripts/install-arduino-ide.sh
source ./.github/scripts/install-arduino-core-esp32.sh
if [ "$OS_IS_WINDOWS" == "1" ]; then
build_sketch "$FQBN" "$ARDUINO_ESP32_PATH/libraries/WiFiClientSecure/examples/WiFiClientSecure/WiFiClientSecure.ino" && \
build_sketch "$FQBN" "$ARDUINO_ESP32_PATH/libraries/BLE/examples/BLE_server/BLE_server.ino" && \
build_sketch "$FQBN" "$ARDUINO_ESP32_PATH/libraries/AzureIoT/examples/GetStarted/GetStarted.ino" && \
build_sketch "$FQBN" "$ARDUINO_ESP32_PATH/libraries/ESP32/examples/Camera/CameraWebServer/CameraWebServer.ino"
elif [ "$OS_IS_MACOS" == "1" ]; then
build_sketch "$FQBN" "$ARDUINO_ESP32_PATH/libraries/WiFi/examples/WiFiClient/WiFiClient.ino" && \
build_sketch "$FQBN" "$ARDUINO_ESP32_PATH/libraries/WiFiClientSecure/examples/WiFiClientSecure/WiFiClientSecure.ino" && \
build_sketch "$FQBN" "$ARDUINO_ESP32_PATH/libraries/BluetoothSerial/examples/SerialToSerialBT/SerialToSerialBT.ino" && \
build_sketch "$FQBN" "$ARDUINO_ESP32_PATH/libraries/BLE/examples/BLE_server/BLE_server.ino" && \
build_sketch "$FQBN" "$ARDUINO_ESP32_PATH/libraries/AzureIoT/examples/GetStarted/GetStarted.ino" && \
build_sketch "$FQBN" "$ARDUINO_ESP32_PATH/libraries/ESP32/examples/Camera/CameraWebServer/CameraWebServer.ino"
else
# CMake Test
if [ "$CHUNK_INDEX" -eq 0 ]; then
bash "$ARDUINO_ESP32_PATH/.github/scripts/check-cmakelists.sh"
fi
build_sketches "$FQBN" "$ARDUINO_ESP32_PATH/libraries" "$CHUNK_INDEX" "$CHUNKS_CNT"
build_sketches "$FQBN" "$TARGET" "$ARDUINO_ESP32_PATH/libraries" "$CHUNK_INDEX" "$CHUNKS_CNT"
fi

# ArduinoIDE ESP32S2 Test
TARGET="esp32s2"
FQBN="espressif:esp32:esp32s2:PSRAM=enabled,PartitionScheme=huge_app"
if [ "$OS_IS_WINDOWS" == "1" ]; then
build_sketch "$FQBN" "$ARDUINO_ESP32_PATH/libraries/WiFi/examples/WiFiClient/WiFiClient.ino" && \
build_sketch "$FQBN" "$ARDUINO_ESP32_PATH/libraries/WiFiClientSecure/examples/WiFiClientSecure/WiFiClientSecure.ino"
elif [ "$OS_IS_MACOS" == "1" ]; then
build_sketch "$FQBN" "$ARDUINO_ESP32_PATH/libraries/WiFi/examples/WiFiClient/WiFiClient.ino" && \
build_sketch "$FQBN" "$ARDUINO_ESP32_PATH/libraries/WiFiClientSecure/examples/WiFiClientSecure/WiFiClientSecure.ino"
else
build_sketches "$FQBN" "$TARGET" "$ARDUINO_ESP32_PATH/libraries" "$CHUNK_INDEX" "$CHUNKS_CNT"
fi
else
# PlatformIO Test
source ./.github/scripts/install-platformio-esp32.sh
# PlatformIO ESP32 Test
BOARD="esp32dev"
build_pio_sketch "$BOARD" "$PLATFORMIO_ESP32_PATH/libraries/WiFi/examples/WiFiClient/WiFiClient.ino" && \
build_pio_sketch "$BOARD" "$PLATFORMIO_ESP32_PATH/libraries/WiFiClientSecure/examples/WiFiClientSecure/WiFiClientSecure.ino" && \
build_pio_sketch "$BOARD" "$PLATFORMIO_ESP32_PATH/libraries/BluetoothSerial/examples/SerialToSerialBT/SerialToSerialBT.ino" && \
build_pio_sketch "$BOARD" "$PLATFORMIO_ESP32_PATH/libraries/BLE/examples/BLE_server/BLE_server.ino" && \
build_pio_sketch "$BOARD" "$PLATFORMIO_ESP32_PATH/libraries/AzureIoT/examples/GetStarted/GetStarted.ino" && \
build_pio_sketch "$BOARD" "$PLATFORMIO_ESP32_PATH/libraries/ESP32/examples/Camera/CameraWebServer/CameraWebServer.ino"
#build_pio_sketches esp32dev "$PLATFORMIO_ESP32_PATH/libraries"
OPTIONS="board_build.partitions = huge_app.csv"
build_pio_sketch "$BOARD" "$OPTIONS" "$PLATFORMIO_ESP32_PATH/libraries/WiFi/examples/WiFiClient/WiFiClient.ino" && \
build_pio_sketch "$BOARD" "$OPTIONS" "$PLATFORMIO_ESP32_PATH/libraries/WiFiClientSecure/examples/WiFiClientSecure/WiFiClientSecure.ino" && \
build_pio_sketch "$BOARD" "$OPTIONS" "$PLATFORMIO_ESP32_PATH/libraries/BluetoothSerial/examples/SerialToSerialBT/SerialToSerialBT.ino" && \
build_pio_sketch "$BOARD" "$OPTIONS" "$PLATFORMIO_ESP32_PATH/libraries/BLE/examples/BLE_server/BLE_server.ino" && \
build_pio_sketch "$BOARD" "$OPTIONS" "$PLATFORMIO_ESP32_PATH/libraries/ESP32/examples/Camera/CameraWebServer/CameraWebServer.ino"

# PlatformIO ESP32 Test
# OPTIONS="board_build.mcu = esp32s2"
# build_pio_sketch "$BOARD" "$OPTIONS" "$PLATFORMIO_ESP32_PATH/libraries/WiFi/examples/WiFiClient/WiFiClient.ino" && \
# build_pio_sketch "$BOARD" "$OPTIONS" "$PLATFORMIO_ESP32_PATH/libraries/WiFiClientSecure/examples/WiFiClientSecure/WiFiClientSecure.ino"

python -m platformio ci --board "$BOARD" "$PLATFORMIO_ESP32_PATH/libraries/WiFi/examples/WiFiClient" --project-option="board_build.mcu = esp32s2" --project-option="board_build.partitions = huge_app.csv"

#build_pio_sketches "$BOARD" "$OPTIONS" "$PLATFORMIO_ESP32_PATH/libraries"
fi
27 changes: 14 additions & 13 deletions .github/scripts/on-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -171,19 +171,19 @@ mkdir -p "$PKG_DIR/tools"

# Copy all core files to the package folder
echo "Copying files for packaging ..."
cp -f "$GITHUB_WORKSPACE/boards.txt" "$PKG_DIR/"
cp -f "$GITHUB_WORKSPACE/programmers.txt" "$PKG_DIR/"
cp -Rf "$GITHUB_WORKSPACE/cores" "$PKG_DIR/"
cp -Rf "$GITHUB_WORKSPACE/libraries" "$PKG_DIR/"
cp -Rf "$GITHUB_WORKSPACE/variants" "$PKG_DIR/"
cp -f "$GITHUB_WORKSPACE/tools/espota.exe" "$PKG_DIR/tools/"
cp -f "$GITHUB_WORKSPACE/tools/espota.py" "$PKG_DIR/tools/"
cp -f "$GITHUB_WORKSPACE/tools/esptool.py" "$PKG_DIR/tools/"
cp -f "$GITHUB_WORKSPACE/tools/gen_esp32part.py" "$PKG_DIR/tools/"
cp -f "$GITHUB_WORKSPACE/tools/gen_esp32part.exe" "$PKG_DIR/tools/"
cp -Rf "$GITHUB_WORKSPACE/tools/partitions" "$PKG_DIR/tools/"
cp -Rf "$GITHUB_WORKSPACE/tools/sdk" "$PKG_DIR/tools/"
cp -f "$GITHUB_WORKSPACE/tools/platformio-build.py" "$PKG_DIR/tools/"
cp -f "$GITHUB_WORKSPACE/boards.txt" "$PKG_DIR/"
cp -f "$GITHUB_WORKSPACE/programmers.txt" "$PKG_DIR/"
cp -Rf "$GITHUB_WORKSPACE/cores" "$PKG_DIR/"
cp -Rf "$GITHUB_WORKSPACE/libraries" "$PKG_DIR/"
cp -Rf "$GITHUB_WORKSPACE/variants" "$PKG_DIR/"
cp -f "$GITHUB_WORKSPACE/tools/espota.exe" "$PKG_DIR/tools/"
cp -f "$GITHUB_WORKSPACE/tools/espota.py" "$PKG_DIR/tools/"
cp -f "$GITHUB_WORKSPACE/tools/esptool.py" "$PKG_DIR/tools/"
cp -f "$GITHUB_WORKSPACE/tools/gen_esp32part.py" "$PKG_DIR/tools/"
cp -f "$GITHUB_WORKSPACE/tools/gen_esp32part.exe" "$PKG_DIR/tools/"
cp -Rf "$GITHUB_WORKSPACE/tools/partitions" "$PKG_DIR/tools/"
cp -Rf "$GITHUB_WORKSPACE/tools/sdk" "$PKG_DIR/tools/"
cp -f $GITHUB_WORKSPACE/tools/platformio-build*.py "$PKG_DIR/tools/"

# Remove unnecessary files in the package folder
echo "Cleaning up folders ..."
Expand All @@ -195,6 +195,7 @@ echo "Generating platform.txt..."
cat "$GITHUB_WORKSPACE/platform.txt" | \
sed "s/version=.*/version=$ver$extent/g" | \
sed 's/runtime.tools.xtensa-esp32-elf-gcc.path={runtime.platform.path}\/tools\/xtensa-esp32-elf//g' | \
sed 's/runtime.tools.xtensa-esp32s2-elf-gcc.path={runtime.platform.path}\/tools\/xtensa-esp32s2-elf//g' | \
sed 's/tools.esptool_py.path={runtime.platform.path}\/tools\/esptool/tools.esptool_py.path=\{runtime.tools.esptool_py.path\}/g' \
> "$PKG_DIR/platform.txt"

Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,6 @@ tools/mklittlefs
__vm/
*.vcxproj*
.vscode/
platform.sloeber.txt
boards.sloeber.txt
tools/mklittlefs
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +0,0 @@
[submodule "libraries/AzureIoT"]
path = libraries/AzureIoT
url = https://github.com/VSChina/ESP32_AzureIoT_Arduino
Loading