Initial commit with basic project structure and Firebeetle 2 board definition
This commit is contained in:
7
boards/espressif/esp32_devkitc/Kconfig
Normal file
7
boards/espressif/esp32_devkitc/Kconfig
Normal file
@@ -0,0 +1,7 @@
|
||||
# Copyright (c) 2024-2025 Espressif Systems (Shanghai) Co., Ltd.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
config HEAP_MEM_POOL_ADD_SIZE_BOARD
|
||||
int
|
||||
default 4096 if BOARD_ESP32_DEVKITC_ESP32_PROCPU
|
||||
default 256 if BOARD_ESP32_DEVKITC_ESP32_APPCPU
|
||||
7
boards/espressif/esp32_devkitc/Kconfig.esp32_devkitc
Normal file
7
boards/espressif/esp32_devkitc/Kconfig.esp32_devkitc
Normal file
@@ -0,0 +1,7 @@
|
||||
# Copyright (c) 2023-2025 Espressif Systems (Shanghai) Co., Ltd.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
config BOARD_ESP32_DEVKITC
|
||||
select SOC_ESP32_WROVER_E_N4R8
|
||||
select SOC_ESP32_PROCPU if BOARD_ESP32_DEVKITC_ESP32_PROCPU
|
||||
select SOC_ESP32_APPCPU if BOARD_ESP32_DEVKITC_ESP32_APPCPU
|
||||
10
boards/espressif/esp32_devkitc/Kconfig.sysbuild
Normal file
10
boards/espressif/esp32_devkitc/Kconfig.sysbuild
Normal file
@@ -0,0 +1,10 @@
|
||||
# Copyright (c) 2023 Espressif Systems (Shanghai) Co., Ltd.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
choice BOOTLOADER
|
||||
default BOOTLOADER_MCUBOOT
|
||||
endchoice
|
||||
|
||||
choice BOOT_SIGNATURE_TYPE
|
||||
default BOOT_SIGNATURE_TYPE_NONE
|
||||
endchoice
|
||||
11
boards/espressif/esp32_devkitc/board.cmake
Normal file
11
boards/espressif/esp32_devkitc/board.cmake
Normal file
@@ -0,0 +1,11 @@
|
||||
# Copyright (c) 2023 Espressif Systems (Shanghai) Co., Ltd.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if(NOT "${OPENOCD}" MATCHES "^${ESPRESSIF_TOOLCHAIN_PATH}/.*")
|
||||
set(OPENOCD OPENOCD-NOTFOUND)
|
||||
endif()
|
||||
|
||||
find_program(OPENOCD openocd PATHS ${ESPRESSIF_TOOLCHAIN_PATH}/openocd-esp32/bin NO_DEFAULT_PATH)
|
||||
|
||||
include(${ZEPHYR_BASE}/boards/common/esp32.board.cmake)
|
||||
include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake)
|
||||
6
boards/espressif/esp32_devkitc/board.yml
Normal file
6
boards/espressif/esp32_devkitc/board.yml
Normal file
@@ -0,0 +1,6 @@
|
||||
board:
|
||||
name: esp32_devkitc
|
||||
full_name: ESP32-DevKitC
|
||||
vendor: espressif
|
||||
socs:
|
||||
- name: esp32
|
||||
BIN
boards/espressif/esp32_devkitc/doc/img/esp32_devkitc_wrover.jpg
Normal file
BIN
boards/espressif/esp32_devkitc/doc/img/esp32_devkitc_wrover.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 76 KiB |
256
boards/espressif/esp32_devkitc/doc/index.rst
Normal file
256
boards/espressif/esp32_devkitc/doc/index.rst
Normal file
@@ -0,0 +1,256 @@
|
||||
.. zephyr:board:: esp32_devkitc
|
||||
|
||||
Overview
|
||||
********
|
||||
|
||||
ESP32 is a series of low cost, low power system on a chip microcontrollers
|
||||
with integrated Wi-Fi & dual-mode Bluetooth. The ESP32 series employs a
|
||||
Tensilica Xtensa LX6 microprocessor in both dual-core and single-core
|
||||
variations. ESP32 is created and developed by Espressif Systems, a
|
||||
Shanghai-based Chinese company, and is manufactured by TSMC using their 40nm
|
||||
process. For more information, check `ESP32-DevKitC`_.
|
||||
|
||||
The features include the following:
|
||||
|
||||
- Dual core Xtensa microprocessor (LX6), running at 160 or 240MHz
|
||||
- 520KB of SRAM
|
||||
- 802.11b/g/n/e/i
|
||||
- Bluetooth v4.2 BR/EDR and BLE
|
||||
- Various peripherals:
|
||||
|
||||
- 12-bit ADC with up to 18 channels
|
||||
- 2x 8-bit DACs
|
||||
- 10x touch sensors
|
||||
- Temperature sensor
|
||||
- 4x SPI
|
||||
- 2x I2S
|
||||
- 2x I2C
|
||||
- 3x UART
|
||||
- SD/SDIO/MMC host
|
||||
- Slave (SDIO/SPI)
|
||||
- Ethernet MAC
|
||||
- CAN bus 2.0
|
||||
- IR (RX/TX)
|
||||
- Motor PWM
|
||||
- LED PWM with up to 16 channels
|
||||
- Hall effect sensor
|
||||
|
||||
- Cryptographic hardware acceleration (RNG, ECC, RSA, SHA-2, AES)
|
||||
- 5uA deep sleep current
|
||||
|
||||
For more information, check the datasheet at `ESP32 Datasheet`_ or the technical reference
|
||||
manual at `ESP32 Technical Reference Manual`_.
|
||||
|
||||
Asymmetric Multiprocessing (AMP)
|
||||
********************************
|
||||
|
||||
ESP32-DevKitC-WROVER allows 2 different applications to be executed in ESP32 SoC. Due to its dual-core architecture, each core can be enabled to execute customized tasks in stand-alone mode
|
||||
and/or exchanging data over OpenAMP framework. See :zephyr:code-sample-category:`ipc` folder as code reference.
|
||||
|
||||
Supported Features
|
||||
==================
|
||||
|
||||
.. zephyr:board-supported-hw::
|
||||
|
||||
System requirements
|
||||
===================
|
||||
|
||||
Prerequisites
|
||||
-------------
|
||||
|
||||
Espressif HAL requires WiFi and Bluetooth binary blobs in order work. Run the command
|
||||
below to retrieve those files.
|
||||
|
||||
.. code-block:: console
|
||||
|
||||
west blobs fetch hal_espressif
|
||||
|
||||
.. note::
|
||||
|
||||
It is recommended running the command above after :file:`west update`.
|
||||
|
||||
Building & Flashing
|
||||
*******************
|
||||
|
||||
.. zephyr:board-supported-runners::
|
||||
|
||||
Simple boot
|
||||
===========
|
||||
|
||||
The board could be loaded using the single binary image, without 2nd stage bootloader.
|
||||
It is the default option when building the application without additional configuration.
|
||||
|
||||
.. note::
|
||||
|
||||
Simple boot does not provide any security features nor OTA updates.
|
||||
|
||||
MCUboot bootloader
|
||||
==================
|
||||
|
||||
User may choose to use MCUboot bootloader instead. In that case the bootloader
|
||||
must be built (and flashed) at least once.
|
||||
|
||||
There are two options to be used when building an application:
|
||||
|
||||
1. Sysbuild
|
||||
2. Manual build
|
||||
|
||||
.. note::
|
||||
|
||||
User can select the MCUboot bootloader by adding the following line
|
||||
to the board default configuration file.
|
||||
|
||||
.. code:: cfg
|
||||
|
||||
CONFIG_BOOTLOADER_MCUBOOT=y
|
||||
|
||||
Sysbuild
|
||||
========
|
||||
|
||||
The sysbuild makes possible to build and flash all necessary images needed to
|
||||
bootstrap the board with the ESP32 SoC.
|
||||
|
||||
To build the sample application using sysbuild use the command:
|
||||
|
||||
.. zephyr-app-commands::
|
||||
:tool: west
|
||||
:zephyr-app: samples/hello_world
|
||||
:board: esp32_devkitc
|
||||
:goals: build
|
||||
:west-args: --sysbuild
|
||||
:compact:
|
||||
|
||||
By default, the ESP32 sysbuild creates bootloader (MCUboot) and application
|
||||
images. But it can be configured to create other kind of images.
|
||||
|
||||
Build directory structure created by sysbuild is different from traditional
|
||||
Zephyr build. Output is structured by the domain subdirectories:
|
||||
|
||||
.. code-block::
|
||||
|
||||
build/
|
||||
├── hello_world
|
||||
│ └── zephyr
|
||||
│ ├── zephyr.elf
|
||||
│ └── zephyr.bin
|
||||
├── mcuboot
|
||||
│ └── zephyr
|
||||
│ ├── zephyr.elf
|
||||
│ └── zephyr.bin
|
||||
└── domains.yaml
|
||||
|
||||
.. note::
|
||||
|
||||
With ``--sysbuild`` option the bootloader will be re-build and re-flash
|
||||
every time the pristine build is used.
|
||||
|
||||
For more information about the system build please read the :ref:`sysbuild` documentation.
|
||||
|
||||
Manual build
|
||||
============
|
||||
|
||||
During the development cycle, it is intended to build & flash as quickly possible.
|
||||
For that reason, images can be built one at a time using traditional build.
|
||||
|
||||
The instructions following are relevant for both manual build and sysbuild.
|
||||
The only difference is the structure of the build directory.
|
||||
|
||||
.. note::
|
||||
|
||||
Remember that bootloader (MCUboot) needs to be flash at least once.
|
||||
|
||||
Build and flash applications as usual (see :ref:`build_an_application` and
|
||||
:ref:`application_run` for more details).
|
||||
|
||||
.. zephyr-app-commands::
|
||||
:zephyr-app: samples/hello_world
|
||||
:board: esp32_devkitc/esp32/procpu
|
||||
:goals: build
|
||||
|
||||
The usual ``flash`` target will work with the ``esp32_devkitc`` board
|
||||
configuration. Here is an example for the :zephyr:code-sample:`hello_world`
|
||||
application.
|
||||
|
||||
.. zephyr-app-commands::
|
||||
:zephyr-app: samples/hello_world
|
||||
:board: esp32_devkitc/esp32/procpu
|
||||
:goals: flash
|
||||
|
||||
Open the serial monitor using the following command:
|
||||
|
||||
.. code-block:: shell
|
||||
|
||||
west espressif monitor
|
||||
|
||||
After the board has automatically reset and booted, you should see the following
|
||||
message in the monitor:
|
||||
|
||||
.. code-block:: console
|
||||
|
||||
***** Booting Zephyr OS vx.x.x-xxx-gxxxxxxxxxxxx *****
|
||||
Hello World! esp32_devkitc
|
||||
|
||||
Debugging
|
||||
*********
|
||||
|
||||
ESP32 support on OpenOCD is available at `OpenOCD ESP32`_.
|
||||
|
||||
On the ESP32-DevKitC board, the JTAG pins are not run to a
|
||||
standard connector (e.g. ARM 20-pin) and need to be manually connected
|
||||
to the external programmer (e.g. a Flyswatter2):
|
||||
|
||||
+------------+-----------+
|
||||
| ESP32 pin | JTAG pin |
|
||||
+============+===========+
|
||||
| 3V3 | VTRef |
|
||||
+------------+-----------+
|
||||
| EN | nTRST |
|
||||
+------------+-----------+
|
||||
| IO14 | TMS |
|
||||
+------------+-----------+
|
||||
| IO12 | TDI |
|
||||
+------------+-----------+
|
||||
| GND | GND |
|
||||
+------------+-----------+
|
||||
| IO13 | TCK |
|
||||
+------------+-----------+
|
||||
| IO15 | TDO |
|
||||
+------------+-----------+
|
||||
|
||||
Further documentation can be obtained from the SoC vendor in `JTAG debugging for ESP32`_.
|
||||
|
||||
Here is an example for building the :zephyr:code-sample:`hello_world` application.
|
||||
|
||||
.. zephyr-app-commands::
|
||||
:zephyr-app: samples/hello_world
|
||||
:board: esp32_devkitc/esp32/procpu
|
||||
:goals: build flash
|
||||
|
||||
You can debug an application in the usual way. Here is an example for the :zephyr:code-sample:`hello_world` application.
|
||||
|
||||
.. zephyr-app-commands::
|
||||
:zephyr-app: samples/hello_world
|
||||
:board: esp32_devkitc/esp32/procpu
|
||||
:goals: debug
|
||||
|
||||
Note on Debugging with GDB Stub
|
||||
===============================
|
||||
|
||||
GDB stub is enabled on ESP32.
|
||||
|
||||
* When adding breakpoints, please use hardware breakpoints with command
|
||||
``hbreak``. Command ``break`` uses software breakpoints which requires
|
||||
modifying memory content to insert break/trap instructions.
|
||||
This does not work as the code is on flash which cannot be randomly
|
||||
accessed for modification.
|
||||
|
||||
References
|
||||
**********
|
||||
|
||||
.. target-notes::
|
||||
|
||||
.. _`ESP32-DevKitC`: https://docs.espressif.com/projects/esp-dev-kits/en/latest/esp32/esp32-devkitc/index.html
|
||||
.. _`ESP32 Datasheet`: https://www.espressif.com/sites/default/files/documentation/esp32_datasheet_en.pdf
|
||||
.. _`ESP32 Technical Reference Manual`: https://espressif.com/sites/default/files/documentation/esp32_technical_reference_manual_en.pdf
|
||||
.. _`JTAG debugging for ESP32`: https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/jtag-debugging/index.html
|
||||
.. _`OpenOCD ESP32`: https://github.com/espressif/openocd-esp32/releases
|
||||
107
boards/espressif/esp32_devkitc/esp32_devkitc-pinctrl.dtsi
Normal file
107
boards/espressif/esp32_devkitc/esp32_devkitc-pinctrl.dtsi
Normal file
@@ -0,0 +1,107 @@
|
||||
/*
|
||||
* Copyright (c) 2022-2025 Espressif Systems (Shanghai) Co., Ltd.
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include <zephyr/dt-bindings/pinctrl/esp-pinctrl-common.h>
|
||||
#include <dt-bindings/pinctrl/esp32-pinctrl.h>
|
||||
#include <zephyr/dt-bindings/pinctrl/esp32-gpio-sigmap.h>
|
||||
|
||||
&pinctrl {
|
||||
|
||||
uart0_default: uart0_default {
|
||||
group1 {
|
||||
pinmux = <UART0_TX_GPIO1>;
|
||||
output-high;
|
||||
};
|
||||
group2 {
|
||||
pinmux = <UART0_RX_GPIO3>;
|
||||
bias-pull-up;
|
||||
};
|
||||
};
|
||||
|
||||
uart1_default: uart1_default {
|
||||
group1 {
|
||||
pinmux = <UART1_TX_GPIO10>;
|
||||
};
|
||||
group2 {
|
||||
pinmux = <UART1_RX_GPIO9>;
|
||||
bias-pull-up;
|
||||
};
|
||||
};
|
||||
|
||||
uart2_default: uart2_default {
|
||||
group1 {
|
||||
pinmux = <UART2_TX_GPIO17>;
|
||||
};
|
||||
group2 {
|
||||
pinmux = <UART2_RX_GPIO16>;
|
||||
bias-pull-up;
|
||||
};
|
||||
};
|
||||
|
||||
spim2_default: spim2_default {
|
||||
group1 {
|
||||
pinmux = <SPIM2_MISO_GPIO12>,
|
||||
<SPIM2_SCLK_GPIO14>,
|
||||
<SPIM2_CSEL_GPIO15>;
|
||||
};
|
||||
group2 {
|
||||
pinmux = <SPIM2_MOSI_GPIO13>;
|
||||
output-low;
|
||||
};
|
||||
};
|
||||
|
||||
spim3_default: spim3_default {
|
||||
group1 {
|
||||
pinmux = <SPIM3_MISO_GPIO19>,
|
||||
<SPIM3_SCLK_GPIO18>,
|
||||
<SPIM3_CSEL_GPIO5>;
|
||||
};
|
||||
group2 {
|
||||
pinmux = <SPIM3_MOSI_GPIO23>;
|
||||
output-low;
|
||||
};
|
||||
};
|
||||
|
||||
i2c0_default: i2c0_default {
|
||||
group1 {
|
||||
pinmux = <I2C0_SDA_GPIO21>,
|
||||
<I2C0_SCL_GPIO22>;
|
||||
bias-pull-up;
|
||||
drive-open-drain;
|
||||
output-high;
|
||||
};
|
||||
};
|
||||
|
||||
i2s0_default: i2s0_default {
|
||||
group1 {
|
||||
pinmux = <I2S0_O_WS_GPIO5>,
|
||||
<I2S0_O_BCK_GPIO6>,
|
||||
<I2S0_O_SD_GPIO7>,
|
||||
<I2S0_I_WS_GPIO15>,
|
||||
<I2S0_I_BCK_GPIO16>;
|
||||
output-enable;
|
||||
};
|
||||
group2 {
|
||||
pinmux = <I2S0_I_SD_GPIO17>;
|
||||
input-enable;
|
||||
};
|
||||
};
|
||||
|
||||
i2s1_default: i2s1_default {
|
||||
group1 {
|
||||
pinmux = <I2S1_O_WS_GPIO8>,
|
||||
<I2S1_O_BCK_GPIO3>,
|
||||
<I2S1_O_SD_GPIO9>,
|
||||
<I2S1_I_WS_GPIO10>,
|
||||
<I2S1_I_BCK_GPIO11>;
|
||||
output-enable;
|
||||
};
|
||||
group2 {
|
||||
pinmux = <I2S1_I_SD_GPIO12>;
|
||||
input-enable;
|
||||
};
|
||||
};
|
||||
};
|
||||
30
boards/espressif/esp32_devkitc/esp32_devkitc_appcpu.dts
Normal file
30
boards/espressif/esp32_devkitc/esp32_devkitc_appcpu.dts
Normal file
@@ -0,0 +1,30 @@
|
||||
/*
|
||||
* Copyright (c) 2023-2025 Espressif Systems (Shanghai) Co., Ltd.
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
/dts-v1/;
|
||||
|
||||
#include <espressif/esp32/esp32_appcpu.dtsi>
|
||||
#include <espressif/partitions_0x1000_amp.dtsi>
|
||||
|
||||
/ {
|
||||
model = "Espressif ESP32-DevkitC APPCPU";
|
||||
compatible = "espressif,esp32";
|
||||
|
||||
chosen {
|
||||
zephyr,sram = &sram1;
|
||||
zephyr,ipc_shm = &shm0;
|
||||
zephyr,ipc = &ipm0;
|
||||
zephyr,flash = &flash0;
|
||||
zephyr,code-partition = &slot0_appcpu_partition;
|
||||
};
|
||||
};
|
||||
|
||||
&ipm0 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&trng0 {
|
||||
status = "okay";
|
||||
};
|
||||
27
boards/espressif/esp32_devkitc/esp32_devkitc_appcpu.yaml
Normal file
27
boards/espressif/esp32_devkitc/esp32_devkitc_appcpu.yaml
Normal file
@@ -0,0 +1,27 @@
|
||||
identifier: esp32_devkitc/esp32/appcpu
|
||||
name: ESP32-DevkitC APPCPU
|
||||
type: mcu
|
||||
arch: xtensa
|
||||
toolchain:
|
||||
- zephyr
|
||||
supported:
|
||||
- uart
|
||||
testing:
|
||||
ignore_tags:
|
||||
- net
|
||||
- bluetooth
|
||||
- flash
|
||||
- cpp
|
||||
- posix
|
||||
- watchdog
|
||||
- logging
|
||||
- kernel
|
||||
- pm
|
||||
- gpio
|
||||
- crypto
|
||||
- eeprom
|
||||
- heap
|
||||
- cmsis_rtos
|
||||
- jwt
|
||||
- zdsp
|
||||
vendor: espressif
|
||||
@@ -0,0 +1,3 @@
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
CONFIG_CLOCK_CONTROL=y
|
||||
146
boards/espressif/esp32_devkitc/esp32_devkitc_procpu.dts
Normal file
146
boards/espressif/esp32_devkitc/esp32_devkitc_procpu.dts
Normal file
@@ -0,0 +1,146 @@
|
||||
/*
|
||||
* Copyright (c) 2023-2025 Espressif Systems (Shanghai) Co., Ltd.
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
/dts-v1/;
|
||||
|
||||
#include <espressif/esp32/esp32_wrover_e_n4r8.dtsi>
|
||||
#include "esp32_devkitc-pinctrl.dtsi"
|
||||
#include <zephyr/dt-bindings/input/input-event-codes.h>
|
||||
#include <zephyr/dt-bindings/input/esp32-touch-sensor-input.h>
|
||||
#include <espressif/partitions_0x1000_amp.dtsi>
|
||||
|
||||
/ {
|
||||
model = "Espressif ESP32-DevkitC PROCPU";
|
||||
compatible = "espressif,esp32";
|
||||
|
||||
aliases {
|
||||
uart-0 = &uart0;
|
||||
i2c-0 = &i2c0;
|
||||
sw0 = &button0;
|
||||
watchdog0 = &wdt0;
|
||||
};
|
||||
|
||||
buttons {
|
||||
compatible = "gpio-keys";
|
||||
button0: button_0 {
|
||||
gpios = <&gpio0 0 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
|
||||
label = "BOOT Button";
|
||||
zephyr,code = <INPUT_KEY_0>;
|
||||
};
|
||||
};
|
||||
|
||||
chosen {
|
||||
zephyr,sram = &sram1;
|
||||
zephyr,console = &uart0;
|
||||
zephyr,shell-uart = &uart0;
|
||||
zephyr,flash = &flash0;
|
||||
zephyr,code-partition = &slot0_partition;
|
||||
zephyr,bt-hci = &esp32_bt_hci;
|
||||
};
|
||||
};
|
||||
|
||||
&uart0 {
|
||||
status = "okay";
|
||||
current-speed = <115200>;
|
||||
pinctrl-0 = <&uart0_default>;
|
||||
pinctrl-names = "default";
|
||||
};
|
||||
|
||||
&uart1 {
|
||||
current-speed = <115200>;
|
||||
pinctrl-0 = <&uart1_default>;
|
||||
pinctrl-names = "default";
|
||||
};
|
||||
|
||||
&uart2 {
|
||||
current-speed = <115200>;
|
||||
pinctrl-0 = <&uart2_default>;
|
||||
pinctrl-names = "default";
|
||||
};
|
||||
|
||||
&gpio0 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&gpio1 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&touch {
|
||||
debounce-interval-ms = <30>;
|
||||
href-microvolt = <2700000>;
|
||||
lref-microvolt = <500000>;
|
||||
href-atten-microvolt = <1000000>;
|
||||
filter-mode = <ESP32_TOUCH_FILTER_MODE_IIR_16>;
|
||||
filter-debounce-cnt = <1>;
|
||||
filter-noise-thr = <ESP32_TOUCH_FILTER_NOISE_THR_4_8TH>;
|
||||
filter-jitter-step = <4>;
|
||||
filter-smooth-level = <ESP32_TOUCH_FILTER_SMOOTH_MODE_IIR_2>;
|
||||
};
|
||||
|
||||
&i2c0 {
|
||||
status = "okay";
|
||||
clock-frequency = <I2C_BITRATE_STANDARD>;
|
||||
sda-gpios = <&gpio0 21 GPIO_OPEN_DRAIN>;
|
||||
scl-gpios = <&gpio0 22 GPIO_OPEN_DRAIN>;
|
||||
pinctrl-0 = <&i2c0_default>;
|
||||
pinctrl-names = "default";
|
||||
};
|
||||
|
||||
&i2s0 {
|
||||
pinctrl-0 = <&i2s0_default>;
|
||||
pinctrl-names = "default";
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
&i2s1 {
|
||||
pinctrl-0 = <&i2s1_default>;
|
||||
pinctrl-names = "default";
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
&spi2 {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
status = "okay";
|
||||
pinctrl-0 = <&spim2_default>;
|
||||
pinctrl-names = "default";
|
||||
};
|
||||
|
||||
&spi3 {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
status = "okay";
|
||||
pinctrl-0 = <&spim3_default>;
|
||||
pinctrl-names = "default";
|
||||
};
|
||||
|
||||
&timer0 {
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
&timer1 {
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
&timer2 {
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
&timer3 {
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
&trng0 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&esp32_bt_hci {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&wifi {
|
||||
status = "okay";
|
||||
};
|
||||
22
boards/espressif/esp32_devkitc/esp32_devkitc_procpu.yaml
Normal file
22
boards/espressif/esp32_devkitc/esp32_devkitc_procpu.yaml
Normal file
@@ -0,0 +1,22 @@
|
||||
identifier: esp32_devkitc/esp32/procpu
|
||||
name: ESP32-DevkitC PROCPU
|
||||
type: mcu
|
||||
arch: xtensa
|
||||
toolchain:
|
||||
- zephyr
|
||||
supported:
|
||||
- adc
|
||||
- dac
|
||||
- gpio
|
||||
- i2c
|
||||
- i2s
|
||||
- watchdog
|
||||
- uart
|
||||
- nvs
|
||||
- pwm
|
||||
- dac
|
||||
- spi
|
||||
- counter
|
||||
- entropy
|
||||
- input
|
||||
vendor: espressif
|
||||
@@ -0,0 +1,8 @@
|
||||
# Copyright (c) 2023-2025 Espressif Systems (Shanghai) Co., Ltd.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
CONFIG_CONSOLE=y
|
||||
CONFIG_SERIAL=y
|
||||
CONFIG_UART_CONSOLE=y
|
||||
|
||||
CONFIG_GPIO=y
|
||||
5
boards/espressif/esp32_devkitc/support/openocd.cfg
Normal file
5
boards/espressif/esp32_devkitc/support/openocd.cfg
Normal file
@@ -0,0 +1,5 @@
|
||||
set ESP_RTOS none
|
||||
set ESP32_ONLYCPU 1
|
||||
|
||||
source [find interface/ftdi/esp32_devkitj_v1.cfg]
|
||||
source [find target/esp32.cfg]
|
||||
Reference in New Issue
Block a user