mirror of
https://github.com/espressif/arduino-esp32.git
synced 2026-03-13 09:41:48 +08:00
feat(board): Add Support for ESP32-P4 Core Board (#12230)
* feat(board): Add Support for ESP32-P4 Core Board * feat(boards): Remove unnecessary partition schemes * ci(pre-commit): Apply automatic fixes --------- Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
This commit is contained in:
167
boards.txt
167
boards.txt
@@ -3177,6 +3177,173 @@ esp32wroverkit.menu.EraseFlash.all.upload.erase_cmd=-e
|
||||
|
||||
##############################################################
|
||||
|
||||
esp32p4_core_board.name=ESP32P4 Core Board
|
||||
|
||||
esp32p4_core_board.bootloader.tool=esptool_py
|
||||
esp32p4_core_board.bootloader.tool.default=esptool_py
|
||||
|
||||
esp32p4_core_board.upload.tool=esptool_py
|
||||
esp32p4_core_board.upload.tool.default=esptool_py
|
||||
esp32p4_core_board.upload.tool.network=esp_ota
|
||||
|
||||
esp32p4_core_board.upload.maximum_size=1310720
|
||||
esp32p4_core_board.upload.maximum_data_size=327680
|
||||
esp32p4_core_board.upload.flags=
|
||||
esp32p4_core_board.upload.extra_flags=
|
||||
esp32p4_core_board.upload.use_1200bps_touch=false
|
||||
esp32p4_core_board.upload.wait_for_upload_port=false
|
||||
|
||||
esp32p4_core_board.serial.disableDTR=false
|
||||
esp32p4_core_board.serial.disableRTS=false
|
||||
|
||||
esp32p4_core_board.build.tarch=riscv32
|
||||
esp32p4_core_board.build.target=esp
|
||||
esp32p4_core_board.build.mcu=esp32p4
|
||||
esp32p4_core_board.build.core=esp32
|
||||
esp32p4_core_board.build.variant=esp32p4_core_board
|
||||
esp32p4_core_board.build.chip_variant=esp32p4_es
|
||||
esp32p4_core_board.build.board=ESP32P4_CORE_BOARD
|
||||
esp32p4_core_board.build.bootloader_addr=0x2000
|
||||
|
||||
esp32p4_core_board.build.usb_mode=0
|
||||
esp32p4_core_board.build.cdc_on_boot=0
|
||||
esp32p4_core_board.build.msc_on_boot=0
|
||||
esp32p4_core_board.build.dfu_on_boot=0
|
||||
esp32p4_core_board.build.f_cpu=360000000L
|
||||
esp32p4_core_board.build.flash_size=16MB
|
||||
esp32p4_core_board.build.flash_freq=80m
|
||||
esp32p4_core_board.build.img_freq=80m
|
||||
esp32p4_core_board.build.flash_mode=qio
|
||||
esp32p4_core_board.build.boot=qio
|
||||
esp32p4_core_board.build.partitions=default
|
||||
esp32p4_core_board.build.defines=-DBOARD_HAS_PSRAM
|
||||
|
||||
esp32p4_core_board.menu.ChipVariant.prev3=Before v3.00
|
||||
esp32p4_core_board.menu.ChipVariant.prev3.build.chip_variant=esp32p4_es
|
||||
esp32p4_core_board.menu.ChipVariant.prev3.build.f_cpu=360000000L
|
||||
esp32p4_core_board.menu.ChipVariant.postv3=v3.00 or newer
|
||||
esp32p4_core_board.menu.ChipVariant.postv3.build.chip_variant=esp32p4
|
||||
esp32p4_core_board.menu.ChipVariant.postv3.build.f_cpu=400000000L
|
||||
|
||||
## IDE 2.0 Seems to not update the value
|
||||
esp32p4_core_board.menu.JTAGAdapter.default=Disabled
|
||||
esp32p4_core_board.menu.JTAGAdapter.default.build.copy_jtag_files=0
|
||||
esp32p4_core_board.menu.JTAGAdapter.builtin=Integrated USB JTAG
|
||||
esp32p4_core_board.menu.JTAGAdapter.builtin.build.openocdscript=esp32p4-builtin.cfg
|
||||
esp32p4_core_board.menu.JTAGAdapter.builtin.build.copy_jtag_files=1
|
||||
esp32p4_core_board.menu.JTAGAdapter.external=FTDI Adapter
|
||||
esp32p4_core_board.menu.JTAGAdapter.external.build.openocdscript=esp32p4-ftdi.cfg
|
||||
esp32p4_core_board.menu.JTAGAdapter.external.build.copy_jtag_files=1
|
||||
esp32p4_core_board.menu.JTAGAdapter.bridge=ESP USB Bridge
|
||||
esp32p4_core_board.menu.JTAGAdapter.bridge.build.openocdscript=esp32p4-bridge.cfg
|
||||
esp32p4_core_board.menu.JTAGAdapter.bridge.build.copy_jtag_files=1
|
||||
|
||||
esp32p4_core_board.menu.USBMode.default=USB-OTG (TinyUSB)
|
||||
esp32p4_core_board.menu.USBMode.default.build.usb_mode=0
|
||||
esp32p4_core_board.menu.USBMode.hwcdc=Hardware CDC and JTAG
|
||||
esp32p4_core_board.menu.USBMode.hwcdc.build.usb_mode=1
|
||||
|
||||
esp32p4_core_board.menu.CDCOnBoot.default=Disabled
|
||||
esp32p4_core_board.menu.CDCOnBoot.default.build.cdc_on_boot=0
|
||||
esp32p4_core_board.menu.CDCOnBoot.cdc=Enabled
|
||||
esp32p4_core_board.menu.CDCOnBoot.cdc.build.cdc_on_boot=1
|
||||
|
||||
esp32p4_core_board.menu.MSCOnBoot.default=Disabled
|
||||
esp32p4_core_board.menu.MSCOnBoot.default.build.msc_on_boot=0
|
||||
esp32p4_core_board.menu.MSCOnBoot.msc=Enabled (Requires USB-OTG Mode)
|
||||
esp32p4_core_board.menu.MSCOnBoot.msc.build.msc_on_boot=1
|
||||
|
||||
esp32p4_core_board.menu.DFUOnBoot.default=Disabled
|
||||
esp32p4_core_board.menu.DFUOnBoot.default.build.dfu_on_boot=0
|
||||
esp32p4_core_board.menu.DFUOnBoot.dfu=Enabled (Requires USB-OTG Mode)
|
||||
esp32p4_core_board.menu.DFUOnBoot.dfu.build.dfu_on_boot=1
|
||||
|
||||
esp32p4_core_board.menu.UploadMode.default=UART0 / Hardware CDC
|
||||
esp32p4_core_board.menu.UploadMode.default.upload.use_1200bps_touch=false
|
||||
esp32p4_core_board.menu.UploadMode.default.upload.wait_for_upload_port=false
|
||||
esp32p4_core_board.menu.UploadMode.cdc=USB-OTG CDC (TinyUSB)
|
||||
esp32p4_core_board.menu.UploadMode.cdc.upload.use_1200bps_touch=true
|
||||
esp32p4_core_board.menu.UploadMode.cdc.upload.wait_for_upload_port=true
|
||||
|
||||
esp32p4_core_board.menu.PartitionScheme.default=Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS)
|
||||
esp32p4_core_board.menu.PartitionScheme.default.build.partitions=default
|
||||
esp32p4_core_board.menu.PartitionScheme.defaultffat=Default 4MB with ffat (1.2MB APP/1.5MB FATFS)
|
||||
esp32p4_core_board.menu.PartitionScheme.defaultffat.build.partitions=default_ffat
|
||||
esp32p4_core_board.menu.PartitionScheme.default_8MB=8M with spiffs (3MB APP/1.5MB SPIFFS)
|
||||
esp32p4_core_board.menu.PartitionScheme.default_8MB.build.partitions=default_8MB
|
||||
esp32p4_core_board.menu.PartitionScheme.default_8MB.upload.maximum_size=3342336
|
||||
esp32p4_core_board.menu.PartitionScheme.minimal=Minimal (1.3MB APP/700KB SPIFFS)
|
||||
esp32p4_core_board.menu.PartitionScheme.minimal.build.partitions=minimal
|
||||
esp32p4_core_board.menu.PartitionScheme.no_fs=No FS 4MB (2MB APP x2)
|
||||
esp32p4_core_board.menu.PartitionScheme.no_fs.build.partitions=no_fs
|
||||
esp32p4_core_board.menu.PartitionScheme.no_fs.upload.maximum_size=2031616
|
||||
esp32p4_core_board.menu.PartitionScheme.no_ota=No OTA (2MB APP/2MB SPIFFS)
|
||||
esp32p4_core_board.menu.PartitionScheme.no_ota.build.partitions=no_ota
|
||||
esp32p4_core_board.menu.PartitionScheme.no_ota.upload.maximum_size=2097152
|
||||
esp32p4_core_board.menu.PartitionScheme.noota_3g=No OTA (1MB APP/3MB SPIFFS)
|
||||
esp32p4_core_board.menu.PartitionScheme.noota_3g.build.partitions=noota_3g
|
||||
esp32p4_core_board.menu.PartitionScheme.noota_3g.upload.maximum_size=1048576
|
||||
esp32p4_core_board.menu.PartitionScheme.noota_ffat=No OTA (2MB APP/2MB FATFS)
|
||||
esp32p4_core_board.menu.PartitionScheme.noota_ffat.build.partitions=noota_ffat
|
||||
esp32p4_core_board.menu.PartitionScheme.noota_ffat.upload.maximum_size=2097152
|
||||
esp32p4_core_board.menu.PartitionScheme.noota_3gffat=No OTA (1MB APP/3MB FATFS)
|
||||
esp32p4_core_board.menu.PartitionScheme.noota_3gffat.build.partitions=noota_3gffat
|
||||
esp32p4_core_board.menu.PartitionScheme.noota_3gffat.upload.maximum_size=1048576
|
||||
esp32p4_core_board.menu.PartitionScheme.huge_app=Huge APP (3MB No OTA/1MB SPIFFS)
|
||||
esp32p4_core_board.menu.PartitionScheme.huge_app.build.partitions=huge_app
|
||||
esp32p4_core_board.menu.PartitionScheme.huge_app.upload.maximum_size=3145728
|
||||
esp32p4_core_board.menu.PartitionScheme.min_spiffs=Minimal SPIFFS (1.9MB APP with OTA/128KB SPIFFS)
|
||||
esp32p4_core_board.menu.PartitionScheme.min_spiffs.build.partitions=min_spiffs
|
||||
esp32p4_core_board.menu.PartitionScheme.min_spiffs.upload.maximum_size=1966080
|
||||
esp32p4_core_board.menu.PartitionScheme.fatflash=16M Flash (2MB APP/12.5MB FATFS)
|
||||
esp32p4_core_board.menu.PartitionScheme.fatflash.build.partitions=ffat
|
||||
esp32p4_core_board.menu.PartitionScheme.fatflash.upload.maximum_size=2097152
|
||||
esp32p4_core_board.menu.PartitionScheme.app3M_fat9M_16MB=16M Flash (3MB APP/9.9MB FATFS)
|
||||
esp32p4_core_board.menu.PartitionScheme.app3M_fat9M_16MB.build.partitions=app3M_fat9M_16MB
|
||||
esp32p4_core_board.menu.PartitionScheme.app3M_fat9M_16MB.upload.maximum_size=3145728
|
||||
esp32p4_core_board.menu.PartitionScheme.esp_sr_16=ESP SR 16M (3MB APP/7MB SPIFFS/2.9MB MODEL)
|
||||
esp32p4_core_board.menu.PartitionScheme.esp_sr_16.upload.maximum_size=3145728
|
||||
esp32p4_core_board.menu.PartitionScheme.esp_sr_16.upload.extra_flags=0xD10000 {build.path}/srmodels.bin
|
||||
esp32p4_core_board.menu.PartitionScheme.esp_sr_16.build.partitions=esp_sr_16
|
||||
esp32p4_core_board.menu.PartitionScheme.custom=Custom
|
||||
esp32p4_core_board.menu.PartitionScheme.custom.build.partitions=
|
||||
esp32p4_core_board.menu.PartitionScheme.custom.upload.maximum_size=16777216
|
||||
|
||||
esp32p4_core_board.menu.UploadSpeed.921600=921600
|
||||
esp32p4_core_board.menu.UploadSpeed.921600.upload.speed=921600
|
||||
esp32p4_core_board.menu.UploadSpeed.115200=115200
|
||||
esp32p4_core_board.menu.UploadSpeed.115200.upload.speed=115200
|
||||
esp32p4_core_board.menu.UploadSpeed.256000.windows=256000
|
||||
esp32p4_core_board.menu.UploadSpeed.256000.upload.speed=256000
|
||||
esp32p4_core_board.menu.UploadSpeed.230400.windows.upload.speed=256000
|
||||
esp32p4_core_board.menu.UploadSpeed.230400=230400
|
||||
esp32p4_core_board.menu.UploadSpeed.230400.upload.speed=230400
|
||||
esp32p4_core_board.menu.UploadSpeed.460800.linux=460800
|
||||
esp32p4_core_board.menu.UploadSpeed.460800.macosx=460800
|
||||
esp32p4_core_board.menu.UploadSpeed.460800.upload.speed=460800
|
||||
esp32p4_core_board.menu.UploadSpeed.512000.windows=512000
|
||||
esp32p4_core_board.menu.UploadSpeed.512000.upload.speed=512000
|
||||
|
||||
esp32p4_core_board.menu.DebugLevel.none=None
|
||||
esp32p4_core_board.menu.DebugLevel.none.build.code_debug=0
|
||||
esp32p4_core_board.menu.DebugLevel.error=Error
|
||||
esp32p4_core_board.menu.DebugLevel.error.build.code_debug=1
|
||||
esp32p4_core_board.menu.DebugLevel.warn=Warn
|
||||
esp32p4_core_board.menu.DebugLevel.warn.build.code_debug=2
|
||||
esp32p4_core_board.menu.DebugLevel.info=Info
|
||||
esp32p4_core_board.menu.DebugLevel.info.build.code_debug=3
|
||||
esp32p4_core_board.menu.DebugLevel.debug=Debug
|
||||
esp32p4_core_board.menu.DebugLevel.debug.build.code_debug=4
|
||||
esp32p4_core_board.menu.DebugLevel.verbose=Verbose
|
||||
esp32p4_core_board.menu.DebugLevel.verbose.build.code_debug=5
|
||||
|
||||
esp32p4_core_board.menu.EraseFlash.none=Disabled
|
||||
esp32p4_core_board.menu.EraseFlash.none.upload.erase_cmd=
|
||||
esp32p4_core_board.menu.EraseFlash.all=Enabled
|
||||
esp32p4_core_board.menu.EraseFlash.all.upload.erase_cmd=-e
|
||||
|
||||
##############################################################
|
||||
|
||||
aventen_s3_sync.name=Aventen S3 Sync
|
||||
## Based upon ESP32-S3 Dev Board
|
||||
|
||||
|
||||
75
variants/esp32p4_core_board/pins_arduino.h
Normal file
75
variants/esp32p4_core_board/pins_arduino.h
Normal file
@@ -0,0 +1,75 @@
|
||||
#ifndef Pins_Arduino_h
|
||||
#define Pins_Arduino_h
|
||||
|
||||
#include <stdint.h>
|
||||
#include "soc/soc_caps.h"
|
||||
|
||||
// BOOT_MODE 35
|
||||
// BOOT_MODE2 36 pullup
|
||||
|
||||
// Some boards have too low voltage on this pin (board design bug)
|
||||
// Use different pin with 3V and connect with 44
|
||||
// and change this setup for the chosen pin (for example 38)
|
||||
#define PIN_RGB_LED 44
|
||||
// BUILTIN_LED can be used in new Arduino API digitalWrite() like in Blink.ino
|
||||
static const uint8_t LED_BUILTIN = SOC_GPIO_PIN_COUNT + PIN_RGB_LED;
|
||||
#define BUILTIN_LED LED_BUILTIN // backward compatibility
|
||||
#define LED_BUILTIN LED_BUILTIN // allow testing #ifdef LED_BUILTIN
|
||||
// RGB_BUILTIN and RGB_BRIGHTNESS can be used in new Arduino API rgbLedWrite()
|
||||
#define RGB_BUILTIN LED_BUILTIN
|
||||
#define RGB_BRIGHTNESS 64
|
||||
|
||||
static const uint8_t TX = 37;
|
||||
static const uint8_t RX = 38;
|
||||
|
||||
static const uint8_t SDA = 7;
|
||||
static const uint8_t SCL = 8;
|
||||
|
||||
// Use GPIOs 36 or lower on the P4 DevKit to avoid LDO power issues with high numbered GPIOs.
|
||||
static const uint8_t SS = 30;
|
||||
static const uint8_t MOSI = 33;
|
||||
static const uint8_t MISO = 32;
|
||||
static const uint8_t SCK = 31;
|
||||
|
||||
static const uint8_t A0 = 16;
|
||||
static const uint8_t A1 = 17;
|
||||
static const uint8_t A2 = 18;
|
||||
static const uint8_t A3 = 19;
|
||||
static const uint8_t A4 = 20;
|
||||
static const uint8_t A5 = 21;
|
||||
static const uint8_t A6 = 22;
|
||||
static const uint8_t A7 = 23;
|
||||
static const uint8_t A8 = 49;
|
||||
static const uint8_t A9 = 50;
|
||||
static const uint8_t A10 = 51;
|
||||
static const uint8_t A11 = 52;
|
||||
static const uint8_t A12 = 53;
|
||||
static const uint8_t A13 = 54;
|
||||
|
||||
static const uint8_t T0 = 2;
|
||||
static const uint8_t T1 = 3;
|
||||
static const uint8_t T2 = 4;
|
||||
static const uint8_t T3 = 5;
|
||||
static const uint8_t T4 = 6;
|
||||
static const uint8_t T5 = 7;
|
||||
static const uint8_t T6 = 8;
|
||||
static const uint8_t T7 = 9;
|
||||
static const uint8_t T8 = 10;
|
||||
static const uint8_t T9 = 11;
|
||||
static const uint8_t T10 = 12;
|
||||
static const uint8_t T11 = 13;
|
||||
static const uint8_t T12 = 14;
|
||||
static const uint8_t T13 = 15;
|
||||
|
||||
//WIFI - ESP32C6
|
||||
#define BOARD_HAS_SDIO_ESP_HOSTED
|
||||
#define BOARD_SDIO_ESP_HOSTED_RESET 54 // chip_pu
|
||||
#define BOARD_SDIO_ESP_HOSTED_BOOT 53 // io 9
|
||||
#define BOARD_SDIO_ESP_HOSTED_CMD 52 // io 18
|
||||
#define BOARD_SDIO_ESP_HOSTED_CLK 51 // io 19
|
||||
#define BOARD_SDIO_ESP_HOSTED_D0 50 // io 20
|
||||
#define BOARD_SDIO_ESP_HOSTED_D1 49 // io 21
|
||||
#define BOARD_SDIO_ESP_HOSTED_D2 48 // io 22
|
||||
#define BOARD_SDIO_ESP_HOSTED_D3 47 // io 23
|
||||
|
||||
#endif /* Pins_Arduino_h */
|
||||
Reference in New Issue
Block a user