Skip to content

Update boards.txt #4650

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

Closed
wants to merge 138 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
138 commits
Select commit Hold shift + click to select a range
8c723be
Initial IDF-4.0 port
me-no-dev Jan 25, 2020
251d5ef
Update CMakeLists.txt
me-no-dev Jan 25, 2020
4bb60f6
Update package_esp32_index.template.json
me-no-dev Jan 27, 2020
1c49665
make ETH work
me-no-dev Jan 27, 2020
354e485
get smart config to work as well
me-no-dev Jan 27, 2020
856e596
Pass ethernet events to the main handler
me-no-dev Jan 27, 2020
93d7785
Add fixes
me-no-dev Apr 6, 2020
8569b2c
Initial Commit
me-no-dev May 9, 2020
7f56028
Add S2 variant
me-no-dev May 11, 2020
0ea23fe
Update esp32-hal-gpio.c
me-no-dev May 11, 2020
49c4788
Update CameraWebServer.ino
me-no-dev May 11, 2020
c2be29e
Merge branch 'master' into esp32s2
me-no-dev May 11, 2020
05df11e
some compile fixes
me-no-dev May 11, 2020
03d3d61
Update app_httpd.cpp
me-no-dev May 11, 2020
3a554c5
fix cmake check
me-no-dev May 11, 2020
f69b40d
fix provision compilation
me-no-dev May 11, 2020
ad68da6
try s2 ci
me-no-dev May 11, 2020
062d4b1
Update on-push.sh
me-no-dev May 11, 2020
a6a68a9
Update ResetReason.ino
me-no-dev May 11, 2020
46abedc
disable BT Serial examples for S2
me-no-dev May 11, 2020
5d7032d
Update TouchRead.ino
me-no-dev May 11, 2020
0e3994c
Update SPI_Multiple_Buses.ino
me-no-dev May 11, 2020
fd70e0d
skip some examples
me-no-dev May 11, 2020
7ea54ab
Create .skip.esp32s2
me-no-dev May 11, 2020
a744383
Update SD_Update.ino
me-no-dev May 11, 2020
1bb1160
Update esp32-hal-i2c.c
me-no-dev May 11, 2020
0a0ee87
skip more examples
me-no-dev May 11, 2020
5320123
Update WiFiTelnetToSerial.ino
me-no-dev May 11, 2020
2977df4
Update on-push.sh
me-no-dev May 11, 2020
20028a2
Update on-push.sh
me-no-dev May 12, 2020
1840ba5
try pio again
me-no-dev May 12, 2020
4f4bf07
Update platformio-build-esp32.py
me-no-dev May 12, 2020
669cbec
Update platformio-build-esp32.py
me-no-dev May 12, 2020
2103a78
Update on-push.sh
me-no-dev May 12, 2020
04988bd
try outputing the map
me-no-dev May 12, 2020
81cdcc9
how about now?
me-no-dev May 12, 2020
644f7a8
does not work
me-no-dev May 12, 2020
ed2115e
new try at pio
me-no-dev May 12, 2020
87d5f9d
fix py script
me-no-dev May 12, 2020
c6bae38
Update install-platformio-esp32.sh
me-no-dev May 12, 2020
48dfc89
Update on-push.sh
me-no-dev May 12, 2020
aa61b75
fix peripherals
me-no-dev May 13, 2020
07f1bce
fix compile errors for esp32
me-no-dev May 13, 2020
806e388
Add I2C IDF Wrapper
me-no-dev May 13, 2020
7f1b7ad
Update HardwareSerial.cpp
me-no-dev May 13, 2020
b769dd0
Fix Serial
me-no-dev May 13, 2020
9a16cd4
Update esp32-hal-uart.c
me-no-dev May 14, 2020
176e5b0
Update esp32-hal-uart.c
me-no-dev May 14, 2020
cebaf93
Fix PSRAM support
me-no-dev May 14, 2020
3fb1642
fix WiFi
me-no-dev May 17, 2020
400aca5
fix some examples
me-no-dev May 17, 2020
88f1b23
fix wrong bootloader path in pio scripts
me-no-dev May 17, 2020
0d61996
more example fixes
me-no-dev May 17, 2020
f3835ea
Update WiFiClientEvents.ino
me-no-dev May 17, 2020
279f7e3
Update WiFiBlueToothSwitch.ino
me-no-dev May 17, 2020
caca107
Update WiFiProv.ino
me-no-dev May 17, 2020
d111001
Update WPS.ino
me-no-dev May 17, 2020
31d5120
some i2c fixes
me-no-dev May 17, 2020
ad067ea
Update main.cpp
me-no-dev May 17, 2020
05db08e
Update esp32-hal-gpio.c
me-no-dev May 17, 2020
4f7e806
Disable IRAM ISRs and functions by default
me-no-dev May 18, 2020
40c325b
update idf libs, disable WDT on S2, use malloc for PSRAM
me-no-dev May 18, 2020
7553683
fix issue with rtc wdt
me-no-dev May 18, 2020
27e61dc
fix psram always init
me-no-dev May 18, 2020
eccbfdb
add psram to malloc only if interrupts are not in IRAM
me-no-dev May 18, 2020
cda6fac
Disable modem sleep by default on S2 for now.
me-no-dev May 18, 2020
3450550
Pull latest IDF and enable TinyUSB
me-no-dev May 30, 2020
57b7e4c
Add support for no-stub usb s2 flashing
me-no-dev May 30, 2020
d009787
Update TinyUSB
me-no-dev May 30, 2020
351a651
Once again
me-no-dev May 30, 2020
dc3394d
hopefully all is here now
me-no-dev May 30, 2020
3d7f9d9
try to fix linking errors
me-no-dev May 30, 2020
b15f5ba
what if functions are in the core?
me-no-dev May 30, 2020
6ecd249
how about now?
me-no-dev May 30, 2020
12a8779
what happened to no-stub?
me-no-dev May 30, 2020
86494d5
Update CMakeLists.txt
me-no-dev May 30, 2020
04267e1
Fix swapped USB pins issue
me-no-dev May 30, 2020
61c98b8
Update pins_arduino.h
me-no-dev May 31, 2020
7e9d75a
Merge branch 'master' into esp32s2
me-no-dev May 31, 2020
d12af93
TinyUSB adjust
me-no-dev Jun 1, 2020
8cb2a4b
change endpoints
me-no-dev Jun 1, 2020
0a4b659
again
me-no-dev Jun 1, 2020
d5bd8e3
Try custom device descriptors
me-no-dev Jun 1, 2020
ef96144
Add missing DFU driver
me-no-dev Jun 1, 2020
2d7ec30
Update libtinyusb.a
me-no-dev Jun 1, 2020
11cad87
Fixing static IP configuration so it doesn't get overwritten by DHCP …
atanisoft Jun 22, 2020
a1bd429
Fix GPIO Interrupts
me-no-dev Jun 22, 2020
ca7ed86
Update TinyUSB Lib
me-no-dev Jun 28, 2020
bd96f7f
Update IDF Libs
me-no-dev Jun 28, 2020
be074ee
Add TinyUSB HAL and CDC
me-no-dev Jun 29, 2020
7d50114
Add files to cmakelists and disconnect CDC if unplugged
me-no-dev Jun 29, 2020
acadabb
Update CMakeLists.txt
me-no-dev Jun 29, 2020
096af05
Fix DTR/RTS state for ESP32S2 native USB
me-no-dev Jun 29, 2020
f13f84d
Fix compilation issues
me-no-dev Jun 29, 2020
7f61d20
Update libtinyusb.a
me-no-dev Jun 29, 2020
46bde99
Update USBCDC.cpp
me-no-dev Jun 30, 2020
b8fcea9
Update TinyUSB
me-no-dev Jul 1, 2020
2e19d27
Change driver attach api and remove DFU from CDC
me-no-dev Jul 1, 2020
e06f9b7
Handle persistent reboot better in CDC
me-no-dev Jul 2, 2020
ea04207
Add debug output to CDC
me-no-dev Jul 2, 2020
9f1ccb9
Some CDC and BTSerial compatibility fixes
me-no-dev Jul 14, 2020
33f4745
Update USB.cpp
me-no-dev Jul 18, 2020
38057d6
Update tinyusb
me-no-dev Jul 19, 2020
f58cba0
Add support for custom VID/PID and Board name to show in ArduinoIDE p…
me-no-dev Jul 22, 2020
dc0208e
Add option USB CDC to be used for Serial (starting USB early)
me-no-dev Jul 22, 2020
280bf4d
Create USB_NOT.h
me-no-dev Jul 22, 2020
4fa3cba
Improve CDC Logging support
me-no-dev Jul 22, 2020
2cebf72
Update CMakeLists.txt
me-no-dev Jul 22, 2020
d251984
Added UM FeatherS2 and UM ProS2 boards to boards.txt (#4188)
UnexpectedMaker Jul 23, 2020
c6f6522
Update HardwareSerial.h
me-no-dev Jul 23, 2020
7678be4
Merge branch 'master' into esp32s2
me-no-dev Jul 23, 2020
9eaa587
Update CMakeLists.txt
me-no-dev Jul 23, 2020
880fc0b
Add option to select the core used for Arduino and it's events
me-no-dev Aug 16, 2020
5f057c7
Some fixes
me-no-dev Aug 22, 2020
52c284a
Update IDF, tools and toolchains
me-no-dev Aug 24, 2020
383b999
Update platform.txt
me-no-dev Aug 31, 2020
42b4a99
Update install-platformio-esp32.sh
me-no-dev Aug 31, 2020
273a8d7
Update platform.txt
me-no-dev Sep 1, 2020
2656452
Update boards.txt
me-no-dev Sep 4, 2020
bbcc624
Update USB.cpp
me-no-dev Sep 23, 2020
291c519
Update WiFiMulti.cpp (#4099)
atanisoft Sep 30, 2020
8d9d7bb
Makes ethernet get an IP when connected (#4234)
copercini Oct 1, 2020
0db0af5
Add board microS2 (#4314)
microdev1 Oct 2, 2020
9bb8224
Added ESP32-Wrover-Kit with distinct build.board (#4118)
tobozo Oct 2, 2020
440437c
Try with speed optimization as opposed to debug. Coremark 240 -> 430
me-no-dev Oct 11, 2020
537b1a6
Add camera support
me-no-dev Oct 12, 2020
b06735a
Update platform.txt
me-no-dev Oct 12, 2020
2b0dbdc
Update .gitignore
me-no-dev Oct 13, 2020
b7c3607
Update IDF and Tools
me-no-dev Oct 13, 2020
9f8b433
Make esp32-hal-tinyusb.h conditional on tinyusb (#4155)
bobobo1618 Oct 14, 2020
54140dc
Fix Arduino PIN counts
me-no-dev Oct 14, 2020
baaff84
Update IDF and Camera
me-no-dev Oct 14, 2020
6be6abf
Update IDF master to 357a27760
me-no-dev Nov 2, 2020
41e392f
Add esp-rainmaker support for ESP32
me-no-dev Nov 3, 2020
9a9fb2c
port 882b12c44e9aca640a8adad16c11cd41c67e0f7b over
me-no-dev Nov 3, 2020
b5b45cd
Update install-arduino-ide.sh
me-no-dev Nov 3, 2020
cf60cf4
Adding LITTLEFS after esp_littlefs (IDF) is built-in (#4483)
lorol Nov 3, 2020
d9e6f32
Update boards.txt
tobozo Dec 21, 2020
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
38 changes: 23 additions & 15 deletions .github/scripts/install-arduino-ide.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,22 @@ else
export ARDUINO_USR_PATH="$HOME/Arduino"
fi

# Updated as of Nov 3rd 2020
ARDUINO_IDE_URL="https://github.com/espressif/arduino-esp32/releases/download/1.0.4/arduino-nightly-"

# Currently not working
#ARDUINO_IDE_URL="https://www.arduino.cc/download.php?f=/arduino-nightly-"

if [ ! -d "$ARDUINO_IDE_PATH" ]; then
echo "Installing Arduino IDE on $OS_NAME ..."
echo "Downloading 'arduino-nightly-$OS_NAME.$ARCHIVE_FORMAT' to 'arduino.$ARCHIVE_FORMAT' ..."
echo "Downloading '$ARDUINO_IDE_URL$OS_NAME.$ARCHIVE_FORMAT' to 'arduino.$ARCHIVE_FORMAT' ..."
if [ "$OS_IS_LINUX" == "1" ]; then
wget -O "arduino.$ARCHIVE_FORMAT" "https://www.arduino.cc/download.php?f=/arduino-nightly-$OS_NAME.$ARCHIVE_FORMAT" > /dev/null 2>&1
wget -O "arduino.$ARCHIVE_FORMAT" "$ARDUINO_IDE_URL$OS_NAME.$ARCHIVE_FORMAT" > /dev/null 2>&1
echo "Extracting 'arduino.$ARCHIVE_FORMAT' ..."
tar xf "arduino.$ARCHIVE_FORMAT" > /dev/null
mv arduino-nightly "$ARDUINO_IDE_PATH"
else
curl -o "arduino.$ARCHIVE_FORMAT" -L "https://www.arduino.cc/download.php?f=/arduino-nightly-$OS_NAME.$ARCHIVE_FORMAT" > /dev/null 2>&1
curl -o "arduino.$ARCHIVE_FORMAT" -L "$ARDUINO_IDE_URL$OS_NAME.$ARCHIVE_FORMAT" > /dev/null 2>&1
echo "Extracting 'arduino.$ARCHIVE_FORMAT' ..."
unzip "arduino.$ARCHIVE_FORMAT" > /dev/null
if [ "$OS_IS_MACOS" == "1" ]; then
Expand Down Expand Up @@ -110,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 @@ -127,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 @@ -136,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 @@ -202,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
40 changes: 19 additions & 21 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,40 +10,36 @@ 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 ..."
if [[ "$OSTYPE" == "darwin"* ]]; then
sed 's/https:\/\/github\.com\/espressif\/arduino-esp32\.git/*/' "$HOME/.platformio/platforms/espressif32/platform.json" > "platform.json"
mv -f "platform.json" "$HOME/.platformio/platforms/espressif32/platform.json"
else
sed -i 's/https:\/\/github\.com\/espressif\/arduino-esp32\.git/*/' "$HOME/.platformio/platforms/espressif32/platform.json"
fi
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()"

if [ "$GITHUB_REPOSITORY" == "espressif/arduino-esp32" ]; then
echo "Linking Core..."
ln -s $GITHUB_WORKSPACE "$PLATFORMIO_ESP32_PATH"
else
echo "Cloning Core Repository ..."
git clone https://github.com/espressif/arduino-esp32.git "$PLATFORMIO_ESP32_PATH" > /dev/null 2>&1
git clone --recursive https://github.com/espressif/arduino-esp32.git "$PLATFORMIO_ESP32_PATH" > /dev/null 2>&1
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 @@ -71,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 @@ -143,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
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
tools/xtensa-esp32-elf
tools/xtensa-esp32s2-elf
tools/dist
tools/esptool
tools/esptool.exe
Expand All @@ -13,3 +14,5 @@ tools/mkspiffs/mkspiffs.exe
__vm/
*.vcxproj*
.vscode/
platform.sloeber.txt
boards.sloeber.txt
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