{"id":15163170,"url":"https://github.com/jmysu/esp32c3-s2-micropython-build","last_synced_at":"2026-01-21T18:01:55.736Z","repository":{"id":182255813,"uuid":"548137223","full_name":"jmysu/ESP32C3-S2-micropython-build","owner":"jmysu","description":"building ESP32C3 micropython notes","archived":false,"fork":false,"pushed_at":"2022-11-27T00:10:37.000Z","size":1431,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-08T08:18:56.006Z","etag":null,"topics":["esp32c3","esp32s2","micropython"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jmysu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2022-10-09T01:36:06.000Z","updated_at":"2023-01-22T11:10:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"f6f7a365-3fff-4321-bb4a-85a7e3b9b7d9","html_url":"https://github.com/jmysu/ESP32C3-S2-micropython-build","commit_stats":null,"previous_names":["jmysu/esp32c3-s2-micropython-build"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmysu%2FESP32C3-S2-micropython-build","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmysu%2FESP32C3-S2-micropython-build/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmysu%2FESP32C3-S2-micropython-build/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmysu%2FESP32C3-S2-micropython-build/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jmysu","download_url":"https://codeload.github.com/jmysu/ESP32C3-S2-micropython-build/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247801170,"owners_count":20998339,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["esp32c3","esp32s2","micropython"],"created_at":"2024-09-27T02:20:21.246Z","updated_at":"2026-01-21T18:01:50.702Z","avatar_url":"https://github.com/jmysu.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ESP32C3/S2-micropython-build\nbuilding ESP32C3/S2 micropython notes\n\u003cbr\u003e\u003cbr\u003e\n\n\nClone esp-idf repository; For ESP32-C3/S2 need V4.3.1+\u003cbr\u003e\n\u003e _git clone -b v4.4 --recursive https://github.com/espressif/esp-idf.git_ \u003cbr\u003e\n\u003cbr\u003e\n\nAfter you've cloned and checked out the IDF to the correct version, run the install.sh script:\u003cbr\u003e\n\u003e _cd esp-idf_ \u003cbr\u003e\n\u003e _./install.sh_       # (or install.bat on Windows)\u003cbr\u003e\n\u003e _source export.sh_   # (or export.bat on Windows)\u003cbr\u003e\n\nThe install.sh step only needs to be done once. \u003cbr\u003e\nYou will need to source export.sh for every new session. (For environment variables)\u003cbr\u003e\n(Or $export ESP_IDF=~/esp_idf $source export.sh)\u003cbr\u003e\n\u003cbr\u003e\n\nClone MicroPython repository...\u003cbr\u003e\n\u003e _git clone https://www.github.com/micropython/micropython_ \u003cbr\u003e\n\u003e _cd micropython/_ \u003cbr\u003e\n\u003e _make -C mpy-cross/_ \u003cbr\u003e\n\u003e _cd ports/esp32_\u003cbr\u003e\n\u003e _make submodules_\u003cbr\u003e\n\u003e _make BOARD=GENERIC_C3/S2 -j4_\u003cbr\u003e\n\u003e _cd build-GENERIC_C3/S2_\u003cbr\u003e\n\u003e _(or w/ USBCDC_\u003cbr\u003e\n\u003e _make BOARD=GENERIC_C3_USB -j4_\u003cbr\u003e\n\u003e _cd build-GENERIC_C3_USB)_\u003cbr\u003e\n\n\n\u003cbr\u003e\nThis will produce a combined firmware.bin image in the build-GENERIC_C3/ subdirectory\u003cbr\u003e\n(this firmware image is made up of: bootloader.bin, partitions.bin and micropython.bin).\u003cbr\u003e\n\nProject build complete. To flash, run this command:\u003cbr\u003e\n\u003e _esptool.py --port /dev/cu.wchusbserialfd130 write_flash -z 0x0 c3_firmware.bin_\u003cbr\u003e\n\u003e \u003cbr\u003e\n\nFor ESP32-S2\n\u003e _esptool.py --port /dev/cu.wchusbserialfd130 write_flash --flash_mode dio -z 0x01000 s2_firmware.bin_\u003cbr\u003e\n\u003e\n\u003cimg src=\"pic/ESP32micropython.png\"/\u003e\u003cbr\u003eThonny connectted to micropython w/ PyDOS.\n\u003cbr\u003e\n  \n\u003cimg src=\"pic/micropythonHwInfo.png\"/\u003e\u003cbr\u003emicropython display hwInfo.\n\u003cbr\u003e\n\n\u003cimg src=\"pic/esp32c3_micropython_esp32c3_usb.png\"/\u003e\u003cbr\u003ew/ esp32c3_usbcdc.\n\u003cbr\u003e\n\n\u003cimg src=\"pic/micropythonBlinkLED.png\"/\u003e\u003cbr\u003eBlinking LEDs\n\u003cbr\u003e\n\n\n---\n\u003cbr\u003e\nSee http://docs.micropython.org/en/latest/esp32/quickref.html for a quick reference,\u003cbr\u003e\nand http://docs.micropython.org/en/latest/esp32/tutorial/intro.html for a tutorial.\n\u003cbr\u003e\n\u003cbr\u003e\n\n## Reference \u003cbr\u003e\n\n[General information about the ESP32 port] https://docs.micropython.org/en/latest/esp32/general.html\u003cbr\u003e\n[How to build MicroPython for esp32-C3] https://www.jarutex.com/index.php/2022/01/04/9217/\u003cbr\u003e\n[Awesome resources collections] https://github.com/mcauser/awesome-micropython\u003cbr\u003e\n[PyDOS] https://github.com/RetiredWizard/PyDOS\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmysu%2Fesp32c3-s2-micropython-build","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjmysu%2Fesp32c3-s2-micropython-build","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmysu%2Fesp32c3-s2-micropython-build/lists"}