Skip to content

Commit 266f88e

Browse files
committed
Bring support for N8N8 boards PSRAM
1 parent 6971464 commit 266f88e

6 files changed

Lines changed: 53 additions & 4 deletions

File tree

.github/workflows/build-and-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
matrix: ${{ steps.set-matrix.outputs.matrix }}
2929
steps:
3030
- id: set-matrix
31-
run: echo "matrix={\"firmware_config\":[{\"board_name\":\"esp32AIThinker\", \"target\":\"esp32\"}, {\"board_name\":\"esp32M5Stack\", \"target\":\"esp32\"}, {\"board_name\":\"esp32cam\", \"target\":\"esp32\"}, {\"board_name\":\"esp_eye\", \"target\":\"esp32s3\"}, {\"board_name\":\"facefocusvr_eye_L\", \"target\":\"esp32s3\"}, {\"board_name\":\"facefocusvr_eye_R\", \"target\":\"esp32s3\"}, {\"board_name\":\"facefocusvr_face\", \"target\":\"esp32s3\"}, {\"board_name\":\"project_babble\", \"target\":\"esp32s3\"}, {\"board_name\":\"seed_studio_xiao_esp32s3\", \"target\":\"esp32s3\"}, {\"board_name\":\"wrooms3\", \"target\":\"esp32s3\"}, {\"board_name\":\"wrooms3QIO\", \"target\":\"esp32s3\"}, {\"board_name\":\"wrover\", \"target\":\"esp32s3\"}]}" >> $GITHUB_OUTPUT
31+
run: echo "matrix={\"firmware_config\":[{\"board_name\":\"esp32AIThinker\", \"target\":\"esp32\"}, {\"board_name\":\"esp32M5Stack\", \"target\":\"esp32\"}, {\"board_name\":\"esp32cam\", \"target\":\"esp32\"}, {\"board_name\":\"esp_eye\", \"target\":\"esp32s3\"}, {\"board_name\":\"facefocusvr_eye_L\", \"target\":\"esp32s3\"}, {\"board_name\":\"facefocusvr_eye_R\", \"target\":\"esp32s3\"}, {\"board_name\":\"facefocusvr_face\", \"target\":\"esp32s3\"}, {\"board_name\":\"project_babble\", \"target\":\"esp32s3\"}, {\"board_name\":\"seed_studio_xiao_esp32s3\", \"target\":\"esp32s3\"}, {\"board_name\":\"wrooms3N8R2\", \"target\":\"esp32s3\"}, {\"board_name\":\"wrooms3QION8R2\", \"target\":\"esp32s3\"}, {\"board_name\":\"wrooms3N8R8\", \"target\":\"esp32s3\"}, {\"board_name\":\"wrover\", \"target\":\"esp32s3\"}]}" >> $GITHUB_OUTPUT
3232

3333
build:
3434
needs: setup

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
| Supported Targets | ESP32-S3 · Project Babble · FaceFocusVR · ESP32CAM · ESP32-AIThinker · ESP32-M5Stack · ESP-EYE · Wroom s3 · Wroom s3 QIO · WROVER|
1+
| Supported Targets | ESP32-S3 · Project Babble · FaceFocusVR · ESP32CAM · ESP32-AIThinker · ESP32-M5Stack · ESP-EYE · Wroom s3 N8R2 · Wroom s3 QIO N8R2 · Wroom s3 N8R8 · WROVER|
22
| ----------------- | --------------------------------------- |
33

44
## OpenIris-ESPIDF
@@ -94,6 +94,7 @@ Notes:
9494
- Board key = relative path under `boards/` with `/` replaced by `_` (and duplicate tail segments collapsed, e.g. `project_babble/project_babble` -> `project_babble`).
9595
- `--diff` shows what will change vs the current `sdkconfig`.
9696
- You can also pass partial or path‑like inputs (e.g. `facefocusvr/eye_L`), the tool normalizes them.
97+
- ESP32‑S3 WROOM‑1 (e.g. Freenove) users: pick the board by the marking on your module. **N8R2** (2MB quad PSRAM) → `wrooms3N8R2` or `wrooms3QION8R2`; **N8R8** (8MB octal PSRAM) → `wrooms3N8R8`. Flashing the wrong variant aborts at boot with `quad_psram: PSRAM ID read error` / `Failed to init external RAM!`.
9798

9899
### 2) Build & flash
99100

boards/wrooms3N8R8/wrooms3N8R8

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
CONFIG_IDF_TARGET="esp32s3"
2+
CONFIG_IDF_TARGET_ESP32S3=y
3+
CONFIG_WIRED_MODE=y
4+
CONFIG_ESP32S3_DEFAULT_CPU_FREQ_240=y
5+
CONFIG_ESP32S3_SPIRAM_SUPPORT=y
6+
# CONFIG_ESPTOOLPY_FLASHSIZE_1MB is not set
7+
# CONFIG_ESPTOOLPY_FLASHSIZE_2MB is not set
8+
# CONFIG_ESPTOOLPY_FLASHSIZE_4MB is not set
9+
CONFIG_ESPTOOLPY_FLASHSIZE_8MB=y
10+
# CONFIG_ESPTOOLPY_FLASHSIZE_16MB is not set
11+
# CONFIG_ESPTOOLPY_FLASHSIZE_32MB is not set
12+
# CONFIG_ESPTOOLPY_FLASHSIZE_64MB is not set
13+
# CONFIG_ESPTOOLPY_FLASHSIZE_128MB is not set
14+
CONFIG_ESPTOOLPY_FLASHSIZE="8MB"
15+
# Camera sensor pinout configuration
16+
CONFIG_CAMERA_MODULE_NAME="WROOMS3"
17+
CONFIG_PWDN_GPIO_NUM=-1
18+
CONFIG_RESET_GPIO_NUM=-1
19+
CONFIG_XCLK_GPIO_NUM=15
20+
CONFIG_SIOD_GPIO_NUM=4
21+
CONFIG_SIOC_GPIO_NUM=5
22+
CONFIG_Y9_GPIO_NUM=16
23+
CONFIG_Y8_GPIO_NUM=17
24+
CONFIG_Y7_GPIO_NUM=18
25+
CONFIG_Y6_GPIO_NUM=12
26+
CONFIG_Y5_GPIO_NUM=10
27+
CONFIG_Y4_GPIO_NUM=8
28+
CONFIG_Y3_GPIO_NUM=9
29+
CONFIG_Y2_GPIO_NUM=11
30+
CONFIG_VSYNC_GPIO_NUM=6
31+
CONFIG_HREF_GPIO_NUM=7
32+
CONFIG_PCLK_GPIO_NUM=13
33+
# end of Camera sensor pinout configuration
34+
# The N8R8 module variant has 8MB octal PSRAM (vs 2MB quad on N8R2).
35+
# Octal PSRAM claims GPIO 33-37 internally; pins above stay clear of that range.
36+
# CONFIG_SPIRAM_MODE_QUAD is not set
37+
CONFIG_SPIRAM_MODE_OCT=y
38+
CONFIG_SPIRAM_TYPE_AUTO=y
39+
# CONFIG_SPIRAM_TYPE_ESPPSRAM16 is not set
40+
# CONFIG_SPIRAM_TYPE_ESPPSRAM32 is not set
41+
# CONFIG_SPIRAM_TYPE_ESPPSRAM64 is not set
42+
CONFIG_SPIRAM_ALLOW_STACK_EXTERNAL_MEMORY=y
43+
# CONFIG_SPIRAM_XIP_FROM_PSRAM is not set
44+
# CONFIG_SPIRAM_FETCH_INSTRUCTIONS is not set
45+
# CONFIG_SPIRAM_RODATA is not set
46+
# CONFIG_SPIRAM_SPEED_120M is not set
47+
CONFIG_SPIRAM_SPEED_80M=y

tests/conftest.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@
2020
"facefocusvr_face": ["wired", "measure_current"],
2121
"project_babble": ["wireless", "wired"],
2222
"seed_studio": ["wireless", "wired"],
23-
"wrooms3": ["wireless", "wired"],
24-
"wrooms3QIO": ["wireless", "wired"],
23+
"wrooms3N8R2": ["wireless", "wired"],
24+
"wrooms3QION8R2": ["wireless", "wired"],
25+
"wrooms3N8R8": ["wireless", "wired"],
2526
"wrover": ["wireless", "wired"],
2627
}
2728

0 commit comments

Comments
 (0)