Skip to content

Commit 9bac911

Browse files
author
Marek Matej
committed
boards: Update all vendors documentation related with Espressif SoCs
Update the documentation of ESP32 related boards: * use included sections * fix the `References` links if applicable. Signed-off-by: Marek Matej <[email protected]>
1 parent 4a69c1b commit 9bac911

File tree

46 files changed

+592
-5330
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+592
-5330
lines changed

boards/01space/esp32c3_042_oled/doc/index.rst

Lines changed: 12 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,6 @@ It features:
3131
The ESP32-C3 does not have native USB, it has an on-chip USB-serial converter
3232
instead.
3333

34-
Supported Features
35-
==================
36-
37-
.. zephyr:board-supported-hw::
38-
3934
Connections and IOs
4035
===================
4136

@@ -50,11 +45,11 @@ See the following image:
5045
It also features a 0.42 inch OLED display, driven by a SSD1306-compatible chip.
5146
It is connected over I2C: SDA on GPIO5, SCL on GPIO6.
5247

53-
Prerequisites
54-
=============
48+
System requirements
49+
*******************
5550

56-
Espressif HAL requires WiFi and Bluetooth binary blobs. Run the command below to
57-
retrieve those files.
51+
Espressif HAL requires WiFi and Bluetooth binary blobs in order work. Run the command
52+
below to retrieve those files.
5853

5954
.. code-block:: console
6055
@@ -69,68 +64,17 @@ Programming and Debugging
6964

7065
.. zephyr:board-supported-runners::
7166
72-
Standalone application
73-
======================
74-
75-
The board can be loaded using a single binary image, without 2nd stage bootloader.
76-
It is the default option when building the application without additional configuration.
77-
78-
.. note::
79-
80-
This mode does not provide any security features nor OTA updates.
81-
82-
Use the following command to build a sample hello_world application:
83-
84-
.. zephyr-app-commands::
85-
:zephyr-app: samples/hello_world
86-
:board: esp32c3_042_oled
87-
:goals: build
88-
89-
Sysbuild
90-
========
91-
92-
:ref:`sysbuild` makes it possible to build and flash all necessary images needed to
93-
bootstrap the board.
94-
95-
By default, the ESP32 sysbuild configuration creates bootloader (MCUboot) and
96-
application images.
67+
.. include:: ../../../espressif/common/building-flashing.rst
68+
:start-after: espressif-building-flashing
9769

98-
To build the sample application using sysbuild, use this command:
70+
.. include:: ../../../espressif/common/board-variants.rst
71+
:start-after: espressif-board-variants
9972

100-
.. zephyr-app-commands::
101-
:tool: west
102-
:zephyr-app: samples/hello_world
103-
:board: esp32c3_042_oled
104-
:goals: build
105-
:west-args: --sysbuild
106-
:compact:
107-
108-
Flashing
109-
========
110-
111-
For the :code:`Hello, world!` application, follow the instructions below.
112-
Assuming the board is connected to ``/dev/ttyACM0`` on Linux.
113-
114-
.. zephyr-app-commands::
115-
:zephyr-app: samples/hello_world
116-
:board: esp32c3_042_oled
117-
:goals: flash
118-
:flash-args: --esp-device /dev/ttyACM0
119-
120-
Since the Zephyr console is by default on the ``usb_serial`` device, we use
121-
the espressif monitor utility to connect to the console.
122-
123-
.. code-block:: console
124-
125-
$ west espressif monitor -p /dev/ttyACM0
126-
127-
After the board has automatically reset and booted, you should see the following
128-
message in the monitor:
129-
130-
.. code-block:: console
73+
Debugging
74+
=========
13175

132-
***** Booting Zephyr OS vx.x.x-xxx-gxxxxxxxxxxxx *****
133-
Hello World! esp32c3_042_oled
76+
.. include:: ../../../espressif/common/openocd-debugging.rst
77+
:start-after: espressif-openocd-debugging
13478

13579
References
13680
**********

boards/adafruit/feather_esp32/doc/index.rst

Lines changed: 19 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@ Supported Features
2525
System requirements
2626
===================
2727

28-
Prerequisites
29-
-------------
30-
3128
Espressif HAL requires WiFi and Bluetooth binary blobs in order to work. Run
3229
the commands below to retrieve the files.
3330

@@ -36,26 +33,22 @@ the commands below to retrieve the files.
3633
west update
3734
west blobs fetch hal_espressif
3835
39-
Building & flashing
40-
-------------------
41-
42-
Use the standard build and flash process for this board. See
43-
:ref:`build_an_application` and :ref:`application_run` for more details.
36+
Programming and Debugging
37+
*************************
4438

45-
.. zephyr-app-commands::
46-
:zephyr-app: samples/hello_world
47-
:board: adafruit_feather_esp32/esp32/procpu
48-
:goals: build flash
39+
.. zephyr:board-supported-runners::
4940
50-
The baud rate of 921600bps is set by default. If experiencing issues when flashing,
51-
try using different values by using ``--esp-baud-rate <BAUD>`` option during
52-
``west flash`` (e.g. ``west flash --esp-baud-rate 115200``).
41+
.. include:: ../../../espressif/common/building-flashing.rst
42+
:start-after: espressif-building-flashing
5343

54-
After flashing, view the serial monitor with the espressif monitor command.
44+
.. include:: ../../../espressif/common/board-variants.rst
45+
:start-after: espressif-board-variants
5546

56-
.. code-block:: shell
47+
Debugging
48+
=========
5749

58-
west espressif monitor
50+
.. include:: ../../../espressif/common/openocd-debugging.rst
51+
:start-after: espressif-openocd-debugging
5952

6053
Testing
6154
=======
@@ -106,8 +99,11 @@ Test ESP32 Wi-Fi functionality using the Wi-Fi shell module.
10699

107100
References
108101
**********
109-
- `Adafruit ESP32 Feather V2 <https://www.adafruit.com/product/5400>`_
110-
- `Adafruit ESP32 Feather V2 Pinouts <https://learn.adafruit.com/adafruit-esp32-feather-v2/pinouts>`_
111-
- `Adafruit ESP32 Feather V2 Schematic <https://learn.adafruit.com/adafruit-esp32-feather-v2/downloads#schematic-and-fab-print-3112284>`_
112-
- `ESP32-PICO-MINI-02 Datasheet <https://cdn-learn.adafruit.com/assets/assets/000/109/588/original/esp32-pico-mini-02_datasheet_en.pdf?1646852017>`_ (PDF)
113-
- `STEMMA QT <https://learn.adafruit.com/introducing-adafruit-stemma-qt>`_
102+
103+
.. target-notes::
104+
105+
- _`Adafruit ESP32 Feather V2`: https://www.adafruit.com/product/5400
106+
- _`Adafruit ESP32 Feather V2 Pinouts`: https://learn.adafruit.com/adafruit-esp32-feather-v2/pinouts
107+
- _`Adafruit ESP32 Feather V2 Schematic`: https://learn.adafruit.com/adafruit-esp32-feather-v2/downloads#schematic-and-fab-print-3112284
108+
- _`ESP32-PICO-MINI-02 Datasheet`: https://cdn-learn.adafruit.com/assets/assets/000/109/588/original/esp32-pico-mini-02_datasheet_en.pdf?1646852017
109+
- _`STEMMA QT`: https://learn.adafruit.com/introducing-adafruit-stemma-qt

boards/adafruit/feather_esp32s2/doc/adafruit_feather_esp32s2.rst

Lines changed: 12 additions & 190 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,8 @@ pinouts and the schematic.
5656
- `Adafruit ESP32-S2 Feather Pinouts`_
5757
- `Adafruit ESP32-S2 Feather Schematic`_
5858

59-
Programming and Debugging
60-
*************************
61-
62-
.. zephyr:board-supported-runners::
63-
64-
Prerequisites
65-
=============
59+
System requirements
60+
*******************
6661

6762
Espressif HAL requires WiFi binary blobs in order work. Run the command below
6863
to retrieve those files.
@@ -72,195 +67,22 @@ to retrieve those files.
7267
west update
7368
west blobs fetch hal_espressif
7469
75-
Building & Flashing
76-
*******************
77-
78-
Simple boot
79-
===========
80-
81-
The board could be loaded using the single binary image, without 2nd stage
82-
bootloader. It is the default option when building the application without
83-
additional configuration.
84-
85-
.. note::
86-
87-
Simple boot does not provide any security features nor OTA updates.
88-
89-
MCUboot bootloader
90-
==================
91-
92-
User may choose to use MCUboot bootloader instead. In that case the bootloader
93-
must be built (and flashed) at least once.
94-
95-
There are two options to be used when building an application:
96-
97-
1. Sysbuild
98-
2. Manual build
99-
100-
.. note::
101-
102-
User can select the MCUboot bootloader by adding the following line
103-
to the board default configuration file.
104-
105-
.. code:: cfg
106-
107-
CONFIG_BOOTLOADER_MCUBOOT=y
108-
109-
Sysbuild
110-
========
111-
112-
The sysbuild makes possible to build and flash all necessary images needed to
113-
bootstrap the board with the ESP32 SoC.
114-
115-
To build the sample application using sysbuild use the command:
116-
117-
**Rev B**
118-
119-
.. zephyr-app-commands::
120-
:zephyr-app: samples/hello_world
121-
:board: adafruit_feather_esp32s2@B
122-
:goals: build
123-
:west-args: --sysbuild
124-
:compact:
125-
126-
**Rev C**
127-
128-
.. zephyr-app-commands::
129-
:zephyr-app: samples/hello_world
130-
:board: adafruit_feather_esp32s2@C
131-
:goals: build
132-
:west-args: --sysbuild
133-
:compact:
134-
135-
By default, the ESP32 sysbuild creates bootloader (MCUboot) and application
136-
images. But it can be configured to create other kind of images.
137-
138-
Build directory structure created by sysbuild is different from traditional
139-
Zephyr build. Output is structured by the domain subdirectories:
140-
141-
.. code-block::
142-
143-
build/
144-
├── hello_world
145-
│ └── zephyr
146-
│ ├── zephyr.elf
147-
│ └── zephyr.bin
148-
├── mcuboot
149-
│ └── zephyr
150-
│ ├── zephyr.elf
151-
│ └── zephyr.bin
152-
└── domains.yaml
153-
154-
.. note::
155-
156-
With ``--sysbuild`` option the bootloader will be re-build and re-flash
157-
every time the pristine build is used.
158-
159-
For more information about the system build please read the :ref:`sysbuild` documentation.
160-
161-
Manual build
162-
============
163-
164-
During the development cycle, it is intended to build & flash as quickly possible.
165-
For that reason, images can be built one at a time using traditional build.
166-
167-
The instructions following are relevant for both manual build and sysbuild.
168-
The only difference is the structure of the build directory.
169-
170-
.. note::
171-
172-
Remember that bootloader (MCUboot) needs to be flash at least once.
173-
174-
Build and flash applications as usual:
175-
176-
**Rev B**
177-
178-
.. zephyr-app-commands::
179-
:zephyr-app: samples/hello_world
180-
:board: adafruit_feather_esp32s2@B
181-
:goals: build
182-
183-
**Rev C**
184-
185-
.. zephyr-app-commands::
186-
:zephyr-app: samples/hello_world
187-
:board: adafruit_feather_esp32s2@C
188-
:goals: build
189-
190-
The usual ``flash`` target will work. Here is an example for the :zephyr:code-sample:`hello_world`
191-
application.
192-
193-
To enter ROM bootloader mode, hold down ``boot-button`` while clicking reset button.
194-
When in the ROM bootloader, you can upload code and query the chip using ``west flash``.
195-
196-
197-
**Rev B**
198-
199-
.. zephyr-app-commands::
200-
:zephyr-app: samples/hello_world
201-
:board: adafruit_feather_esp32s2@B
202-
:goals: flash
203-
204-
**Rev C**
205-
206-
.. zephyr-app-commands::
207-
:zephyr-app: samples/hello_world
208-
:board: adafruit_feather_esp32s2@C
209-
:goals: flash
210-
211-
After the flashing you will receive most likely this Error:
212-
213-
.. code-block:: console
214-
215-
WARNING: ESP32-S2FNR2 (revision v0.0) chip was placed into download mode using GPIO0.
216-
esptool.py can not exit the download mode over USB. To run the app, reset the chip manually.
217-
To suppress this note, set --after option to 'no_reset'.
218-
FATAL ERROR: command exited with status 1: ...
219-
220-
As stated in the Warning-Message ``esptool`` can't reset the board by itself and this message
221-
can be ignored and the board needs to be reseted via the Reset-Button manually.
222-
223-
Open the serial monitor using the following command:
224-
225-
.. code-block:: shell
226-
227-
west espressif monitor
70+
Programming and Debugging
71+
*************************
22872

229-
After the board has been manually reseted and booted, you should see the following
230-
message in the monitor:
73+
.. zephyr:board-supported-runners::
23174
232-
.. code-block:: console
75+
.. include:: ../../../espressif/common/building-flashing.rst
76+
:start-after: espressif-building-flashing
23377

234-
***** Booting Zephyr OS vx.x.x-xxx-gxxxxxxxxxxxx *****
235-
Hello World! adafruit_feather_esp32s2
78+
.. include:: ../../../espressif/common/board-variants.rst
79+
:start-after: espressif-board-variants
23680

23781
Debugging
238-
*********
239-
240-
ESP32-S2 support on OpenOCD is available at `OpenOCD`_.
82+
=========
24183

242-
ESP32-S2 has a built-in JTAG circuitry and can be debugged without any
243-
additional chip. Only an USB cable connected to the D+/D- pins is necessary.
244-
245-
Further documentation can be obtained from the SoC vendor
246-
in `JTAG debugging for ESP32-S2`_.
247-
248-
You can debug an application in the usual way. Here is an example for
249-
the :zephyr:code-sample:`hello_world` application.
250-
251-
**Rev B**
252-
253-
.. zephyr-app-commands::
254-
:zephyr-app: samples/hello_world
255-
:board: adafruit_feather_esp32s2@B
256-
:goals: debug
257-
258-
**Rev C**
259-
260-
.. zephyr-app-commands::
261-
:zephyr-app: samples/hello_world
262-
:board: adafruit_feather_esp32s2@C
263-
:goals: debug
84+
.. include:: ../../../espressif/common/openocd-debugging.rst
85+
:start-after: espressif-openocd-debugging
26486

26587
Testing the On-Board-LED
26688
************************

0 commit comments

Comments
 (0)