{"id":13612590,"url":"https://github.com/bjoernQ/esp32c3-ota-experiment","last_synced_at":"2025-04-13T12:32:11.105Z","repository":{"id":84535199,"uuid":"498642329","full_name":"bjoernQ/esp32c3-ota-experiment","owner":"bjoernQ","description":"ESP32-C3 Bare Metal OTA Experiment","archived":false,"fork":false,"pushed_at":"2023-07-20T13:49:43.000Z","size":83,"stargazers_count":35,"open_issues_count":1,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-11-07T20:42:56.582Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bjoernQ.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2022-06-01T07:54:40.000Z","updated_at":"2024-10-02T10:03:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"f6f6159f-0b64-4a1a-b980-3b2da09bb039","html_url":"https://github.com/bjoernQ/esp32c3-ota-experiment","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bjoernQ%2Fesp32c3-ota-experiment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bjoernQ%2Fesp32c3-ota-experiment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bjoernQ%2Fesp32c3-ota-experiment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bjoernQ%2Fesp32c3-ota-experiment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bjoernQ","download_url":"https://codeload.github.com/bjoernQ/esp32c3-ota-experiment/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248714628,"owners_count":21149928,"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":[],"created_at":"2024-08-01T20:00:32.077Z","updated_at":"2025-04-13T12:32:10.822Z","avatar_url":"https://github.com/bjoernQ.png","language":"Rust","funding_links":[],"categories":["Projects"],"sub_categories":["`no_std`"],"readme":"# ESP32C3 Bare Metal OTA Experiment\n\n## About\n\nThis is an experiment to do an OTA update on ESP32-C3 in bare-metal.\n\nMost things are hard-coded (i.e. the adresses of the ota partition and the ota slots).\n\n## Preparation\n\nFirst set the ENV variables `SSID` and `PASSWORD` to match the settings of your WiFi access point.\nYour PC needs to be connected to the same access point.\n\nSet the address of your computer in as ENV variable `HOST_IP`(e.g. \"192.168.2.125\")\n\nMake sure you have installed [devserver](https://crates.io/crates/devserver)\n\nChange `THIS_VERSION` in `main.rs` to `2`. Compile the application via `cargo build --release`.\n\nPerform these steps\n- `esptool --chip esp32c3 elf2image target\\riscv32imac-unknown-none-elf\\release\\esp32c3_ota_experiment`\n- `cp target\\riscv32imac-unknown-none-elf\\release\\esp32c3_ota_experiment.bin firmware.bin`\n\nChange `THIS_VERSION` in `main.rs` back to `1`.\n\n## Run\n\nRun `devserver --address 192.168.2.125:8080` in a separate terminal (in the project directory). Make sure to replace `192.168.2.125` by the IP of your PC.\n\nTo avoid problems run `esptool erase_flash` first. Now run the application via `cargo run --release`\n\nThe application should connect to your PC, pick up `current.txt` and see it's own version (1) is below what is available online (2).\nNow it will download `firmware.bin` and flash it. After that it will set the OTA partition to use.\n\nIn this experiment the reset isn't done automatically. Reset the ESP32-C3 and see the new version boot.\nThe new version will see there is no later version online to flash.\n\n## Please Note\n\nMake sure to use the provided bootloader and partition table.\n\ni.e. when flashing manually with espflash use `espflash --bootloader bootloader.bin --partition-table partitions.csv`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FbjoernQ%2Fesp32c3-ota-experiment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FbjoernQ%2Fesp32c3-ota-experiment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FbjoernQ%2Fesp32c3-ota-experiment/lists"}