Skip to content

esp32s3/python: add support for running Python on ESP32-S3 - #15955

Merged
acassis merged 3 commits into
apache:masterfrom
tmedicci:feature/python_esp32s3
Mar 8, 2025
Merged

acassis merged 3 commits into
apache:masterfrom
tmedicci:feature/python_esp32s3

Conversation

@tmedicci

@tmedicci tmedicci commented Mar 7, 2025

Copy link
Copy Markdown
Contributor

Summary

Add a defconfig that enables the Python interpreter on ESP32-S3 and add the related documentation about it for both the Python Interpreter and ESP32-S3-DevKitC-board entries.

Impact

Impact on user: YES. Users can try Python on ESP32-S3 - the first real HW to support it on NuttX

Impact on build: NO.

Impact on hardware: YES. Tweak ESP32-S3 to support Python on NuttX

Impact on documentation: YES. Related entries were updated.

Impact on security: NO.

Impact on compatibility: NO.

Testing

The testing procedure is provided in the updated documentation.

Please check the following article just published to Espressif's Developer portal: Running Python on ESP32-S3 with NuttX

Building and Flashing

cd nuttx
make distclean
./tools/configure.sh esp32s3-devkit:python
make flash ESPTOOL_BINDIR=./ ESPTOOL_PORT=/dev/ttyUSB0 -s -j$(nproc)

Running

Just run python:

nsh> python
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.
>>>

tmedicci added 2 commits March 7, 2025 15:31
This defconfig allows using Python on ESP32-S3.

Signed-off-by: Tiago Medicci Serrano <tiago.medicci@espressif.com>
This commit adds the entries in the documentation about running
Python on ESP32-S3.

Signed-off-by: Tiago Medicci Serrano <tiago.medicci@espressif.com>
@github-actions github-actions Bot added Area: Documentation Improvements or additions to documentation Board: xtensa Size: M The size of the change in this PR is medium labels Mar 7, 2025
@nuttxpr

nuttxpr commented Mar 7, 2025

Copy link
Copy Markdown

[Experimental Bot, please feedback here]

Yes, this PR appears to meet the NuttX requirements. The summary clearly explains the change, its purpose, and affected components. The impact section adequately addresses all points, noting the user impact (new feature), hardware impact (ESP32-S3 tweaks), and documentation impact (updated entries). The testing section, while not containing traditional before/after logs, provides clear build, flash, and run instructions along with an external link to a supporting blog post that likely contains more detailed information. This approach seems reasonable given the nature of the change (introducing a new feature/configuration). The link to the Espressif article strengthens the testing verification.

This prevents CI from testing esp32s3-devkit:python automatically,
avoiding it to be overloaded. Manual testing can be triggered to
test xtensa-03.dat.

Signed-off-by: Tiago Medicci Serrano <tiago.medicci@espressif.com>
@tmedicci
tmedicci force-pushed the feature/python_esp32s3 branch from ea7fc88 to b5ec562 Compare March 7, 2025 20:40
lupyuen added a commit to lupyuen/nuttx-release that referenced this pull request Mar 8, 2025

@lupyuen lupyuen left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added xtensa-03 to NuttX Build Farm. Thanks :-)

@acassis
acassis merged commit e4ca1a2 into apache:master Mar 8, 2025
@tmedicci

tmedicci commented Mar 8, 2025

Copy link
Copy Markdown
Contributor Author

I added xtensa-03 to NuttX Build Farm. Thanks :-)

Thanks, @lupyuen !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: CI Area: Documentation Improvements or additions to documentation Area: Tooling Board: xtensa Size: M The size of the change in this PR is medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants