Documentation: Add entry for Python on ESP32-P4

Add entries related to the Python interpreter for ESP32-P4.

Signed-off-by: Tiago Medicci Serrano <tiago.medicci@espressif.com>
This commit is contained in:
Tiago Medicci Serrano 2026-05-22 16:04:15 +02:00 committed by Alan C. Assis
parent 0861662c5e
commit 144cfecc9a
2 changed files with 35 additions and 0 deletions

View file

@ -104,3 +104,32 @@ You will see the NuttShell (NSH) prompt. Run the following commands:
Python 3.13.0 (main, Dec 4 2024, 17:00:42) [GCC 13.2.0] on nuttx
Type "help", "copyright", "credits" or "license" for more information.
>>>
ESP32-P4
--------
For this example, we will use the ESP32-P4-Function-EV-Board.
Use the ``esp32p4-function-ev-board:python`` config to build
Python for NuttX.
Build and flash the ESP32-P4 board with the following commands:
.. code:: console
$ make distclean
$ ./tools/configure.sh -S esp32p4-function-ev-board:python
$ make flash ESPTOOL_PORT=/dev/ttyACM0 -s -j$(nproc)
$ picocom -b 115200 /dev/ttyUSB1
To run Python on ESP32-P4, just open a serial terminal to connect to the board.
You will see the NuttShell (NSH) prompt. Run the following commands:
.. code:: console
nsh> python
Python 3.13.0 (main, May 22 2026, 15:27:11) [GCC 14.2.0] on nuttx
Type "help", "copyright", "credits" or "license" for more information.
>>>
.. warning:: Note that Python for ESP32-P4 supports `pip` to install local
pure-python packages. It also supports the `ctypes` module.

View file

@ -366,6 +366,12 @@ pwm
Demonstrates PWM via LEDC. The ``pwm`` app toggles output with default frequency/duty.
python
------
This configuration enables the Python for ESP32-P4.
Please refer to the :doc:`Python Interpreter </applications/interpreters/python/index>` page.
qencoder
--------