{"id":19640013,"url":"https://github.com/openthread/ot-samr21","last_synced_at":"2025-04-28T11:30:59.694Z","repository":{"id":37066751,"uuid":"332845514","full_name":"openthread/ot-samr21","owner":"openthread","description":"OpenThread on Microchip SAM R21 example.","archived":false,"fork":false,"pushed_at":"2025-04-10T15:33:00.000Z","size":785,"stargazers_count":9,"open_issues_count":1,"forks_count":11,"subscribers_count":19,"default_branch":"main","last_synced_at":"2025-04-10T16:48:33.854Z","etag":null,"topics":["openthread"],"latest_commit_sha":null,"homepage":"https://openthread.io/","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/openthread.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":"2021-01-25T18:34:33.000Z","updated_at":"2025-04-10T15:32:57.000Z","dependencies_parsed_at":"2023-12-18T19:19:12.690Z","dependency_job_id":"1a72e9c2-bbe2-487d-994f-840641f3b082","html_url":"https://github.com/openthread/ot-samr21","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/openthread%2Fot-samr21","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openthread%2Fot-samr21/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openthread%2Fot-samr21/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openthread%2Fot-samr21/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/openthread","download_url":"https://codeload.github.com/openthread/ot-samr21/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251304754,"owners_count":21567930,"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":["openthread"],"created_at":"2024-11-11T14:04:17.609Z","updated_at":"2025-04-28T11:30:57.213Z","avatar_url":"https://github.com/openthread.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OpenThread on SAMR21 Example\n\nThis repo contains example platform drivers for the [Microchip ATSAMR21G18A][samr21] based on [SAM R21 Xplained Pro Evaluation Kit][samr21_xplained_pro].\n\n[samr21]: http://www.microchip.com/wwwproducts/en/ATSAMR21G18A\n[samr21_xplained_pro]: https://www.microchip.com/DevelopmentTools/ProductDetails/ATSAMR21-XPRO\n\nThe example platform drivers are intended to present the minimal code necessary to support OpenThread. See the \"Run the example with SAMR21 boards\" section below for an example using basic OpenThread capabilities.\n\n## Toolchain\n\nDownload and install the [GNU toolchain for ARM Cortex-M][gnu-toolchain].\n\n[gnu-toolchain]: https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-rm\n\nIn a Bash terminal, follow these instructions to install the GNU toolchain and other dependencies.\n\n```bash\n$ cd \u003cpath-to-ot-samr21\u003e\n$ ./script/bootstrap\n```\n\n## Building\n\n1. Download [Advanced Software Framework (ASF)][asf].\n\n[asf]: https://www.microchip.com/mplab/avr-support/advanced-software-framework\n\n2. Unzip it to \u003cpath-to-ot-samr21\u003e/third_party/microchip folder\n\n```bash\n$ unzip asf-standalone-archive-3.45.0.85.zip\n$ cp xdk-asf-3.45.0 -rf \u003cpath-to-ot-samr21\u003e/third_party/microchip/asf\n```\n\n3. Build OpenThread Firmware (CLI example) on SAMR21 platform.\n\n```bash\n$ cd \u003cpath-to-ot-samr21\u003e\n$ ./script/build\n```\n\n## Flash Binaries\n\nAfter a successful build, the `elf` files are found in `\u003cpath-to-ot-samr21\u003e/build/bin/`.\n\nCompiled binaries may be flashed onto the SAM R21 Xplained Pro using embedded debugger EDBG.\n\n```\nOpen a terminal:\n\n$ openocd -f board/atmel_samr21_xplained_pro.cfg\n\nLeave the terminal open to monitor the status of the opencd server and open a new terminal.\nIn this terminal:\n\n$ cd \u003cpath-to-ot-samr21\u003e/build/bin\n$ arm-none-eabi-gdb ot-cli-ftd\n$ (gdb) target remote 127.0.0.1:3333\n$ (gdb) load\n$ (gdb) monitor reset\n$ (gdb) c\n```\n\n## Interact\n\n1. Open terminal to `/dev/ttyUSB1` (serial port settings: 115200 8-N-1).\n2. Type `help` for list of commands.\n3. See [OpenThread CLI Reference README.md][cli] to learn more.\n\n[cli]: https://github.com/openthread/openthread/blob/main/src/cli/README.md\n\n# Contributing\n\nWe would love for you to contribute to OpenThread and help make it even better than it is today! See our [Contributing Guidelines](https://github.com/openthread/openthread/blob/main/CONTRIBUTING.md) for more information.\n\nContributors are required to abide by our [Code of Conduct](https://github.com/openthread/openthread/blob/main/CODE_OF_CONDUCT.md) and [Coding Conventions and Style Guide](https://github.com/openthread/openthread/blob/main/STYLE_GUIDE.md).\n\n# License\n\nOpenThread is released under the [BSD 3-Clause license](https://github.com/openthread/ot-samr21/blob/main/LICENSE). See the [`LICENSE`](https://github.com/openthread/ot-samr21/blob/main/LICENSE) file for more information.\n\nPlease only use the OpenThread name and marks when accurately referencing this software distribution. Do not use the marks in a way that suggests you are endorsed by or otherwise affiliated with Nest, Google, or The Thread Group.\n\n# Need help?\n\nOpenThread support is available on GitHub:\n\n- Bugs and feature requests pertaining to the OpenThread on SAMR21 Example — [submit to the openthread/ot-samr21 Issue Tracker](https://github.com/openthread/ot-samr21/issues)\n- OpenThread bugs and feature requests — [submit to the OpenThread Issue Tracker](https://github.com/openthread/openthread/issues)\n- Community Discussion - [ask questions, share ideas, and engage with other community members](https://github.com/openthread/openthread/discussions)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenthread%2Fot-samr21","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenthread%2Fot-samr21","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenthread%2Fot-samr21/lists"}