2022-01-12 14:36:51 -05:00
|
|
|
CONFIG_IDF_TARGET_ARCH_XTENSA=y
|
|
|
|
CONFIG_IDF_TARGET="esp32s3"
|
|
|
|
CONFIG_IDF_TARGET_ESP32S3=y
|
|
|
|
CONFIG_IDF_FIRMWARE_CHIP_ID=0x0009
|
2022-02-11 17:00:45 -05:00
|
|
|
#
|
2022-03-21 20:04:19 -04:00
|
|
|
# SDK tool configuration
|
2022-02-11 17:00:45 -05:00
|
|
|
#
|
2022-01-12 14:36:51 -05:00
|
|
|
CONFIG_SDK_TOOLPREFIX="xtensa-esp32s3-elf-"
|
2022-03-21 20:04:19 -04:00
|
|
|
# end of SDK tool configuration
|
|
|
|
|
2022-01-12 14:36:51 -05:00
|
|
|
#
|
|
|
|
# Bootloader config
|
|
|
|
#
|
|
|
|
CONFIG_BOOTLOADER_OFFSET_IN_FLASH=0x0
|
|
|
|
# end of Bootloader config
|
|
|
|
|
2022-03-21 20:04:19 -04:00
|
|
|
#
|
|
|
|
# Component config
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# Bluetooth
|
|
|
|
#
|
2022-01-18 18:09:33 -05:00
|
|
|
CONFIG_BT_SOC_SUPPORT_5_0=y
|
2022-03-21 20:04:19 -04:00
|
|
|
#
|
|
|
|
# NimBLE Options
|
|
|
|
#
|
|
|
|
# CONFIG_BT_NIMBLE_PINNED_TO_CORE_0 is not set
|
|
|
|
CONFIG_BT_NIMBLE_PINNED_TO_CORE_1=y
|
|
|
|
CONFIG_BT_NIMBLE_PINNED_TO_CORE=1
|
|
|
|
# end of NimBLE Options
|
|
|
|
|
|
|
|
# end of Bluetooth
|
|
|
|
|
2022-01-12 14:36:51 -05:00
|
|
|
#
|
|
|
|
# ESP32S3-Specific
|
|
|
|
#
|
2022-03-21 20:04:19 -04:00
|
|
|
# CONFIG_ESP32S3_DEFAULT_CPU_FREQ_80 is not set
|
2022-01-12 14:36:51 -05:00
|
|
|
# CONFIG_ESP32S3_DEFAULT_CPU_FREQ_160 is not set
|
|
|
|
CONFIG_ESP32S3_DEFAULT_CPU_FREQ_240=y
|
|
|
|
CONFIG_ESP32S3_DEFAULT_CPU_FREQ_MHZ=240
|
|
|
|
#
|
|
|
|
# Cache config
|
|
|
|
#
|
2022-03-21 20:04:19 -04:00
|
|
|
CONFIG_ESP32S3_INSTRUCTION_CACHE_16KB=y
|
2022-01-12 14:36:51 -05:00
|
|
|
# CONFIG_ESP32S3_INSTRUCTION_CACHE_32KB is not set
|
|
|
|
CONFIG_ESP32S3_INSTRUCTION_CACHE_SIZE=0x4000
|
|
|
|
# CONFIG_ESP32S3_INSTRUCTION_CACHE_4WAYS is not set
|
|
|
|
CONFIG_ESP32S3_INSTRUCTION_CACHE_8WAYS=y
|
|
|
|
CONFIG_ESP32S3_ICACHE_ASSOCIATED_WAYS=8
|
|
|
|
# CONFIG_ESP32S3_INSTRUCTION_CACHE_LINE_16B is not set
|
|
|
|
CONFIG_ESP32S3_INSTRUCTION_CACHE_LINE_32B=y
|
|
|
|
CONFIG_ESP32S3_INSTRUCTION_CACHE_LINE_SIZE=32
|
|
|
|
# CONFIG_ESP32S3_INSTRUCTION_CACHE_WRAP is not set
|
|
|
|
# CONFIG_ESP32S3_DATA_CACHE_16KB is not set
|
|
|
|
CONFIG_ESP32S3_DATA_CACHE_32KB=y
|
|
|
|
# CONFIG_ESP32S3_DATA_CACHE_64KB is not set
|
|
|
|
CONFIG_ESP32S3_DATA_CACHE_SIZE=0x8000
|
|
|
|
# CONFIG_ESP32S3_DATA_CACHE_4WAYS is not set
|
|
|
|
CONFIG_ESP32S3_DATA_CACHE_8WAYS=y
|
|
|
|
CONFIG_ESP32S3_DCACHE_ASSOCIATED_WAYS=8
|
|
|
|
# CONFIG_ESP32S3_DATA_CACHE_LINE_16B is not set
|
|
|
|
CONFIG_ESP32S3_DATA_CACHE_LINE_32B=y
|
|
|
|
# CONFIG_ESP32S3_DATA_CACHE_LINE_64B is not set
|
|
|
|
CONFIG_ESP32S3_DATA_CACHE_LINE_SIZE=32
|
|
|
|
# CONFIG_ESP32S3_DATA_CACHE_WRAP is not set
|
|
|
|
# end of Cache config
|
|
|
|
|
|
|
|
# CONFIG_ESP32S3_TRAX is not set
|
|
|
|
CONFIG_ESP32S3_TRACEMEM_RESERVE_DRAM=0x0
|
2022-10-19 11:05:48 -04:00
|
|
|
CONFIG_ESP32S3_ULP_COPROC_ENABLED=y
|
|
|
|
CONFIG_ESP32S3_ULP_COPROC_RESERVE_MEM=4096
|
|
|
|
CONFIG_ESP32S3_ULP_COPROC_RISCV=y
|
2022-01-12 14:36:51 -05:00
|
|
|
CONFIG_ESP32S3_BROWNOUT_DET=y
|
|
|
|
CONFIG_ESP32S3_BROWNOUT_DET_LVL_SEL_7=y
|
|
|
|
# CONFIG_ESP32S3_BROWNOUT_DET_LVL_SEL_6 is not set
|
|
|
|
# CONFIG_ESP32S3_BROWNOUT_DET_LVL_SEL_5 is not set
|
|
|
|
# CONFIG_ESP32S3_BROWNOUT_DET_LVL_SEL_4 is not set
|
|
|
|
# CONFIG_ESP32S3_BROWNOUT_DET_LVL_SEL_3 is not set
|
|
|
|
# CONFIG_ESP32S3_BROWNOUT_DET_LVL_SEL_2 is not set
|
|
|
|
# CONFIG_ESP32S3_BROWNOUT_DET_LVL_SEL_1 is not set
|
|
|
|
CONFIG_ESP32S3_BROWNOUT_DET_LVL=7
|
|
|
|
CONFIG_ESP32S3_TIME_SYSCALL_USE_RTC_FRC1=y
|
|
|
|
# CONFIG_ESP32S3_TIME_SYSCALL_USE_RTC is not set
|
|
|
|
# CONFIG_ESP32S3_TIME_SYSCALL_USE_FRC1 is not set
|
|
|
|
# CONFIG_ESP32S3_TIME_SYSCALL_USE_NONE is not set
|
|
|
|
CONFIG_ESP32S3_RTC_CLK_SRC_INT_RC=y
|
|
|
|
# CONFIG_ESP32S3_RTC_CLK_SRC_EXT_CRYS is not set
|
|
|
|
# CONFIG_ESP32S3_RTC_CLK_SRC_EXT_OSC is not set
|
|
|
|
# CONFIG_ESP32S3_RTC_CLK_SRC_INT_8MD256 is not set
|
|
|
|
CONFIG_ESP32S3_RTC_CLK_CAL_CYCLES=1024
|
|
|
|
CONFIG_ESP32S3_DEEP_SLEEP_WAKEUP_DELAY=2000
|
2022-10-19 11:05:48 -04:00
|
|
|
CONFIG_ESP32S3_RTCDATA_IN_FAST_MEM=y
|
2022-01-12 14:36:51 -05:00
|
|
|
# CONFIG_ESP32S3_USE_FIXED_STATIC_RAM_SIZE is not set
|
2022-03-21 20:04:19 -04:00
|
|
|
# end of ESP32S3-Specific
|
|
|
|
|
|
|
|
#
|
|
|
|
# Hardware Settings
|
|
|
|
#
|
2022-01-12 14:36:51 -05:00
|
|
|
#
|
|
|
|
# MAC Config
|
|
|
|
#
|
|
|
|
# CONFIG_ESP32S3_UNIVERSAL_MAC_ADDRESSES_TWO is not set
|
|
|
|
CONFIG_ESP32S3_UNIVERSAL_MAC_ADDRESSES_FOUR=y
|
|
|
|
CONFIG_ESP32S3_UNIVERSAL_MAC_ADDRESSES=4
|
|
|
|
# end of MAC Config
|
|
|
|
|
2022-03-21 20:04:19 -04:00
|
|
|
#
|
|
|
|
# Sleep Config
|
|
|
|
#
|
2022-01-12 14:36:51 -05:00
|
|
|
CONFIG_ESP_SLEEP_GPIO_RESET_WORKAROUND=y
|
2022-03-21 20:04:19 -04:00
|
|
|
# end of Sleep Config
|
|
|
|
|
|
|
|
# end of Hardware Settings
|
2022-01-18 18:50:32 -05:00
|
|
|
|
2022-03-21 20:04:19 -04:00
|
|
|
#
|
|
|
|
# PHY
|
|
|
|
#
|
2022-01-18 18:50:32 -05:00
|
|
|
CONFIG_ESP_PHY_ENABLE_USB=y
|
2022-03-21 20:04:19 -04:00
|
|
|
# end of PHY
|
|
|
|
|
|
|
|
#
|
|
|
|
# ESP System Settings
|
|
|
|
#
|
2022-01-14 15:22:12 -05:00
|
|
|
# CONFIG_ESP_MAIN_TASK_AFFINITY_CPU0 is not set
|
|
|
|
CONFIG_ESP_MAIN_TASK_AFFINITY_CPU1=y
|
2022-01-12 14:36:51 -05:00
|
|
|
# CONFIG_ESP_MAIN_TASK_AFFINITY_NO_AFFINITY is not set
|
2022-01-14 15:22:12 -05:00
|
|
|
CONFIG_ESP_MAIN_TASK_AFFINITY=0x1
|
2022-03-21 20:04:19 -04:00
|
|
|
# end of ESP System Settings
|
|
|
|
|
2022-01-12 14:36:51 -05:00
|
|
|
#
|
|
|
|
# Wi-Fi
|
|
|
|
#
|
|
|
|
CONFIG_ESP32_WIFI_ENABLED=y
|
2022-03-21 20:04:19 -04:00
|
|
|
CONFIG_ESP32_WIFI_SW_COEXIST_ENABLE=y
|
2022-01-12 14:36:51 -05:00
|
|
|
CONFIG_ESP32_WIFI_STATIC_RX_BUFFER_NUM=4
|
|
|
|
CONFIG_ESP32_WIFI_DYNAMIC_RX_BUFFER_NUM=8
|
|
|
|
# CONFIG_ESP32_WIFI_STATIC_TX_BUFFER is not set
|
|
|
|
CONFIG_ESP32_WIFI_DYNAMIC_TX_BUFFER=y
|
|
|
|
CONFIG_ESP32_WIFI_TX_BUFFER_TYPE=1
|
|
|
|
CONFIG_ESP32_WIFI_CACHE_TX_BUFFER_NUM=16
|
|
|
|
CONFIG_ESP32_WIFI_DYNAMIC_TX_BUFFER_NUM=16
|
|
|
|
# CONFIG_ESP32_WIFI_CSI_ENABLED is not set
|
|
|
|
CONFIG_ESP32_WIFI_AMPDU_TX_ENABLED=y
|
|
|
|
CONFIG_ESP32_WIFI_TX_BA_WIN=6
|
|
|
|
CONFIG_ESP32_WIFI_AMPDU_RX_ENABLED=y
|
|
|
|
CONFIG_ESP32_WIFI_RX_BA_WIN=6
|
|
|
|
# CONFIG_ESP32_WIFI_AMSDU_TX_ENABLED is not set
|
|
|
|
# CONFIG_ESP32_WIFI_NVS_ENABLED is not set
|
|
|
|
CONFIG_ESP32_WIFI_TASK_PINNED_TO_CORE_0=y
|
|
|
|
# CONFIG_ESP32_WIFI_TASK_PINNED_TO_CORE_1 is not set
|
|
|
|
CONFIG_ESP32_WIFI_SOFTAP_BEACON_MAX_LEN=752
|
|
|
|
CONFIG_ESP32_WIFI_MGMT_SBUF_NUM=32
|
|
|
|
CONFIG_ESP32_WIFI_IRAM_OPT=y
|
|
|
|
CONFIG_ESP32_WIFI_RX_IRAM_OPT=y
|
|
|
|
# CONFIG_ESP32_WIFI_ENABLE_WPA3_SAE is not set
|
|
|
|
# end of Wi-Fi
|
|
|
|
|
2022-03-21 20:04:19 -04:00
|
|
|
#
|
|
|
|
# FreeRTOS
|
|
|
|
#
|
2022-01-12 14:36:51 -05:00
|
|
|
# CONFIG_FREERTOS_UNICORE is not set
|
2022-03-21 20:04:19 -04:00
|
|
|
# end of FreeRTOS
|
|
|
|
|
|
|
|
# end of Component config
|
|
|
|
|
2022-01-12 14:36:51 -05:00
|
|
|
#
|
|
|
|
# Deprecated options for backward compatibility
|
|
|
|
#
|
|
|
|
CONFIG_TOOLPREFIX="xtensa-esp32s3-elf-"
|
|
|
|
# CONFIG_ESP32_APPTRACE_DEST_TRAX is not set
|
|
|
|
CONFIG_ESP32_APPTRACE_DEST_NONE=y
|
|
|
|
CONFIG_ESP32_APPTRACE_LOCK_ENABLE=y
|
2022-03-21 20:04:19 -04:00
|
|
|
# CONFIG_NIMBLE_PINNED_TO_CORE_0 is not set
|
|
|
|
CONFIG_NIMBLE_PINNED_TO_CORE_1=y
|
|
|
|
CONFIG_NIMBLE_PINNED_TO_CORE=1
|
2022-01-12 14:36:51 -05:00
|
|
|
CONFIG_ESP32C3_LIGHTSLEEP_GPIO_RESET_WORKAROUND=y
|
|
|
|
CONFIG_ESP32_PHY_CALIBRATION_AND_DATA_STORAGE=y
|
|
|
|
# CONFIG_ESP32_PHY_INIT_DATA_IN_PARTITION is not set
|
|
|
|
CONFIG_ESP32_PHY_MAX_WIFI_TX_POWER=20
|
|
|
|
CONFIG_ESP32_PHY_MAX_TX_POWER=20
|
|
|
|
CONFIG_ESP32S2_ALLOW_RTC_FAST_MEM_AS_HEAP=y
|
2022-03-21 20:04:19 -04:00
|
|
|
# CONFIG_ESP32_DEBUG_STUBS_ENABLE is not set
|
2022-01-12 14:36:51 -05:00
|
|
|
# CONFIG_ESP32_ENABLE_COREDUMP_TO_FLASH is not set
|
|
|
|
# CONFIG_ESP32_ENABLE_COREDUMP_TO_UART is not set
|
|
|
|
CONFIG_ESP32_ENABLE_COREDUMP_TO_NONE=y
|
|
|
|
CONFIG_ESP32_PTHREAD_TASK_PRIO_DEFAULT=5
|
|
|
|
CONFIG_ESP32_PTHREAD_TASK_STACK_SIZE_DEFAULT=3072
|
|
|
|
CONFIG_ESP32_PTHREAD_STACK_MIN=768
|
|
|
|
CONFIG_ESP32_DEFAULT_PTHREAD_CORE_NO_AFFINITY=y
|
|
|
|
# CONFIG_ESP32_DEFAULT_PTHREAD_CORE_0 is not set
|
|
|
|
# CONFIG_ESP32_DEFAULT_PTHREAD_CORE_1 is not set
|
|
|
|
CONFIG_ESP32_PTHREAD_TASK_CORE_DEFAULT=-1
|
|
|
|
CONFIG_ESP32_PTHREAD_TASK_NAME_DEFAULT="pthread"
|
|
|
|
# end of Deprecated options for backward compatibility
|
add esp32-camera
This uses the esp32-camera code instead of our own homebrewed camera code.
In theory it supports esp32, esp32-s2 and esp32-s3, as long as they have
PSRAM.
This is very basic and doesn't support changing any camera parameters,
including switching resolution or pixelformat.
This is tested on the Kaluga (ESP32-S2) and ESP32-S3-Eye boards.
First, reserve some PSRAM by putting this line in `CIRCUITPY/_env`:
```
CIRCUITPY_RESERVED_PSRAM=524288
```
and hard-reset the board for it to take effect.
Now, the following script will take a very low-resolution jpeg file and print
it in the REPL in escape coded form:
```python
import board
import esp32_camera
c = esp32_camera.Camera(
data_pins=board.CAMERA_DATA,
external_clock_pin=board.CAMERA_XCLK,
pixel_clock_pin=board.CAMERA_PCLK,
vsync_pin=board.CAMERA_VSYNC,
href_pin=board.CAMERA_HREF,
pixel_format=esp32_camera.PixelFormat.JPEG,
i2c=board.I2C(),
external_clock_frequency=20_000_000)
m = c.take()
if m is not None:
print(bytes(m))
```
Then on desktop open a python repl and run something like
```python
>>> with open("my.jpg", "wb") as f: f.write(<BIG PASTE FROM REPL>)
```
and open my.jpg in a viewer.
2022-08-04 16:11:50 -04:00
|
|
|
|
|
|
|
#
|
|
|
|
# Camera configuration
|
|
|
|
#
|
|
|
|
CONFIG_OV7670_SUPPORT=y
|
|
|
|
# CONFIG_OV7725_SUPPORT is not set
|
|
|
|
# CONFIG_NT99141_SUPPORT is not set
|
|
|
|
CONFIG_OV2640_SUPPORT=y
|
|
|
|
CONFIG_OV3660_SUPPORT=y
|
|
|
|
CONFIG_OV5640_SUPPORT=y
|
|
|
|
# CONFIG_GC2145_SUPPORT is not set
|
|
|
|
# CONFIG_GC032A_SUPPORT is not set
|
|
|
|
# CONFIG_GC0308_SUPPORT is not set
|
|
|
|
# CONFIG_BF3005_SUPPORT is not set
|
|
|
|
# CONFIG_BF20A6_SUPPORT is not set
|
|
|
|
# CONFIG_SC101IOT_SUPPORT is not set
|
|
|
|
# CONFIG_SC030IOT_SUPPORT is not set
|
|
|
|
# CONFIG_SCCB_HARDWARE_I2C_PORT0 is not set
|
|
|
|
CONFIG_SCCB_HARDWARE_I2C_PORT1=y
|
|
|
|
CONFIG_SCCB_CLK_FREQ=100000
|
|
|
|
CONFIG_CAMERA_CORE0=y
|
|
|
|
# CONFIG_CAMERA_CORE1 is not set
|
|
|
|
# CONFIG_CAMERA_NO_AFFINITY is not set
|
|
|
|
CONFIG_CAMERA_DMA_BUFFER_SIZE_MAX=32768
|
|
|
|
# CONFIG_CAMERA_CONVERTER_ENABLED is not set
|
|
|
|
# end of Camera configuration
|
|
|
|
# end of Component config
|