Skip to content

Commit 0f65e36

Browse files
committed
boards: xtensa: esp32_devkitc_wrover: Convert to v2
Converts the board to hwmv2 Signed-off-by: Jamie McCrae <[email protected]>
1 parent 847ffd0 commit 0f65e36

18 files changed

+105
-78
lines changed

boards/boards_legacy/xtensa/esp32_devkitc_wrover/Kconfig.board

Lines changed: 0 additions & 14 deletions
This file was deleted.

boards/boards_legacy/xtensa/esp32_devkitc_wrover/esp32_devkitc_wrover_appcpu.dts

Lines changed: 0 additions & 31 deletions
This file was deleted.
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_ESP32_DEVKITC_WROVER
5+
select SOC_ESP32_PROCPU if BOARD_ESP32_DEVKITC_WROVER_ESP32_PROCPU
6+
select SOC_ESP32_APPCPU if BOARD_ESP32_DEVKITC_WROVER_ESP32_APPCPU
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
# Copyright (c) 2023 Espressif Systems (Shanghai) Co., Ltd.
22
# SPDX-License-Identifier: Apache-2.0
33

4-
if BOARD_ESP32_DEVKITC_WROVER
5-
6-
config BOARD
7-
default "esp32_devkitc_wrover"
4+
if BOARD_ESP32_DEVKITC_WROVER_ESP32_PROCPU
85

96
config HEAP_MEM_POOL_ADD_SIZE_BOARD
107
int
@@ -17,19 +14,11 @@ choice BT_HCI_BUS_TYPE
1714
default BT_ESP32 if BT
1815
endchoice
1916

20-
endif # BOARD_ESP32_DEVKITC_WROVER
21-
22-
if BOARD_ESP32_DEVKITC_WROVER_APPCPU
17+
endif # BOARD_ESP32_DEVKITC_WROVER_ESP32_PROCPU
2318

24-
config BOARD
25-
default "esp32_devkitc_wrover_appcpu"
19+
if BOARD_ESP32_DEVKITC_WROVER_ESP32_APPCPU
2620

2721
config HEAP_MEM_POOL_ADD_SIZE_BOARD
2822
default 4096
2923

30-
config KERNEL_BIN_NAME
31-
default "esp32_appcpu_firmware"
32-
endif
33-
34-
config ENTROPY_GENERATOR
35-
default y
24+
endif # BOARD_ESP32_DEVKITC_WROVER_ESP32_APPCPU
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Copyright (c) 2023 Espressif Systems (Shanghai) Co., Ltd.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
config BOARD_ESP32_DEVKITC_WROVER
5+
select SOC_ESP32_WROVER_E_N4R8
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
board:
2+
name: esp32_devkitc_wrover
3+
vendor: espressif
4+
socs:
5+
- name: esp32

boards/boards_legacy/xtensa/esp32_devkitc_wrover/doc/index.rst renamed to boards/espressif/esp32_devkitc_wrover/doc/index.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,9 @@ Zephyr build. Output is structured by the domain subdirectories:
169169
170170
build/
171171
├── hello_world
172-
   └── zephyr
173-
   ├── zephyr.elf
174-
   └── zephyr.bin
172+
└── zephyr
173+
├── zephyr.elf
174+
└── zephyr.bin
175175
├── mcuboot
176176
│ └── zephyr
177177
│ ├── zephyr.elf
@@ -203,7 +203,7 @@ Build and flash applications as usual (see :ref:`build_an_application` and
203203

204204
.. zephyr-app-commands::
205205
:zephyr-app: samples/hello_world
206-
:board: esp32_devkitc_wrover
206+
:board: esp32_devkitc_wrover/esp32/procpu
207207
:goals: build
208208

209209
The usual ``flash`` target will work with the ``esp32_devkitc_wrover`` board
@@ -212,7 +212,7 @@ application.
212212

213213
.. zephyr-app-commands::
214214
:zephyr-app: samples/hello_world
215-
:board: esp32_devkitc_wrover
215+
:board: esp32_devkitc_wrover/esp32/procpu
216216
:goals: flash
217217

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

265265
.. zephyr-app-commands::
266266
:zephyr-app: samples/hello_world
267-
:board: esp32_devkitc_wrover
267+
:board: esp32_devkitc_wrover/esp32/procpu
268268
:goals: build flash
269269

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

272272
.. zephyr-app-commands::
273273
:zephyr-app: samples/hello_world
274-
:board: esp32_devkitc_wrover
274+
:board: esp32_devkitc_wrover/esp32/procpu
275275
:goals: debug
276276

277277
Note on Debugging with GDB Stub

0 commit comments

Comments
 (0)