{"id":22945001,"url":"https://github.com/korigamik/avr-simulation","last_synced_at":"2026-01-16T01:01:10.765Z","repository":{"id":195635654,"uuid":"693336846","full_name":"KorigamiK/AVR-Simulation","owner":"KorigamiK","description":"Simulate various AVR microcontrollers on Simulide using a modern CMake workflow   ","archived":false,"fork":false,"pushed_at":"2023-09-20T10:42:02.000Z","size":985,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-01T21:49:21.527Z","etag":null,"topics":["atmega328p","avr-gcc","cmake","simulide"],"latest_commit_sha":null,"homepage":"","language":"CMake","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/KorigamiK.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-09-18T20:32:53.000Z","updated_at":"2023-09-20T14:58:35.000Z","dependencies_parsed_at":"2023-09-19T02:03:29.812Z","dependency_job_id":"594b7e03-3ae1-4b0b-8c21-11798cc02153","html_url":"https://github.com/KorigamiK/AVR-Simulation","commit_stats":null,"previous_names":["korigamik/avr-simulation"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/KorigamiK/AVR-Simulation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KorigamiK%2FAVR-Simulation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KorigamiK%2FAVR-Simulation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KorigamiK%2FAVR-Simulation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KorigamiK%2FAVR-Simulation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KorigamiK","download_url":"https://codeload.github.com/KorigamiK/AVR-Simulation/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KorigamiK%2FAVR-Simulation/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28475123,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T00:15:39.755Z","status":"ssl_error","status_checked_at":"2026-01-16T00:15:32.174Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["atmega328p","avr-gcc","cmake","simulide"],"created_at":"2024-12-14T14:29:09.921Z","updated_at":"2026-01-16T01:01:10.720Z","avatar_url":"https://github.com/KorigamiK.png","language":"CMake","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AVR Simulation\n\n## Introduction\n\nThis is a simple starting point to write AVR code on\n[avr-gcc](https://gcc.gnu.org/wiki/avr-gcc) and simulate it using\n[Simulide](https://www.simulide.com/p/home.html). This simple example is based\non the [Blinking LED](http://seta43.duckdns.org/simulc.html) example for the\nAtmega328P. The reason for this is to create a simple, modern, minimal IDE like\nexprience on Linux (neovim) without any fancy closed source software like Atmel\nStudio.\n\n## Structure\n\n- `src/` contains the source code for the simulation.\n- `CmakePresets.json` contains the cmake presets for the `gcc-avr` toolchain.\n- `build/AVR` contains the build files for the simulation.\n\n## Demo\n\nHere's a video of the simulation in action.\n\n![blink simulation](.github/blink.gif)\n\n## Requirements\n\n### Arch Linux\n\nThe quick and dirty way\n\n```bash\nsudo pacman -S cmake avr-gcc avrdude avr-libc libusb\n\nyay -S simulide\n```\n\n### Other distros\n\nInstall [Simulide](https://www.simulide.com/p/home.html) (I suggest building\nfrom source) and [avr-gcc](https://gcc.gnu.org/wiki/avr-gcc) using your package\nmanager.\n\n### Windows\n\nI mean, you can use Windows, but why would you?\n\n- **avr-gcc**\n\n  Download and install [avr-gcc](https://gcc.gnu.org/wiki/avr-gcc) from\n  [here](https://sourceforge.net/projects/winavr/files/).\n\n- **Simulide**\n\n  Download and install [Simulide](https://www.simulide.com/p/home.html) from\n  [here](https://sourceforge.net/projects/simulide/files/).\n\n## Usage\n\nRun the following to configure the cmake presets for the AVR toolchain.\n\n```bash\ncmake --preset AVR\n```\n\nThe custom cmake compiler for Simulide is `cmake_avrgcc.xml` you can\nsymlink/copy it to the default custom compiler location at\n`/usr/share/simulide/data/codeeditor/compilers/compilers`.\n\n```bash\nsudo ln -s cmake_avrgcc.xml /usr/share/simulide/data/codeeditor/compilers/compilers\n```\n\nNow, drag and drop the simulation file `blink.sim1` to the Simulide editor.\n\nThat's it, now you can just drag and drop the source file from `src/` to the\nSimulide editor and compile it using the `cmake_avrgcc` compiler and upload the\nhex file to the simulation.\n\nYou can run the following to flash the hex file to an actual AVR device through\nthe USB port.\n\n```bash\ncmake --build --preset flash-blink\n```\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file\nfor details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkorigamik%2Favr-simulation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkorigamik%2Favr-simulation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkorigamik%2Favr-simulation/lists"}