Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 2 additions & 16 deletions boards/m5stack/m5stack_cores3/Kconfig
Original file line number Diff line number Diff line change
@@ -1,21 +1,7 @@
# Copyright (c) 2024 Zhang Xingtao <[email protected]>
# SPDX-License-Identifier: Apache-2.0

if BOARD_M5STACK_CORES3_ESP32S3_PROCPU

config HEAP_MEM_POOL_ADD_SIZE_BOARD
int
default $(UINT16_MAX) if WIFI && BT
default 51200 if WIFI
default 40960 if BT
default 4096

endif # BOARD_M5STACK_CORES3_ESP32S3_PROCPU

if BOARD_M5STACK_CORES3_ESP32S3_APPCPU

config HEAP_MEM_POOL_ADD_SIZE_BOARD
int
default 256

endif # BOARD_M5STACK_CORES3_ESP32S3_APPCPU
default 4096 if BOARD_M5STACK_CORES3_ESP32S3_PROCPU
default 256 if BOARD_M5STACK_CORES3_ESP32S3_APPCPU
10 changes: 10 additions & 0 deletions boards/m5stack/m5stack_cores3/Kconfig.sysbuild
Original file line number Diff line number Diff line change
@@ -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
29 changes: 9 additions & 20 deletions boards/m5stack/m5stack_cores3/doc/index.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
.. _m5stack_cores3:

M5Stack CoreS3
##############
.. zephyr:board:: m5stack_cores3

Overview
********
Expand All @@ -27,13 +24,6 @@ M5Stack CoreS3 features consist of:
- PMIC AXP2101
- Battery 500mAh 3.7 V

.. figure:: img/m5stack_cores3.webp
:align: center
:alt: M5Stack-CoreS3
:width: 400 px

M5Stack CoreS3 module

Start Application Development
*****************************

Expand Down Expand Up @@ -99,19 +89,18 @@ message in the monitor:
Debugging
---------

ESP32-S3 support on OpenOCD is available upstream as of version 0.12.0.
Download and install OpenOCD from `OpenOCD`_.
ESP32-S3 support on OpenOCD is available at `OpenOCD ESP32`_.

ESP32-S3 has a built-in JTAG circuitry and can be debugged without any additional chip. Only an USB cable connected to the D+/D- pins is necessary.

Further documentation can be obtained from the SoC vendor in `JTAG debugging for ESP32-S3`_.

.. _`OpenOCD`: https://github.com/openocd-org/openocd
.. _`JTAG debugging for ESP32-S3`: https://docs.espressif.com/projects/esp-idf/en/latest/esp32s3/api-guides/jtag-debugging/

References
**********

Related Documents
*****************
.. target-notes::

- `M5Stack CoreS3 official docs <http://docs.m5stack.com/en/core/CoreS3>`_
- `M5Stack CoreS3 schematic <https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/datasheet/core/K128%20CoreS3/Sch_M5_CoreS3_v1.0.pdf>`_ (PDF)
.. _`M5Stack CoreS3 Documentation`: http://docs.m5stack.com/en/core/CoreS3
.. _`M5Stack CoreS3 Schematic`: https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/datasheet/core/K128%20CoreS3/Sch_M5_CoreS3_v1.0.pdf
.. _`OpenOCD ESP32`: https://github.com/espressif/openocd-esp32/releases
.. _`JTAG debugging for ESP32-S3`: https://docs.espressif.com/projects/esp-idf/en/latest/esp32s3/api-guides/jtag-debugging/
43 changes: 4 additions & 39 deletions boards/m5stack/m5stack_cores3/m5stack_cores3_appcpu.dts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
/dts-v1/;

#include <espressif/esp32s3/esp32s3_appcpu.dtsi>
#include <espressif/partitions_0x0_amp.dtsi>
#include "m5stack_cores3-pinctrl.dtsi"

/ {
model = "M5Stack CoreS3 APPCPU";
Expand All @@ -15,6 +17,8 @@
zephyr,sram = &sram0;
zephyr,ipc_shm = &shm0;
zephyr,ipc = &ipm0;
zephyr,flash = &flash0;
zephyr,code-partition = &slot0_appcpu_partition;
};
};

Expand All @@ -25,42 +29,3 @@
&trng0 {
status = "okay";
};

&flash0 {
status = "okay";
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;

/* Reserve 60kB for the bootloader */
boot_partition: partition@1000 {
label = "mcuboot";
reg = <0x00001000 0x0000F000>;
read-only;
};

/* Reserve 1024kB for the application in slot 0 */
slot0_partition: partition@10000 {
label = "image-0";
reg = <0x00010000 0x00100000>;
};

/* Reserve 1024kB for the application in slot 1 */
slot1_partition: partition@110000 {
label = "image-1";
reg = <0x00110000 0x00100000>;
};

/* Reserve 256kB for the scratch partition */
scratch_partition: partition@210000 {
label = "image-scratch";
reg = <0x00210000 0x00040000>;
};

storage_partition: partition@250000 {
label = "storage";
reg = <0x00250000 0x00006000>;
};
};
};
1 change: 0 additions & 1 deletion boards/m5stack/m5stack_cores3/m5stack_cores3_appcpu.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
identifier: m5stack_cores3/esp32s3/appcpu
name: M5Stack CoreS3 APPCPU
type: mcu
twister: false
arch: xtensa
toolchain:
- zephyr
Expand Down
40 changes: 2 additions & 38 deletions boards/m5stack/m5stack_cores3/m5stack_cores3_procpu.dts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

/dts-v1/;

#include <espressif/esp32s3/esp32s3.dtsi>
#include <espressif/esp32s3/esp32s3_wroom_n16r8.dtsi>
#include <espressif/partitions_0x0_amp.dtsi>
#include "m5stack_cores3-pinctrl.dtsi"

/ {
Expand Down Expand Up @@ -76,43 +77,6 @@
status = "okay";
};

&flash0 {
status = "okay";
reg = <0x0 DT_SIZE_M(16)>;

partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;

boot_partition: partition@0 {
label = "mcuboot";
reg = <0x00000000 0x0000F000>;
read-only;
};

slot0_partition: partition@10000 {
label = "image-0";
reg = <0x00010000 0x00100000>;
};

slot1_partition: partition@110000 {
label = "image-1";
reg = <0x00110000 0x00100000>;
};

scratch_partition: partition@210000 {
label = "image-scratch";
reg = <0x00210000 0x00040000>;
};

storage_partition: partition@250000 {
label = "storage";
reg = <0x00250000 0x00006000>;
};
};
};

&esp32_bt_hci {
status = "okay";
};
1 change: 0 additions & 1 deletion boards/m5stack/m5stack_cores3/m5stack_cores3_procpu.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
identifier: m5stack_cores3/esp32s3/procpu
name: M5Stack CoreS3 PROCPU
type: mcu
twister: false
arch: xtensa
toolchain:
- zephyr
Expand Down
Loading