Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jmysu/esp32c3-s2-micropython-build
building ESP32C3 micropython notes
https://github.com/jmysu/esp32c3-s2-micropython-build
esp32c3 esp32s2 micropython
Last synced: 3 days ago
JSON representation
building ESP32C3 micropython notes
- Host: GitHub
- URL: https://github.com/jmysu/esp32c3-s2-micropython-build
- Owner: jmysu
- License: gpl-3.0
- Created: 2022-10-09T01:36:06.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-11-27T00:10:37.000Z (about 2 years ago)
- Last Synced: 2024-12-21T20:35:32.104Z (3 days ago)
- Topics: esp32c3, esp32s2, micropython
- Language: Python
- Homepage:
- Size: 1.36 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ESP32C3/S2-micropython-build
building ESP32C3/S2 micropython notesClone esp-idf repository; For ESP32-C3/S2 need V4.3.1+
> _git clone -b v4.4 --recursive https://github.com/espressif/esp-idf.git_
After you've cloned and checked out the IDF to the correct version, run the install.sh script:
> _cd esp-idf_
> _./install.sh_ # (or install.bat on Windows)
> _source export.sh_ # (or export.bat on Windows)The install.sh step only needs to be done once.
You will need to source export.sh for every new session. (For environment variables)
(Or $export ESP_IDF=~/esp_idf $source export.sh)
Clone MicroPython repository...
> _git clone https://www.github.com/micropython/micropython_
> _cd micropython/_
> _make -C mpy-cross/_
> _cd ports/esp32_
> _make submodules_
> _make BOARD=GENERIC_C3/S2 -j4_
> _cd build-GENERIC_C3/S2_
> _(or w/ USBCDC_
> _make BOARD=GENERIC_C3_USB -j4_
> _cd build-GENERIC_C3_USB)_
This will produce a combined firmware.bin image in the build-GENERIC_C3/ subdirectory
(this firmware image is made up of: bootloader.bin, partitions.bin and micropython.bin).Project build complete. To flash, run this command:
> _esptool.py --port /dev/cu.wchusbserialfd130 write_flash -z 0x0 c3_firmware.bin_
>For ESP32-S2
> _esptool.py --port /dev/cu.wchusbserialfd130 write_flash --flash_mode dio -z 0x01000 s2_firmware.bin_
>
Thonny connectted to micropython w/ PyDOS.
micropython display hwInfo.
w/ esp32c3_usbcdc.
Blinking LEDs---
See http://docs.micropython.org/en/latest/esp32/quickref.html for a quick reference,
and http://docs.micropython.org/en/latest/esp32/tutorial/intro.html for a tutorial.
## Reference
[General information about the ESP32 port] https://docs.micropython.org/en/latest/esp32/general.html
[How to build MicroPython for esp32-C3] https://www.jarutex.com/index.php/2022/01/04/9217/
[Awesome resources collections] https://github.com/mcauser/awesome-micropython
[PyDOS] https://github.com/RetiredWizard/PyDOS