Adds support for esp32 P4

This commit is contained in:
Rune Harlyk
2026-02-02 20:42:51 +01:00
committed by Rune Harlyk
parent d6075deb6c
commit bf2fd957af
16 changed files with 224 additions and 27 deletions
+42
View File
@@ -15,6 +15,7 @@ src_dir = esp32/src
include_dir = esp32/include
lib_dir = esp32/lib
test_dir = esp32/test
boards_dir = boards
extra_configs =
esp32/factory_settings.ini
esp32/features.ini
@@ -73,6 +74,47 @@ board_build.partitions = esp32/partition_table/min_spiffs.csv
build_flags =
${env.build_flags}
[env:esp32-p4]
platform = https://github.com/pioarduino/platform-espressif32.git
framework = espidf
board = esp32p4_dev
board_build.mcu = esp32p4
board_build.f_cpu = 360000000L
board_build.f_flash = 80000000L
board_build.f_psram = 200000000L
board_build.flash_mode = qio
board_upload.flash_size = 32MB
board_build.partitions = esp32/partition_table/default_32MB.csv
board_build.filesystem = littlefs
board_build.sdkconfig_defaults =
esp32/sdkconfig.defaults
esp32/sdkconfig.defaults.esp32p4
upload_speed = 921600
monitor_speed = 115200
monitor_filters =
direct
esp32_exception_decoder
extra_scripts =
pre:esp32/scripts/pre_build.py
pre:esp32/scripts/build_app.py
build_flags =
${env.build_flags}
-D USE_CAMERA=1
-D CAM_XCLK_PIN=-1
-D CAM_RESET_PIN=-1
-D CAM_PWDN_PIN=-1
-D MIPI_CSI_HRES=800
-D MIPI_CSI_VRES=640
-D MIPI_CSI_LANE_BITRATE_MBPS=400
-D MIPI_CSI_DATA_LANES=2
-D CSI_JPEG_QUALITY=65
-D WAKEUP_PIN_NUMBER=0
-D BOARD_HAS_PSRAM
-D USE_BLE=0
-D SDA_PIN=7
-D SCL_PIN=8
-D WS2812_PIN=27
; ================================================================
; General environment section