Skip to content

Commit 4c3156a

Browse files
committed
fix/camera: camera initialization failed
The LCD and Camera interrupts use the same interrupt source, causing the interrupt allocation to fail. The solution is to assign the LCD interrupt and Camera interrupt to different CPUs. Signed-off-by: lbuque <[email protected]>
1 parent eab738c commit 4c3156a

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed

m5stack/boards/M5STACK_CoreS3/mpconfigboard.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ set(IDF_TARGET esp32s3)
33
set(M5_CAMERA_MODULE_ENABLE TRUE)
44

55
set(SDKCONFIG_DEFAULTS
6-
./boards/M5STACK_S3_8MB/sdkconfig.board
6+
./boards/M5STACK_CoreS3/sdkconfig.board
77
./boards/sdkconfig.base
88
./boards/sdkconfig.240mhz
99
./boards/sdkconfig.disable_iram

m5stack/boards/M5STACK_CoreS3/sdkconfig.board

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,32 @@ CONFIG_ESPTOOLPY_FLASHSIZE_DETECT=y
66
CONFIG_ESPTOOLPY_AFTER_NORESET=y
77

88
CONFIG_SPIRAM_MEMTEST=
9+
10+
#
11+
# Camera configuration
12+
#
13+
# CONFIG_OV7670_SUPPORT is not set
14+
# CONFIG_OV7725_SUPPORT is not set
15+
# CONFIG_NT99141_SUPPORT is not set
16+
CONFIG_OV2640_SUPPORT=y
17+
# CONFIG_OV3660_SUPPORT is not set
18+
# CONFIG_OV5640_SUPPORT is not set
19+
# CONFIG_GC2145_SUPPORT is not set
20+
# CONFIG_GC032A_SUPPORT is not set
21+
CONFIG_GC0308_SUPPORT=y
22+
# CONFIG_BF3005_SUPPORT is not set
23+
# CONFIG_BF20A6_SUPPORT is not set
24+
# CONFIG_SC101IOT_SUPPORT is not set
25+
# CONFIG_SC030IOT_SUPPORT is not set
26+
# CONFIG_SC031GS_SUPPORT is not set
27+
# CONFIG_SCCB_HARDWARE_I2C_PORT0 is not set
28+
CONFIG_SCCB_HARDWARE_I2C_PORT1=y
29+
CONFIG_SCCB_CLK_FREQ=100000
30+
CONFIG_CAMERA_TASK_STACK_SIZE=2048
31+
# CONFIG_CAMERA_CORE0=y
32+
CONFIG_CAMERA_CORE1=y
33+
# CONFIG_CAMERA_NO_AFFINITY is not set
34+
CONFIG_CAMERA_DMA_BUFFER_SIZE_MAX=32768
35+
# CONFIG_CAMERA_CONVERTER_ENABLED is not set
36+
# end of Camera configuration
37+
# end of Component config

0 commit comments

Comments
 (0)