Skip to content

Commit 5a3db53

Browse files
sylvioalvesnordicjm
authored andcommitted
boards: xtensa: xiao_esp32s3: Convert to v2
Converts the board to hwmv2 Signed-off-by: Sylvio Alves <[email protected]>
1 parent ddf2c13 commit 5a3db53

18 files changed

+136
-23
lines changed

boards/seeed/xiao_esp32s3/Kconfig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Copyright (c) 2024 Espressif Systems (Shanghai) Co., Ltd.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
config BOARD_XIAO_ESP32S3
5+
select SOC_ESP32S3_PROCPU if BOARD_XIAO_ESP32S3_ESP32S3_PROCPU
6+
select SOC_ESP32S3_APPCPU if BOARD_XIAO_ESP32S3_ESP32S3_APPCPU
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
# Copyright (c) 2023 Seeed Studio inc.
22
# SPDX-License-Identifier: Apache-2.0
33

4-
config BOARD
5-
default "xiao_esp32s3"
6-
depends on BOARD_XIAO_ESP32S3
7-
8-
config ENTROPY_GENERATOR
9-
default y
4+
if BOARD_XIAO_ESP32S3_ESP32S3_PROCPU
105

116
config HEAP_MEM_POOL_ADD_SIZE_BOARD
127
int
@@ -18,3 +13,12 @@ config HEAP_MEM_POOL_ADD_SIZE_BOARD
1813
choice BT_HCI_BUS_TYPE
1914
default BT_ESP32 if BT
2015
endchoice
16+
17+
endif # BOARD_XIAO_ESP32S3_ESP32S3_PROCPU
18+
19+
if BOARD_XIAO_ESP32S3_ESP32S3_APPCPU
20+
21+
config HEAP_MEM_POOL_ADD_SIZE_BOARD
22+
default 256
23+
24+
endif # BOARD_XIAO_ESP32S3_ESP32S3_APPCPU

boards/boards_legacy/xtensa/xiao_esp32s3/Kconfig.board renamed to boards/seeed/xiao_esp32s3/Kconfig.xiao_esp32s3

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,4 @@
44
# SPDX-License-Identifier: Apache-2.0
55

66
config BOARD_XIAO_ESP32S3
7-
bool "XIAO ESP32S3 Board"
8-
depends on SOC_SERIES_ESP32S3
9-
10-
choice SOC_PART_NUMBER
11-
default SOC_ESP32S3_WROOM_N8R8
12-
endchoice
7+
select SOC_ESP32S3_WROOM_N8R8

boards/seeed/xiao_esp32s3/board.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
board:
2+
name: xiao_esp32s3
3+
vendor: seeed
4+
socs:
5+
- name: esp32s3

boards/boards_legacy/xtensa/xiao_esp32s3/doc/index.rst renamed to boards/seeed/xiao_esp32s3/doc/index.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,9 @@ Zephyr build. Output is structured by the domain subdirectories:
148148
149149
build/
150150
├── hello_world
151-
   └── zephyr
152-
   ├── zephyr.elf
153-
   └── zephyr.bin
151+
└── zephyr
152+
├── zephyr.elf
153+
└── zephyr.bin
154154
├── mcuboot
155155
│ └── zephyr
156156
│ ├── zephyr.elf
@@ -182,7 +182,7 @@ Build and flash applications as usual (see :ref:`build_an_application` and
182182

183183
.. zephyr-app-commands::
184184
:zephyr-app: samples/hello_world
185-
:board: xiao_esp32s3
185+
:board: xiao_esp32s3/esp32s3/procpu
186186
:goals: build
187187

188188
The usual ``flash`` target will work with the ``xiao_esp32s3`` board
@@ -191,7 +191,7 @@ application.
191191

192192
.. zephyr-app-commands::
193193
:zephyr-app: samples/hello_world
194-
:board: xiao_esp32s3
194+
:board: xiao_esp32s3/esp32s3/procpu
195195
:goals: flash
196196

197197
Open the serial monitor using the following command:
@@ -223,14 +223,14 @@ Here is an example for building the :ref:`hello_world` application.
223223

224224
.. zephyr-app-commands::
225225
:zephyr-app: samples/hello_world
226-
:board: xiao_esp32s3
226+
:board: xiao_esp32s3/esp32/procpu
227227
:goals: build flash
228228

229229
You can debug an application in the usual way. Here is an example for the :ref:`hello_world` application.
230230

231231
.. zephyr-app-commands::
232232
:zephyr-app: samples/hello_world
233-
:board: xiao_esp32s3
233+
:board: xiao_esp32s3/esp32/procpu
234234
:goals: debug
235235
.. _`JTAG debugging for ESP32-S3`: https://docs.espressif.com/projects/esp-idf/en/latest/esp32s3/api-guides/jtag-debugging/
236236
.. _`OpenOCD`: https://github.com/openocd-org/openocd

0 commit comments

Comments
 (0)