wifi: esp32s2: add board wifi station sample

by adding esp32s2 configs and documentation.

Signed-off-by: Glauber Maroto Ferreira <glauber.ferreira@espressif.com>
This commit is contained in:
Glauber Maroto Ferreira 2021-09-06 14:08:48 -03:00 committed by Christopher Friedt
commit 774aef0cf8
3 changed files with 27 additions and 5 deletions

View file

@ -11,6 +11,15 @@ To configure WiFi credentials, edit ``prj.conf``.
Enabling the ``net_shell`` module provides a set of commands to test the connection. Enabling the ``net_shell`` module provides a set of commands to test the connection.
See :ref:`network shell <net_shell>` for more details. See :ref:`network shell <net_shell>` for more details.
Supported SoCs
**************
The following SoCs are supported by this sample code so far:
* ESP32
* ESP32-S2
* ESP32-C3
Building and Running Building and Running
******************** ********************
@ -21,17 +30,21 @@ The sample can be built and flashed as follows:
.. code-block:: console .. code-block:: console
west build -b esp32 samples/boards/esp32/wifi_station west build -b esp32 samples/boards/esp32/wifi_station
west flash --esp-device /dev/ttyUSB0 west flash
If using another supported Espressif board, replace the board argument in the above
command with your own board (e.g., `esp32s2_saola` board).
Sample Output Sample Output
============= =============
To check output of this sample, any serial console program can be used (i.e. on Linux minicom, putty, screen, etc) To check output of this sample, run ``west espressif monitor`` or any other serial console program (i.e. on Linux
This example uses ``picocom`` on the serial port ``/dev/ttyUSB0``: minicom, putty, screen, etc).
This example uses ``west espressif monitor``, which automatically detects the serial port at ``/dev/ttyUSB0``:
.. code-block:: console .. code-block:: console
$ picocom /dev/ttyUSB0 - 115200 $ west espressif monitor
.. code-block:: console .. code-block:: console

View file

@ -0,0 +1,9 @@
CONFIG_HEAP_MEM_POOL_SIZE=37760
# when enabling NET_SHELL, the following
# helps to optimize memory footprint
CONFIG_ESP32_WIFI_STATIC_RX_BUFFER_NUM=8
CONFIG_ESP32_WIFI_DYNAMIC_RX_BUFFER_NUM=8
CONFIG_ESP32_WIFI_DYNAMIC_TX_BUFFER_NUM=8
CONFIG_ESP32_WIFI_IRAM_OPT=n
CONFIG_ESP32_WIFI_RX_IRAM_OPT=n

View file

@ -2,5 +2,5 @@ sample:
name: Espressif ESP32 WiFi Station name: Espressif ESP32 WiFi Station
tests: tests:
sample.board.esp32: sample.board.esp32:
platform_allow: esp32 platform_allow: esp32 esp32s2_saola
tags: esp32 tags: esp32