-
Notifications
You must be signed in to change notification settings - Fork 215
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ESP32-C6: try out recent AC 3.0-alpha2 with IDE1
- Loading branch information
Showing
1 changed file
with
45 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -75,12 +75,15 @@ jobs: | |
else if [[ "$BOARD" =~ "raspberry" ]]; then | ||
sudo apt-get update ; | ||
sudo apt-get install libsqlite3-dev libasound2-dev libsndfile1-dev ; | ||
else if [[ "$BOARD" =~ "esp32:esp32:esp32c6" ]]; then | ||
wget https://github.com/arduino/arduino-cli/releases/download/${ARDUINO_CLI_VERSION}/arduino-cli_${ARDUINO_CLI_VERSION}_Linux_64bit.tar.gz ; | ||
tar xzf arduino-cli_${ARDUINO_CLI_VERSION}_Linux_64bit.tar.gz arduino-cli ; | ||
rm arduino-cli_${ARDUINO_CLI_VERSION}_Linux_64bit.tar.gz ; | ||
sudo mv arduino-cli /usr/local/bin/ ; | ||
else | ||
else | ||
# AC 3.0-alpha1 needs IDE2 or CLI | ||
#if [[ "$BOARD" =~ "esp32:esp32:esp32c6" ]]; then | ||
# wget https://github.com/arduino/arduino-cli/releases/download/${ARDUINO_CLI_VERSION}/arduino-cli_${ARDUINO_CLI_VERSION}_Linux_64bit.tar.gz ; | ||
# tar xzf arduino-cli_${ARDUINO_CLI_VERSION}_Linux_64bit.tar.gz arduino-cli ; | ||
# rm arduino-cli_${ARDUINO_CLI_VERSION}_Linux_64bit.tar.gz ; | ||
# sudo mv arduino-cli /usr/local/bin/ ; | ||
#else | ||
# AC 3.0-alpha2+ is can work with IDE1 | ||
wget http://downloads.arduino.cc/arduino-$ARDUINO_IDE_VERSION-linux64.tar.xz ; | ||
tar xf arduino-$ARDUINO_IDE_VERSION-linux64.tar.xz ; | ||
rm arduino-$ARDUINO_IDE_VERSION-linux64.tar.xz ; | ||
|
@@ -92,7 +95,7 @@ jobs: | |
pip3 install adafruit-nrfutil --user ; | ||
pip3 install intelhex --user ; | ||
fi | ||
fi | ||
#fi | ||
fi | ||
fi | ||
- name: Run install | ||
|
@@ -183,12 +186,28 @@ jobs: | |
arduino --pref "custom_UploadSpeed=esp32c3_921600" --save-prefs ; | ||
cd $GITHUB_WORKSPACE ; | ||
fi | ||
# AC 3.0-alpha1 needs IDE2 or CLI | ||
#if [[ "$BOARD" =~ "esp32:esp32:esp32c6" ]]; then | ||
# arduino-cli config init ; | ||
# arduino-cli config add board_manager.additional_urls https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_dev_index.json ; | ||
# arduino-cli core update-index ; | ||
# arduino-cli core install esp32:[email protected] ; | ||
# # arduino-cli board attach -b $BOARD ; | ||
# cd $GITHUB_WORKSPACE ; | ||
#fi | ||
# AC 3.0-alpha2+ is can work with IDE1 | ||
if [[ "$BOARD" =~ "esp32:esp32:esp32c6" ]]; then | ||
arduino-cli config init ; | ||
arduino-cli config add board_manager.additional_urls https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_dev_index.json ; | ||
arduino-cli core update-index ; | ||
arduino-cli core install esp32:[email protected] ; | ||
# arduino-cli board attach -b $BOARD ; | ||
arduino --pref "boardsmanager.additional.urls=https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_dev_index.json" --save-prefs ; | ||
arduino --install-boards esp32:esp32:3.0.0-alpha2 ; | ||
arduino --board $BOARD --save-prefs ; | ||
arduino --pref "custom_CPUFreq=esp32c6_80" --save-prefs ; | ||
arduino --pref "custom_DebugLevel=esp32c6_none" --save-prefs ; | ||
arduino --pref "custom_FlashFreq=esp32c6_80" --save-prefs ; | ||
arduino --pref "custom_FlashMode=esp32c6_dio" --save-prefs ; | ||
arduino --pref "custom_FlashSize=esp32c6_4M" --save-prefs ; | ||
arduino --pref "custom_PSRAM=esp32c6_enabled" --save-prefs ; | ||
arduino --pref "custom_PartitionScheme=esp32c6_huge_app" --save-prefs ; | ||
arduino --pref "custom_UploadSpeed=esp32c6_921600" --save-prefs ; | ||
cd $GITHUB_WORKSPACE ; | ||
fi | ||
if [[ "$BOARD" =~ "STM32:stm32:" ]]; then | ||
|
@@ -315,27 +334,29 @@ jobs: | |
if [[ "$BOARD" =~ "esp8266:esp8266:" ]]; then | ||
arduino --verify --board $BOARD $PWD/software/firmware/source/SkyWatch/SkyWatch.ino ; | ||
fi ; | ||
if [[ "$BOARD" =~ "esp32:esp32:esp32c6" ]]; then | ||
arduino-cli compile -v --build-properties upload.maximum_size=2500000 -b "$BOARD" $PWD/software/firmware/source/SoftRF ; | ||
else | ||
# AC 3.0-alpha1 needs IDE2 or CLI | ||
#if [[ "$BOARD" =~ "esp32:esp32:esp32c6" ]]; then | ||
# arduino-cli compile -v --build-properties upload.maximum_size=2500000 -b "$BOARD" $PWD/software/firmware/source/SoftRF ; | ||
#else | ||
# AC 3.0-alpha2+ is can work with IDE1 | ||
if [[ "$BOARD" =~ "esp32:esp32:" ]]; then | ||
arduino --verify --board $BOARD $PWD/software/firmware/source/SoftRF/SoftRF.ino ; | ||
fi ; | ||
fi ; | ||
if [[ "$BOARD" =~ "esp32:esp32:esp32c6" ]]; then | ||
arduino-cli compile -v --build-properties upload.maximum_size=2500000 -b "$BOARD" $PWD/software/firmware/source/SkyView ; | ||
else | ||
#fi ; | ||
#if [[ "$BOARD" =~ "esp32:esp32:esp32c6" ]]; then | ||
# arduino-cli compile -v --build-properties upload.maximum_size=2500000 -b "$BOARD" $PWD/software/firmware/source/SkyView ; | ||
#else | ||
if [[ "$BOARD" =~ "esp32:esp32:" ]]; then | ||
arduino --verify --verbose-build --board $BOARD $PWD/software/firmware/source/SkyView/SkyView.ino ; | ||
fi ; | ||
fi ; | ||
if [[ "$BOARD" =~ "esp32:esp32:esp32c6" ]]; then | ||
arduino-cli compile -v --build-properties upload.maximum_size=2500000 -b "$BOARD" $PWD/software/firmware/source/SkyWatch ; | ||
else | ||
#fi ; | ||
#if [[ "$BOARD" =~ "esp32:esp32:esp32c6" ]]; then | ||
# arduino-cli compile -v --build-properties upload.maximum_size=2500000 -b "$BOARD" $PWD/software/firmware/source/SkyWatch ; | ||
#else | ||
if [[ "$BOARD" =~ "esp32:esp32:" ]]; then | ||
arduino --verify --board $BOARD $PWD/software/firmware/source/SkyWatch/SkyWatch.ino ; | ||
fi ; | ||
fi ; | ||
#fi ; | ||
if [[ "$BOARD" =~ "STM32:stm32:" ]]; then | ||
arduino --verify --verbose-build --board $BOARD $PWD/software/firmware/source/SoftRF/SoftRF.ino ; | ||
fi ; | ||
|