{"id":18538966,"url":"https://github.com/simonthorell/avr-dev-template","last_synced_at":"2026-04-11T13:08:11.314Z","repository":{"id":225107344,"uuid":"761193831","full_name":"simonthorell/avr-dev-template","owner":"simonthorell","description":"Docker development container for AVR microcontroller projects, using avr-gcc for compilation. Simple bash and python scripts to flash firmware and USART serial monitoring.","archived":false,"fork":false,"pushed_at":"2024-04-19T10:16:40.000Z","size":33,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-17T08:13:01.249Z","etag":null,"topics":["avr-gcc","bash-script","c","cmake","cpp","docker","python-script"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/simonthorell.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2024-02-21T12:20:23.000Z","updated_at":"2024-03-01T09:14:29.000Z","dependencies_parsed_at":"2024-03-27T11:42:08.535Z","dependency_job_id":"215d6fff-5c99-4f53-bb02-b59b7a2c159f","html_url":"https://github.com/simonthorell/avr-dev-template","commit_stats":null,"previous_names":["simonthorell/avr-dev-template"],"tags_count":2,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonthorell%2Favr-dev-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonthorell%2Favr-dev-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonthorell%2Favr-dev-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonthorell%2Favr-dev-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simonthorell","download_url":"https://codeload.github.com/simonthorell/avr-dev-template/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254259443,"owners_count":22040822,"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":["avr-gcc","bash-script","c","cmake","cpp","docker","python-script"],"created_at":"2024-11-06T19:45:41.419Z","updated_at":"2025-12-30T23:04:59.025Z","avatar_url":"https://github.com/simonthorell.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AVR Development Template\n\nThis is a template setup of a virtual development container for AVR microcontroller projects, using avr-gcc for compilation. It includes a suite of scripts designed to streamline the processes of flashing firmware to the microcontroller and monitoring its serial output.\n\n## Prerequisites\nBefore using this template, ensure you have the following software installed on your system:\n\n- **Docker**\n- **Visual Studio Code** (VS Code)\n- **Dev Containers** (VS Code extension)\n\n## Flashing Firmware to the Microcontroller\nTo deploy firmware to your microcontroller, navigate to the `script` directory and execute the `flash-firmware.sh` script. This utility simplifies the process of transferring your compiled code onto the AVR device.\n\nFirst install avrdude:\n```bash\n# macOS\nbrew install avrdude\n\n# Linux \nsudo apt-get update\nsudo apt-get install avrdude\n\n# Windows or WSL\n# Download from website: https://www.nongnu.org/avrdude/\n```\n\nThen run the flash firmware script:\n```bash\ncd script\nchmod +x ./flash-firmware.sh\n./flash-firmware.sh\n\n# You can also specify your device port\n./flash-firmware.sh -p \u003cYOUR-PORT\u003e\n\n# Example\n./flash-firmware.sh -p /dev/cu.usbserial-110\n```\n\n## Serial Port Monitoring\nFor real-time observation of the microcontroller's serial communication, the following utilities are provided within the `script` folder:\n\n- For a basic monitoring setup, execute:\n\n```bash\ncd script\nchmod +x ./monitor-mcu.sh\n./monitor-mcu.sh\n```\n\n- Alternatively, for a more flexible monitoring experience, run the `monitor-mcu.py` Python script. Ensure Python and pySerial are installed on your system.\n\n```bash\npython monitor-mcu.py\n```\n\n## Identifying Your USB Device\nIf you are uncertain about your device's port, you can determine it using the following commands in your terminal or command prompt:\n\n**macOS**\n```bash\nls /dev/cu.*      # Option 1\nls /dev/tty.*     # Option 2\n```\n\n**Linux:**\n```bash\ndmesg | grep tty  # Option 1\nls /dev/ttyUSB*   # Option 2\nls /dev/ttyACM*   # Option 3\n```\n\n**Windows**\n```bash\nmode\n```\n\n## Contribution\nContributions are welcome. Please fork the repository, make your changes, and submit a pull request.\n\n## License\nDistributed under the MIT License. See `LICENSE` for more information.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonthorell%2Favr-dev-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimonthorell%2Favr-dev-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonthorell%2Favr-dev-template/lists"}