Skip to content

Commit

Permalink
Rename board to ESP32S3-N16R8
Browse files Browse the repository at this point in the history
  • Loading branch information
Slider0007 committed Sep 27, 2024
1 parent a531796 commit 73b0341
Show file tree
Hide file tree
Showing 13 changed files with 27 additions and 320 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
plat:
- esp32cam
- xiao-esp32s3-sense
- freenove-esp32s3
- freenove-esp32s3-n16r8
steps:
- name: Checkout branch
if: ${{ ! needs.prepare-release.outputs.release_created }}
Expand Down Expand Up @@ -228,7 +228,7 @@ jobs:
plat:
- esp32cam
- xiao-esp32s3-sense
- freenove-esp32s3
- freenove-esp32s3-n16r8

# Sets permissions of the GITHUB_TOKEN to allow downloading artifacts
permissions:
Expand All @@ -255,16 +255,16 @@ jobs:
rm -rf release
mkdir -p release
cd "AI-on-the-edge-device__update__${{ matrix.plat }}__SLFork_${{ steps.vars.outputs.branch }}_(${{ steps.vars.outputs.sha_short }})"
zip -r ../release/${{ matrix.plat }}/AI-on-the-edge-device__update__${{ matrix.plat }}__SLFork_v${{ needs.prepare-release.outputs.version }}.zip *
zip -r ../release/AI-on-the-edge-device__update__${{ matrix.plat }}__SLFork_v${{ needs.prepare-release.outputs.version }}.zip *
cd ..
cd "AI-on-the-edge-device__manual-setup__${{ matrix.plat }}__SLFork_${{ steps.vars.outputs.branch }}_(${{ steps.vars.outputs.sha_short }})"
zip -r ../release/${{ matrix.plat }}/AI-on-the-edge-device__manual-setup__${{ matrix.plat }}__SLFork_v${{ needs.prepare-release.outputs.version }}.zip *
zip -r ../release/AI-on-the-edge-device__manual-setup__${{ matrix.plat }}__SLFork_v${{ needs.prepare-release.outputs.version }}.zip *
cd ..
cd "AI-on-the-edge-device__remote-setup__${{ matrix.plat }}__SLFork_${{ steps.vars.outputs.branch }}_(${{ steps.vars.outputs.sha_short }})"
zip -r ../release/${{ matrix.plat }}/AI-on-the-edge-device__remote-setup__${{ matrix.plat }}__SLFork_v${{ needs.prepare-release.outputs.version }}.zip *
zip -r ../release/AI-on-the-edge-device__remote-setup__${{ matrix.plat }}__SLFork_v${{ needs.prepare-release.outputs.version }}.zip *
cd ..
cd "AI-on-the-edge-device__debug-files__${{ matrix.plat }}__SLFork_${{ steps.vars.outputs.branch }}_(${{ steps.vars.outputs.sha_short }})"
zip -r ../release/${{ matrix.plat }}/AI-on-the-edge-device__debug-files__${{ matrix.plat }}__SLFork_v${{ needs.prepare-release.outputs.version }}.zip *
zip -r ../release/AI-on-the-edge-device__debug-files__${{ matrix.plat }}__SLFork_v${{ needs.prepare-release.outputs.version }}.zip *
cd ..
- name: Upload artifacts to release tag
Expand Down
22 changes: 15 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,18 @@ As a result, you get the digitized value of your meter. There are several option


## Supported Hardware
### Board

| Board Type | SOC | Firmware Release | Remarks
|:--- |:--- |:--- |:---
| [ESP32-CAM](http://www.ai-thinker.com/pro_view-24.html) | ESP32 | All | - Only boards with >4MB RAM are supported<br>- Beware of inferior quality Chinese clones
| [XIAO ESP32 Sense](https://www.seeedstudio.com/XIAO-ESP32S3-Sense-p-5639.html) | ESP32S3 | $\ge$ v17.0.0 |- No onboard illumination: Separate illumination (PWM controlable LED / Intelligent LED) necessary<br>- Running quite hot, small heat sink recommended
|:--- |:--- |:--- |:---
| [ESP32-CAM](http://www.ai-thinker.com/pro_view-24.html) | ESP32 | All | - Only boards with >4MB RAM are supported<br>- Beware of inferior quality Chinese clones
| [XIAO ESP32 Sense](https://www.seeedstudio.com/XIAO-ESP32S3-Sense-p-5639.html) | ESP32S3 | $\ge$ v17.0.0 |- No onboard illumination: Separate illumination (PWM controlable LED / Intelligent LED) necessary<br>- Running quite hot, small heat sink recommended
| [Freenove ESP32S3 WROOM](https://github.com/Freenove/Freenove_ESP32_S3_WROOM_Board) | ESP32S3 | $\ge$ v17.0.0 |- SOC and pin compatible Chinese clones supported

### Camera
| Camera Type | Resolution | Firmware Release | Remarks
|:--- |:--- |:--- |:---
| [OV2640](https://www.arducam.com/ov2640/) | 2MP (max. 1600x1200) | All | - Officially EOL since 2009, but still very popular<br>- Pin and function compatible Chinese clones are supported


## Device Installation
Expand All @@ -68,8 +76,8 @@ A possibly already available development version (upcoming release version) can

### 3. Install MCU Part Of Firmware
Initially the MCU of the device has to be flashed via a direct USB connection. Further updates can be performed directly over the air (OTA). <br>
For initial installation, use content of `AI-on-the-edge-device__manual-setup__{Board Type}__*.zip`.<br>
NOTE: OTA updates will be performed with `AI-on-the-edge-device__update__{Board Type}__*.zip` package.
For initial installation, use content of `AI-on-the-edge-device__manual-setup__{board type}__*.zip`.<br>
NOTE: OTA updates will be performed with `AI-on-the-edge-device__update__{board type}__*.zip` package.

<b>IMPORTANT:</b> Make sure to use correct firmware package for your board type.

Expand All @@ -81,9 +89,9 @@ See [documentation](https://jomjol.github.io/AI-on-the-edge-device-docs/Installa
Note: Installation using web installer is not supported by this forked repo.

### 4. Install SD Card Content
The SD card can be setup using the device's local WLAN hotspot after the MCU firmware got successfully installed (`AI-on-the-edge-device__remote-setup__*.zip`). See the
The SD card can be setup using the device's local WLAN hotspot after the MCU firmware got successfully installed (`AI-on-the-edge-device__remote-setup__{board type}__*.zip`). See the
[documentation](https://jomjol.github.io/AI-on-the-edge-device-docs/Installation/#remote-setup-using-the-built-in-access-point) for details. For this to work, the SD card must be FAT formated (which is the default on a new SD card).<br>
Alternatively the SD card still can be setup manually without using hotspot, see the [documentation](https://jomjol.github.io/AI-on-the-edge-device-docs/Installation/#3-sd-card) for details (`AI-on-the-edge-device__manual-setup__*.zip`).
Alternatively the SD card still can be setup manually without using hotspot, see the [documentation](https://jomjol.github.io/AI-on-the-edge-device-docs/Installation/#3-sd-card) for details (`AI-on-the-edge-device__manual-setup__{board type}__*.zip`).

⚠️ Do not use github source files in any case, use only release related zip package. Otherwise functionality cannot be fully guaranteed!

Expand Down
7 changes: 1 addition & 6 deletions code/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,5 @@
version.cpp
dependencies.lock
sdkconfig.esp32cam
sdkconfig.esp32cam-debug
sdkconfig.esp32cam-himem
sdkconfig.esp32cam-task-analysis
sdkconfig.esp32cam-localbuild
sdkconfig.xiao-esp32s3-sense
sdkconfig.xiao-esp32s3-sense-debug
sdkconfig.xiao-esp32s3-sense-task-analysis
sdkconfig.freenove-esp32s3-n16r8
2 changes: 1 addition & 1 deletion code/include/defines.h
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ CONFIG_WPA_11R_SUPPORT=n

#elif ENV_BOARD_TYPE == 3
#define BOARD_FREENOVE_ESP32S3
#define BOARD_TYPE_NAME "Freenove-ESP32S3" // Keep Board type equal to main board environment name.
#define BOARD_TYPE_NAME "Freenove-ESP32S3-N16R8"// Keep Board type equal to main board environment name.
// This is used for OTA update package verification (converted to lower case)
#else
#error "Board type (ENV_BOARD_TYPE) not defined"
Expand Down
156 changes: 4 additions & 152 deletions code/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -92,67 +92,6 @@ build_flags =
-D ENV_BOARD_TYPE=1
-D ENV_CAMERA_MODEL=1

; +++++++++++++++++++++++++++++++++++++++++++
; Use this environment for task analysis (PR #1751)
; +++++++++++++++++++++++++++++++++++++++++++
[env:esp32cam-task-analysis]
extends = env:esp32cam
; sdkconfig.esp32cam-task-analysis.defaults override some sdkconfig.defaults
; and enable debug analysis options
build_flags =
; ### Hardware: Define board type + camera model
; ### (see 'include/defines.h' for definitions)
-D ENV_BOARD_TYPE=1
-D ENV_CAMERA_MODEL=1
; ### Debug options :
-D TASK_ANALYSIS_ON
;-D DEBUG_DETAIL_ON
;please use only one HEAP tracing at time.
;-D HEAP_TRACING_MAIN_WIFI
;-D HEAP_TRACING_MAIN_START
;-D HEAP_TRACING_CLASS_FLOW_CNN_GENERAL_DO_ALING_AND_CUT


; +++++++++++++++++++++++++++++++++++++++++++
; Use this environment for detailed and deep debugging
; (default debugging is already possible with default environment)
; +++++++++++++++++++++++++++++++++++++++++++
[env:esp32cam-debug]
extends = env:esp32cam
; sdkconfig.esp32cam-debug.defaults override some sdkconfig.defaults
; and enable debug options and clangtidy
build_flags =
; ### clangtidy build flags:
${flags:clangtidy.build_flags}
; ### Hardware: Define board type + camera model
; ### (see 'include/defines.h' for definitions)
-D ENV_BOARD_TYPE=1
-D ENV_CAMERA_MODEL=1
; ### Debug options :
-D DEBUG_DETAIL_ON
;-D DEBUG_DISABLE_BROWNOUT_DETECTOR
;-D DEBUG_ENABLE_PERFMON
;-D DEBUG_HIMEM_MEMORY_CHECK
lib_ldf_mode = deep+


; +++++++++++++++++++++++++++++++++++++++++++
; Enable HIMEM support (8 MB SPIRAM boards)
; !!! RAM usage in HIMEM is not supported by firmware up to now !!!
; https://github.com/espressif/esp-idf/blob/master/examples/system/himem/README.md
; +++++++++++++++++++++++++++++++++++++++++++
[env:esp32cam-himem]
extends = env:esp32cam
; sdkconfig.esp32cam-dev-himem.defaults override some sdkconfig.defaults
build_flags =
; ### Hardware: Define board type + camera model
; ### (see 'include/defines.h' for definitions)
-D ENV_BOARD_TYPE=1
-D ENV_CAMERA_MODEL=1
; ### Debug options :
;-D DEBUG_HIMEM_MEMORY_CHECK



; #############################################################################
; Board
Expand Down Expand Up @@ -199,56 +138,12 @@ build_flags =
-D ENV_BOARD_TYPE=2
-D ENV_CAMERA_MODEL=2

; +++++++++++++++++++++++++++++++++++++++++++
; Use this environment for task analysis (PR #1751)
; +++++++++++++++++++++++++++++++++++++++++++
[env:xiao-esp32s3-sense-task-analysis]
extends = env:xiao-esp32s3-sense
; sdkconfig.xiao-esp32s3-sense-task-analysis.defaults override some sdkconfig.defaults
; and enable debug analysis options
build_flags =
; ### Hardware: Define board type + camera model
; ### (see 'include/defines.h' for definitions)
-D ENV_BOARD_TYPE=2
-D ENV_CAMERA_MODEL=2
; ### Debug options :
-D TASK_ANALYSIS_ON
;-D DEBUG_DETAIL_ON
;please use only one HEAP tracing at time.
;-D HEAP_TRACING_MAIN_WIFI
;-D HEAP_TRACING_MAIN_START
;-D HEAP_TRACING_CLASS_FLOW_CNN_GENERAL_DO_ALING_AND_CUT


; +++++++++++++++++++++++++++++++++++++++++++
; Use this environment for detailed and deep debugging
; (default debugging is already possible with default environment)
; +++++++++++++++++++++++++++++++++++++++++++
[env:xiao-esp32s3-sense-debug]
extends = env:xiao-esp32s3-sense
; sdkconfig.xiao-esp32s3-sense-debug.defaults override some sdkconfig.defaults
; and enable debug options and clangtidy
build_flags =
; ### clangtidy build flags:
${flags:clangtidy.build_flags}
; ### Hardware: Define board type + camera model
; ### (see 'include/defines.h' for definitions)
-D ENV_BOARD_TYPE=2
-D ENV_CAMERA_MODEL=2
; ### Debug options :
-D DEBUG_DETAIL_ON
;-D DEBUG_DISABLE_BROWNOUT_DETECTOR
;-D DEBUG_ENABLE_PERFMON
;-D DEBUG_HIMEM_MEMORY_CHECK
lib_ldf_mode = deep+



; #############################################################################
; Board
; FREENOVE ESP32S3-WROOM-1-N16R8 (and compatible)
; Freenove ESP32S3-WROOM-1-N16R8 (Freenove pin compatible clones)
; #############################################################################
[env:freenove-esp32s3]
[env:freenove-esp32s3-n16r8]
extends = common:esp32-idf
board = 4d_systems_esp32s3_gen4_r8n16
framework = espidf
Expand Down Expand Up @@ -276,8 +171,8 @@ monitor_filters = default, esp32_exception_decoder
; Include parameter tooltips to HTML parameter config file
; and hash to HTML files (caching)
; +++++++++++++++++++++++++++++++++++++++++++
[env:freenove-esp32s3-localbuild]
extends = env:freenove-esp32s3
[env:freenove-esp32s3-n16r8-localbuild]
extends = env:freenove-esp32s3-n16r8
extra_scripts = post:scripts/localbuild.py # Add parameter tooltips to HTML page
# and hashes to all cached HTML files
build_flags =
Expand All @@ -288,46 +183,3 @@ build_flags =
; ### (see 'include/defines.h' for definitions)
-D ENV_BOARD_TYPE=3
-D ENV_CAMERA_MODEL=3

; +++++++++++++++++++++++++++++++++++++++++++
; Use this environment for task analysis (PR #1751)
; +++++++++++++++++++++++++++++++++++++++++++
[env:freenove-esp32s3-task-analysis]
extends = env:freenove-esp32s3
; sdkconfig.freenove-esp32s3-task-analysis.defaults override some sdkconfig.defaults
; and enable debug analysis options
build_flags =
; ### Hardware: Define board type + camera model
; ### (see 'include/defines.h' for definitions)
-D ENV_BOARD_TYPE=3
-D ENV_CAMERA_MODEL=3
; ### Debug options :
-D TASK_ANALYSIS_ON
;-D DEBUG_DETAIL_ON
;please use only one HEAP tracing at time.
;-D HEAP_TRACING_MAIN_WIFI
;-D HEAP_TRACING_MAIN_START
;-D HEAP_TRACING_CLASS_FLOW_CNN_GENERAL_DO_ALING_AND_CUT


; +++++++++++++++++++++++++++++++++++++++++++
; Use this environment for detailed and deep debugging
; (default debugging is already possible with default environment)
; +++++++++++++++++++++++++++++++++++++++++++
[env:freenove-esp32s3-debug]
extends = env:freenove-esp32s3
; sdkconfig.freenove-esp32s3-debug.defaults override some sdkconfig.defaults
; and enable debug options and clangtidy
build_flags =
; ### clangtidy build flags:
${flags:clangtidy.build_flags}
; ### Hardware: Define board type + camera model
; ### (see 'include/defines.h' for definitions)
-D ENV_BOARD_TYPE=3
-D ENV_CAMERA_MODEL=3
; ### Debug options :
-D DEBUG_DETAIL_ON
;-D DEBUG_DISABLE_BROWNOUT_DETECTOR
;-D DEBUG_ENABLE_PERFMON
;-D DEBUG_HIMEM_MEMORY_CHECK
lib_ldf_mode = deep+
33 changes: 0 additions & 33 deletions code/sdkconfig.esp32cam-debug.defaults

This file was deleted.

2 changes: 0 additions & 2 deletions code/sdkconfig.esp32cam-himem.defaults

This file was deleted.

15 changes: 0 additions & 15 deletions code/sdkconfig.esp32cam-task-analysis.defaults

This file was deleted.

33 changes: 0 additions & 33 deletions code/sdkconfig.freenove-esp32s3-debug.defaults

This file was deleted.

File renamed without changes.
16 changes: 0 additions & 16 deletions code/sdkconfig.freenove-esp32s3-task-analysis.defaults

This file was deleted.

Loading

0 comments on commit 73b0341

Please sign in to comment.