Skip to content
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

[Docs] Documentation migration from RTD to ESP-Docs #8650

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
9238ac9
Merge RTD to ESP-Docs
pedrominatel Sep 18, 2023
bdd9d1c
Documentation CI build changed to ESP-Docs
pedrominatel Sep 19, 2023
58d7bf9
Fix documentation CI build
pedrominatel Sep 19, 2023
11e53c5
Docs build target fix
pedrominatel Sep 19, 2023
e515a6a
Added CI for deploy docs
pedrominatel Sep 19, 2023
7326a41
Fix index.rst title wirh ESP target
pedrominatel Sep 19, 2023
e2f52db
Added versions to JS file and docs as artifact
pedrominatel Sep 25, 2023
f7151e0
Resolving ADC conflict issue
pedrominatel Dec 4, 2023
5f9928c
Merge branch 'master' into docs_migration_to_esp_docs
pedrominatel Dec 7, 2023
f9a5f4b
Merge conflicts resolved in the new docs
pedrominatel Dec 7, 2023
36aaf87
Fixed the path for the ResetReason example
pedrominatel Dec 7, 2023
9c8ebf5
Added new releases to the Arduino versions file
pedrominatel Dec 7, 2023
4b94ead
Fixed the JSON wrong link
pedrominatel Dec 7, 2023
a19317b
Removed the version and target selection for now
pedrominatel Dec 7, 2023
91da8c6
Documentation build and deploy CI changed
pedrominatel Dec 8, 2023
f99d784
Fixed env vars from server side
pedrominatel Dec 8, 2023
9a72b42
Fixed env vars from server side URL base
pedrominatel Dec 8, 2023
b75b6a3
Deploy on preview server
pedrominatel Dec 8, 2023
637c4e9
Deploy on preview server add type var
pedrominatel Dec 8, 2023
2891641
Deploy on preview server - Change the URL
pedrominatel Dec 8, 2023
b997f4c
Deploy on preview server CI changes
pedrominatel Dec 11, 2023
7f5db80
3.0.0-alpha3 escaping fix (#8968)
lyusupov Dec 11, 2023
7cea268
Adding Shared GitHub DangerJS (#8983)
VojtechBartoska Dec 11, 2023
42ed9c0
Update reset_reason.rst (#8982)
SuGlider Dec 11, 2023
8d1a845
Wifi async scan example and fix (#8981)
SuGlider Dec 11, 2023
02b384a
Replace new with malloc for non-class calls (#7868)
mrengineer7777 Dec 13, 2023
c5297bf
fix: Windows runner build skip and exit on error (#8991)
P-R-O-C-H-Y Dec 13, 2023
29cde94
ESPLwIPClient::setTimeout conflict fix with Stream::setTimeout (#6676)
P-R-O-C-H-Y Dec 13, 2023
07fa344
fix: Remove setTimeout (#8998)
P-R-O-C-H-Y Dec 14, 2023
6c919f4
WiFiClients.setConnectionTimeout added (#8863)
JAndrassy Dec 14, 2023
0aefc94
change(senseBox MCU-S2 ESP32-S2): Remove analog bit resolution change…
bkari02 Dec 14, 2023
71b1d76
Fixes Malloc (#9012)
SuGlider Dec 18, 2023
44f83b0
Add v6 support to IPAddress to match ArduinoCore-API (#7174)
sgryphon Dec 18, 2023
d912710
DNSServer refactoring, switch to AsyncUDP (#7482)
vortigont Dec 18, 2023
c7a109b
feat: add functions to enable/disable GPIOs interrupt (#9025)
P-R-O-C-H-Y Dec 19, 2023
e9ee9c1
Improve Log Messages in GPIO HAL (#9011)
SuGlider Dec 19, 2023
ad4f0ac
Revert "WiFiSTA - allow using DHCP again after disconnecting static I…
JAndrassy Dec 20, 2023
9d0274b
Pin fixes for the Camera board (#9021)
ladyada Dec 20, 2023
edf5ecf
Fixes ESP32-S2 CDC Debug Logging (#7284)
SuGlider Dec 20, 2023
5d97e02
undeprecate available() (#9027)
SuGlider Dec 20, 2023
812a59a
Added example to demonstrate using HardwareSerial with RS485 interfac…
econeale Dec 20, 2023
f6e12eb
fix(core): fixed String::lastIndexOf bug (#9003)
a1ext Dec 20, 2023
4d469c8
Added missing identifiers in esp_vfs_littlefs_conf_t (#9046)
lbernstone Dec 28, 2023
b2e7338
SD library: Fix format (#9034)
prplz Dec 28, 2023
73dd8a2
Fixes EspClass::deepSleep(64 bits) (#9077)
SuGlider Jan 8, 2024
c040f95
sd_diskio.cpp: return 0 instead of false when return type != bool (#9…
everslick Jan 8, 2024
6c5b54e
Bump tj-actions/changed-files from 36 to 41 in /.github/workflows (#9…
dependabot[bot] Jan 8, 2024
53aa8c8
ESP32-S3 PowerFeather Fixes (#9052)
powerfeatherdev Jan 8, 2024
8a1e463
LEDC - Allow custom channel selection (#9031)
P-R-O-C-H-Y Jan 8, 2024
c1a4055
change(esp32): Added clearing of queue with unTone() (#9055)
tanakamasayuki Jan 8, 2024
21c710c
Docs deploy CI updated for production deployment
pedrominatel Jan 12, 2024
e4714fc
Merge RTD to ESP-Docs
pedrominatel Sep 18, 2023
83e4916
Documentation CI build changed to ESP-Docs
pedrominatel Sep 19, 2023
ddcc9c6
Fix documentation CI build
pedrominatel Sep 19, 2023
0d61c1a
Docs build target fix
pedrominatel Sep 19, 2023
a3d05da
Added CI for deploy docs
pedrominatel Sep 19, 2023
43e057b
Fix index.rst title wirh ESP target
pedrominatel Sep 19, 2023
ee5a626
Added versions to JS file and docs as artifact
pedrominatel Sep 25, 2023
984d499
Merge conflicts resolved in the new docs
pedrominatel Dec 7, 2023
8ef25bf
Added new releases to the Arduino versions file
pedrominatel Dec 7, 2023
78e0262
Fixed the JSON wrong link
pedrominatel Dec 7, 2023
9d35721
Removed the version and target selection for now
pedrominatel Dec 7, 2023
1bf5b2b
Documentation build and deploy CI changed
pedrominatel Dec 8, 2023
a58bca1
Fixed env vars from server side
pedrominatel Dec 8, 2023
ee3a17e
Fixed env vars from server side URL base
pedrominatel Dec 8, 2023
f46c8ef
Deploy on preview server
pedrominatel Dec 8, 2023
fa97d34
Deploy on preview server add type var
pedrominatel Dec 8, 2023
f0bc041
Deploy on preview server - Change the URL
pedrominatel Dec 8, 2023
ba0335c
Deploy on preview server CI changes
pedrominatel Dec 11, 2023
46d6a41
Docs deploy CI updated for production deployment
pedrominatel Jan 12, 2024
ad14009
Merge remote-tracking branch 'origin/docs_migration_to_esp_docs' into…
pedrominatel Jan 12, 2024
73d5027
Merge issue on the filename fixed
pedrominatel Jan 12, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 6 additions & 12 deletions .github/scripts/on-push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,22 +73,16 @@ if [ "$BUILD_PIO" -eq 0 ]; then

SKETCHES_ESP32="\
$ARDUINO_ESP32_PATH/libraries/WiFiClientSecure/examples/WiFiClientSecure/WiFiClientSecure.ino\
$ARDUINO_ESP32_PATH/libraries/BLE/examples/BLE_server/BLE_server.ino\
$ARDUINO_ESP32_PATH/libraries/BLE/examples/Server/Server.ino\
$ARDUINO_ESP32_PATH/libraries/ESP32/examples/Camera/CameraWebServer/CameraWebServer.ino\
$ARDUINO_ESP32_PATH/libraries/Insights/examples/MinimalDiagnostics/MinimalDiagnostics.ino\
"

SKETCHES_ESP32XX="\
$ARDUINO_ESP32_PATH/libraries/WiFiClientSecure/examples/WiFiClientSecure/WiFiClientSecure.ino\
$ARDUINO_ESP32_PATH/libraries/WiFi/examples/WiFiClient/WiFiClient.ino\
$ARDUINO_ESP32_PATH/libraries/Insights/examples/MinimalDiagnostics/MinimalDiagnostics.ino\
"

build "esp32s3" $FQBN_ESP32S3 $CHUNK_INDEX $CHUNKS_CNT $SKETCHES_ESP32
build "esp32s2" $FQBN_ESP32S2 $CHUNK_INDEX $CHUNKS_CNT $SKETCHES_ESP32XX
build "esp32c3" $FQBN_ESP32C3 $CHUNK_INDEX $CHUNKS_CNT $SKETCHES_ESP32XX
build "esp32c6" $FQBN_ESP32C6 $CHUNK_INDEX $CHUNKS_CNT $SKETCHES_ESP32XX
build "esp32h2" $FQBN_ESP32H2 $CHUNK_INDEX $CHUNKS_CNT $SKETCHES_ESP32XX
build "esp32s2" $FQBN_ESP32S2 $CHUNK_INDEX $CHUNKS_CNT $SKETCHES_ESP32
build "esp32c3" $FQBN_ESP32C3 $CHUNK_INDEX $CHUNKS_CNT $SKETCHES_ESP32
build "esp32c6" $FQBN_ESP32C6 $CHUNK_INDEX $CHUNKS_CNT $SKETCHES_ESP32
build "esp32h2" $FQBN_ESP32H2 $CHUNK_INDEX $CHUNKS_CNT $SKETCHES_ESP32
build "esp32" $FQBN_ESP32 $CHUNK_INDEX $CHUNKS_CNT $SKETCHES_ESP32
else
source ${SCRIPTS_DIR}/install-platformio-esp32.sh
Expand All @@ -98,7 +92,7 @@ else
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/BLE/examples/Server/Server.ino" && \
build_pio_sketch "$BOARD" "$OPTIONS" "$PLATFORMIO_ESP32_PATH/libraries/ESP32/examples/Camera/CameraWebServer/CameraWebServer.ino"

# Basic sanity testing for other series
Expand Down
16 changes: 16 additions & 0 deletions .github/scripts/sketch_utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,11 @@ function build_sketch(){ # build_sketch <ide_path> <user_path> <path-to-ino> [ex
# of configuration built in case of a multiconfiguration test.

sketchname=$(basename $sketchdir)

if [[ -n $target ]] && [[ -f "$sketchdir/.skip.$target" ]]; then
echo "Skipping $sketchname for target $target"
exit 0
fi

ARDUINO_CACHE_DIR="$HOME/.arduino/cache.tmp"
if [ -n "$ARDUINO_BUILD_DIR" ]; then
Expand Down Expand Up @@ -159,6 +164,12 @@ function build_sketch(){ # build_sketch <ide_path> <user_path> <path-to-ino> [ex
--build-cache-path "$ARDUINO_CACHE_DIR" \
--build-path "$build_dir" \
$xtra_opts "${sketchdir}"

exit_status=$?
if [ $exit_status -ne 0 ]; then
echo ""ERROR: Compilation failed with error code $exit_status""
exit $exit_status
fi
elif [ -f "$ide_path/arduino-builder" ]; then
echo "Building $sketchname with arduino-builder and FQBN=$currfqbn"
echo "Build path = $build_dir"
Expand All @@ -173,6 +184,11 @@ function build_sketch(){ # build_sketch <ide_path> <user_path> <path-to-ino> [ex
-build-path "$build_dir" \
$xtra_opts "${sketchdir}/${sketchname}.ino"

exit_status=$?
if [ $exit_status -ne 0 ]; then
echo ""ERROR: Compilation failed with error code $exit_status""
exit $exit_status
fi
# $ide_path/arduino-builder -compile -logger=human -core-api-version=10810 \
# -fqbn=\"$currfqbn\" \
# -warnings="all" \
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build_py_tools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
fetch-depth: 2
ref: ${{ github.event.pull_request.head.ref }}
- name: Verify Python Tools Changed
uses: tj-actions/changed-files@v36
uses: tj-actions/changed-files@v41
id: verify-changed-files
with:
fetch_depth: '2'
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/dangerjs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: DangerJS Pull Request linter
on:
pull_request_target:
types: [opened, edited, reopened, synchronize]

permissions:
pull-requests: write
contents: write

jobs:
pull-request-style-linter:
runs-on: ubuntu-latest
steps:
- name: Check out PR head
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}

- name: DangerJS pull request linter
uses: espressif/shared-github-dangerjs@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21 changes: 10 additions & 11 deletions .github/workflows/docs.yml → .github/workflows/docs_build.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
name: ReadTheDocs CI
name: Documentation Build and Deploy CI

on:
push:
branches:
- master
- release/*
paths:
- 'docs/**'
- '.github/workflows/docs.yml'
pull_request:
paths:
- 'docs/**'
Expand All @@ -16,7 +9,7 @@ on:
jobs:

build-docs:
name: Build ReadTheDocs
name: Build Documentation
runs-on: ubuntu-22.04
defaults:
run:
Expand All @@ -34,5 +27,11 @@ jobs:
sudo apt install python3-pip python3-setuptools
# GitHub CI installs pip3 and setuptools outside the path.
# Update the path to include them and run.
PATH=/home/runner/.local/bin:$PATH pip3 install --user -r ./docs/requirements.txt
cd ./docs && PATH=/home/runner/.local/bin:$PATH SPHINXOPTS="-W" make html
cd ./docs
PATH=/home/runner/.local/bin:$PATH pip3 install -r requirements.txt --prefer-binary
PATH=/home/runner/.local/bin:$PATH SPHINXOPTS="-W" build-docs -l en
- name: Archive Docs
uses: actions/upload-artifact@v2
with:
name: docs
path: docs
46 changes: 46 additions & 0 deletions .github/workflows/docs_deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Documentation Build and Deploy Production CI

on:
push:
branches:
- release/*
paths:
- 'docs/**'
- '.github/workflows/docs.yml'

jobs:

deploy-prod-docs:
name: Deploy Documentation Production
runs-on: ubuntu-22.04
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v2
with:
submodules: true
- uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Deploy Preview
env:
# Deploy to production server
DOCS_BUILD_DIR: "${CI_PROJECT_DIR}/docs/_build/"
DOCS_DEPLOY_PRIVATEKEY: ${{ secrets.DOCS_PROD_PRIVATEKEY }}
DOCS_DEPLOY_PATH: ${{ secrets.DOCS_PROD_PATH }}
DOCS_DEPLOY_SERVER: ${{ secrets.DOCS_PROD_SERVER }}
DOCS_DEPLOY_URL_BASE: ${{ secrets.DOCS_PROD_URL_BASE }}
DOCS_DEPLOY_SERVER_USER: ${{ secrets.DOCS_PROD_USER }}
run: |
sudo apt update
sudo apt install python3-pip python3-setuptools
source ./docs/utils.sh
add_doc_server_ssh_keys $DOCS_DEPLOY_PRIVATEKEY $DOCS_DEPLOY_SERVER $DOCS_DEPLOY_SERVER_USER
export GIT_VER=$(git describe --always)
echo "PIP install requirements..."
pip3 install --user -r ./docs/requirements.txt
echo "Building the Docs..."
cd ./docs && build-docs -l en
echo "Deploy the Docs..."
deploy-docs
46 changes: 46 additions & 0 deletions .github/workflows/docs_preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Documentation Build and Deploy CI

on:
push:
branches:
- master
paths:
- 'docs/**'
- '.github/workflows/docs.yml'

jobs:

deploy-preview-docs:
name: Deploy Documentation Preview
runs-on: ubuntu-22.04
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v3
with:
submodules: true
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Deploy Preview
env:
# Deploy to preview server
DOCS_BUILD_DIR: "${CI_PROJECT_DIR}/docs/_build/"
DOCS_DEPLOY_PRIVATEKEY: ${{ secrets.DOCS_KEY }}
DOCS_DEPLOY_PATH: ${{ secrets.DOCS_PATH }}
DOCS_DEPLOY_SERVER: ${{ secrets.DOCS_SERVER }}
DOCS_DEPLOY_URL_BASE: ${{ secrets.DOCS_URL }}
DOCS_DEPLOY_SERVER_USER: ${{ secrets.DOCS_USER }}
run: |
sudo apt update
sudo apt install python3-pip python3-setuptools
source ./docs/utils.sh
add_doc_server_ssh_keys $DOCS_DEPLOY_PRIVATEKEY $DOCS_DEPLOY_SERVER $DOCS_DEPLOY_SERVER_USER
export GIT_VER=$(git describe --always)
echo "PIP install requirements..."
pip3 install --user -r ./docs/requirements.txt
echo "Building the Docs..."
cd ./docs && build-docs -l en
echo "Deploy the Docs..."
deploy-docs
2 changes: 1 addition & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ build:

# Build documentation in the docs/ directory with Sphinx
sphinx:
configuration: docs/source/conf.py
configuration: docs/en/conf.py

python:
install:
Expand Down
45 changes: 14 additions & 31 deletions boards.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29364,7 +29364,7 @@ esp32s3_powerfeather.build.variant=esp32s3_powerfeather
esp32s3_powerfeather.build.board=ESP32S3_POWERFEATHER

esp32s3_powerfeather.build.usb_mode=1
esp32s3_powerfeather.build.cdc_on_boot=0
esp32s3_powerfeather.build.cdc_on_boot=1
esp32s3_powerfeather.build.msc_on_boot=0
esp32s3_powerfeather.build.dfu_on_boot=0
esp32s3_powerfeather.build.f_cpu=240000000L
Expand All @@ -29377,8 +29377,9 @@ esp32s3_powerfeather.build.partitions=default_8MB
esp32s3_powerfeather.build.defines=
esp32s3_powerfeather.build.loop_core=
esp32s3_powerfeather.build.event_core=
esp32s3_powerfeather.build.flash_type=qio
esp32s3_powerfeather.build.psram_type=qspi
esp32s3_powerfeather.build.memory_type={build.boot}_{build.psram_type}
esp32s3_powerfeather.build.memory_type={build.flash_type}_{build.psram_type}

esp32s3_powerfeather.menu.PSRAM.disabled=Disabled
esp32s3_powerfeather.menu.PSRAM.disabled.build.defines=
Expand Down Expand Up @@ -29418,10 +29419,10 @@ esp32s3_powerfeather.menu.USBMode.hwcdc.build.usb_mode=1
esp32s3_powerfeather.menu.USBMode.default=USB-OTG (TinyUSB)
esp32s3_powerfeather.menu.USBMode.default.build.usb_mode=0

esp32s3_powerfeather.menu.CDCOnBoot.default=Disabled
esp32s3_powerfeather.menu.CDCOnBoot.default.build.cdc_on_boot=0
esp32s3_powerfeather.menu.CDCOnBoot.cdc=Enabled
esp32s3_powerfeather.menu.CDCOnBoot.cdc.build.cdc_on_boot=1
esp32s3_powerfeather.menu.CDCOnBoot.default=Disabled
esp32s3_powerfeather.menu.CDCOnBoot.default.build.cdc_on_boot=0

esp32s3_powerfeather.menu.MSCOnBoot.default=Disabled
esp32s3_powerfeather.menu.MSCOnBoot.default.build.msc_on_boot=0
Expand All @@ -29440,39 +29441,21 @@ esp32s3_powerfeather.menu.UploadMode.cdc=USB-OTG CDC (TinyUSB)
esp32s3_powerfeather.menu.UploadMode.cdc.upload.use_1200bps_touch=true
esp32s3_powerfeather.menu.UploadMode.cdc.upload.wait_for_upload_port=true

esp32s3_powerfeather.menu.PartitionScheme.default=Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS)
esp32s3_powerfeather.menu.PartitionScheme.default.build.partitions=default
esp32s3_powerfeather.menu.PartitionScheme.defaultffat=Default 4MB with ffat (1.2MB APP/1.5MB FATFS)
esp32s3_powerfeather.menu.PartitionScheme.defaultffat.build.partitions=default_ffat
esp32s3_powerfeather.menu.PartitionScheme.default_8MB=8M with spiffs (3MB APP/1.5MB SPIFFS)
esp32s3_powerfeather.menu.PartitionScheme.default_8MB.build.partitions=default_8MB
esp32s3_powerfeather.menu.PartitionScheme.default_8MB.upload.maximum_size=3342336
esp32s3_powerfeather.menu.PartitionScheme.minimal=Minimal (1.3MB APP/700KB SPIFFS)
esp32s3_powerfeather.menu.PartitionScheme.minimal.build.partitions=minimal
esp32s3_powerfeather.menu.PartitionScheme.no_ota=No OTA (2MB APP/2MB SPIFFS)
esp32s3_powerfeather.menu.PartitionScheme.no_ota.build.partitions=no_ota
esp32s3_powerfeather.menu.PartitionScheme.no_ota.upload.maximum_size=2097152
esp32s3_powerfeather.menu.PartitionScheme.noota_3g=No OTA (1MB APP/3MB SPIFFS)
esp32s3_powerfeather.menu.PartitionScheme.noota_3g.build.partitions=noota_3g
esp32s3_powerfeather.menu.PartitionScheme.noota_3g.upload.maximum_size=1048576
esp32s3_powerfeather.menu.PartitionScheme.noota_ffat=No OTA (2MB APP/2MB FATFS)
esp32s3_powerfeather.menu.PartitionScheme.noota_ffat.build.partitions=noota_ffat
esp32s3_powerfeather.menu.PartitionScheme.noota_ffat.upload.maximum_size=2097152
esp32s3_powerfeather.menu.PartitionScheme.noota_3gffat=No OTA (1MB APP/3MB FATFS)
esp32s3_powerfeather.menu.PartitionScheme.noota_3gffat.build.partitions=noota_3gffat
esp32s3_powerfeather.menu.PartitionScheme.noota_3gffat.upload.maximum_size=1048576
esp32s3_powerfeather.menu.PartitionScheme.huge_app=Huge APP (3MB No OTA/1MB SPIFFS)
esp32s3_powerfeather.menu.PartitionScheme.huge_app.build.partitions=huge_app
esp32s3_powerfeather.menu.PartitionScheme.huge_app.upload.maximum_size=3145728
esp32s3_powerfeather.menu.PartitionScheme.min_spiffs=Minimal SPIFFS (1.9MB APP with OTA/190KB SPIFFS)
esp32s3_powerfeather.menu.PartitionScheme.min_spiffs.build.partitions=min_spiffs
esp32s3_powerfeather.menu.PartitionScheme.min_spiffs.upload.maximum_size=1966080
esp32s3_powerfeather.menu.PartitionScheme.default_ffat_8MB=8M with ffat (3MB APP/1.5MB FATFS)
esp32s3_powerfeather.menu.PartitionScheme.default_ffat_8MB.build.partitions=default_ffat_8MB
esp32s3_powerfeather.menu.PartitionScheme.default_ffat_8MB.upload.maximum_size=3342336
esp32s3_powerfeather.menu.PartitionScheme.large_spiffs_8MB=Large SPIFFS (1.2MB APP/5.3MB SPIFFS)
esp32s3_powerfeather.menu.PartitionScheme.large_spiffs_8MB.build.partitions=large_spiffs_8MB
esp32s3_powerfeather.menu.PartitionScheme.large_spiffs_8MB.upload.maximum_size=1310720
esp32s3_powerfeather.menu.PartitionScheme.large_ffat_8MB=Large FFAT (1.2MB APP/5.3MB FATFS)
esp32s3_powerfeather.menu.PartitionScheme.large_ffat_8MB.build.partitions=large_ffat_8MB
esp32s3_powerfeather.menu.PartitionScheme.large_ffat_8MB.upload.maximum_size=1310720
esp32s3_powerfeather.menu.PartitionScheme.max_app_8MB=Maximum APP (7.9MB APP No OTA/No FS)
esp32s3_powerfeather.menu.PartitionScheme.max_app_8MB.build.partitions=max_app_8MB
esp32s3_powerfeather.menu.PartitionScheme.max_app_8MB.upload.maximum_size=8257536
esp32s3_powerfeather.menu.PartitionScheme.rainmaker=RainMaker
esp32s3_powerfeather.menu.PartitionScheme.rainmaker.build.partitions=rainmaker
esp32s3_powerfeather.menu.PartitionScheme.rainmaker.upload.maximum_size=3145728

esp32s3_powerfeather.menu.CPUFreq.240=240MHz (WiFi)
esp32s3_powerfeather.menu.CPUFreq.240.build.f_cpu=240000000L
Expand Down
21 changes: 11 additions & 10 deletions cores/esp32/Esp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ unsigned long long operator"" _GB(unsigned long long x)

EspClass ESP;

void EspClass::deepSleep(uint32_t time_us)
void EspClass::deepSleep(uint64_t time_us)
{
esp_deep_sleep(time_us);
}
Expand Down Expand Up @@ -225,30 +225,31 @@ String EspClass::getSketchMD5()
const esp_partition_t *running = esp_ota_get_running_partition();
if (!running) {
log_e("Partition could not be found");

return String();
}

const size_t bufSize = SPI_FLASH_SEC_SIZE;
std::unique_ptr<uint8_t[]> buf(new uint8_t[bufSize]);
uint32_t offset = 0;
if(!buf.get()) {
uint8_t *pb = (uint8_t *)malloc(bufSize);
if(!pb) {
log_e("Not enough memory to allocate buffer");

return String();
}
uint32_t offset = 0;

MD5Builder md5;
md5.begin();
while( lengthLeft > 0) {
while(lengthLeft > 0) {
size_t readBytes = (lengthLeft < bufSize) ? lengthLeft : bufSize;
if (!ESP.flashRead(running->address + offset, reinterpret_cast<uint32_t*>(buf.get()), (readBytes + 3) & ~3)) {
if (!ESP.flashRead(running->address + offset, (uint32_t *)pb, (readBytes + 3) & ~3)) {
free(pb);
log_e("Could not read buffer from flash");

return String();
}
md5.add(buf.get(), readBytes);
md5.add(pb, readBytes);
lengthLeft -= readBytes;
offset += readBytes;
}
free(pb);
md5.calculate();
result = md5.toString();
return result;
Expand Down
2 changes: 1 addition & 1 deletion cores/esp32/Esp.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class EspClass
const char * getSdkVersion(); //version of ESP-IDF
const char * getCoreVersion();//version of this core

void deepSleep(uint32_t time_us);
void deepSleep(uint64_t time_us);

uint32_t getFlashChipSize();
uint32_t getFlashChipSpeed();
Expand Down
Loading
Loading