{"id":22883264,"url":"https://github.com/cogsandsquigs/twiboot","last_synced_at":"2025-03-31T16:52:39.310Z","repository":{"id":53380028,"uuid":"521397282","full_name":"cogsandsquigs/twiboot","owner":"cogsandsquigs","description":"Twiboot is a Particle library that allows for interfacing with the Twiboot bootloader.","archived":false,"fork":false,"pushed_at":"2022-08-15T15:39:17.000Z","size":58,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-06T22:15:00.628Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cogsandsquigs.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}},"created_at":"2022-08-04T19:50:52.000Z","updated_at":"2022-08-05T13:29:27.000Z","dependencies_parsed_at":"2022-08-13T02:31:36.578Z","dependency_job_id":null,"html_url":"https://github.com/cogsandsquigs/twiboot","commit_stats":null,"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cogsandsquigs%2Ftwiboot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cogsandsquigs%2Ftwiboot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cogsandsquigs%2Ftwiboot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cogsandsquigs%2Ftwiboot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cogsandsquigs","download_url":"https://codeload.github.com/cogsandsquigs/twiboot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246500492,"owners_count":20787706,"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-12-13T18:34:18.586Z","updated_at":"2025-03-31T16:52:39.282Z","avatar_url":"https://github.com/cogsandsquigs.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Twiboot\n\nTwiboot is a Particle library that allows for interfacing with the Twiboot bootloader.\nIt is a simple library that allows for the flashing of a new firmware to a Twiboot-enabled device.\n\nExamsple diagram of how an interaction between a Particle Argon and an ATmega chip w/ twiboot would go:\n\n```mermaid\nsequenceDiagram\nArgon-\u003em328p: SLA+W 0x00 STO (Stop program startup)\nm328p-\u003e Argon: ACK\n\nloop Flashing pages of progam to the ATmega\n    Argon-\u003em328p: SLA+W 0x02 0x01 \u003caddr high\u003e \u003caddr low\u003e \u003c128 bytes to flash...\u003e STO (flash bytes to page)\n    m328p-\u003eArgon: ACK\nend\n\nloop Gathering pages of data to verify w/ CRC32\n    Argon-\u003em328p: SLA+W 0x02 0x01 \u003caddr high\u003e \u003caddr low\u003e (where to read flash)\n    m328p-\u003eArgon: ACK\n    Argon-\u003em328p: SLA+R 128 STO (Read page bytes)\n    m328p-\u003eArgon: ACK\n    m328p-\u003eArgon: \u003cpage bytes...\u003e\n    Argon-\u003em328p: ACK\nend\n\nnote over Argon: Verifies data w/ CRC32\n\nArgon-\u003em328p: SLA+W 0x01 0x80 STO (Start the main app)\nm328p-\u003eArgon: ACK\n\nnote over m328p: Starts the main app.\n```\n\n## Installation:\n\nMake sure that your MCU of choice has [twiboot](https://github.com/orempel/twiboot) installed. A makefile\nis included here, however, this is mainly for my own purposes (for custom-building twiboot) and is not\nrecommended for use outside of the loop-tracks project. It is recommended to use the makefile in the twiboot subfolder (it's a gitmodule of twiboot).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcogsandsquigs%2Ftwiboot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcogsandsquigs%2Ftwiboot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcogsandsquigs%2Ftwiboot/lists"}