{"id":25697944,"url":"https://github.com/codeljo/riscv-bare-metal","last_synced_at":"2026-03-01T07:32:14.472Z","repository":{"id":254216340,"uuid":"844295700","full_name":"codeljo/riscv-bare-metal","owner":"codeljo","description":"RISC-V Bare Metal Starter Kit","archived":false,"fork":false,"pushed_at":"2024-09-16T19:05:51.000Z","size":153,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-25T02:39:10.181Z","etag":null,"topics":["esp32-c2","esp32-c3","esp32-c6","esp32-c6-devkitc-1-n8","esp32-h2","risc-v","riscv","riscv32"],"latest_commit_sha":null,"homepage":"","language":"BitBake","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/codeljo.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":"2024-08-19T00:30:03.000Z","updated_at":"2025-01-05T08:43:09.000Z","dependencies_parsed_at":"2024-09-16T23:43:23.298Z","dependency_job_id":null,"html_url":"https://github.com/codeljo/riscv-bare-metal","commit_stats":null,"previous_names":["codeljo/riscv-bare-metal"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/codeljo/riscv-bare-metal","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeljo%2Friscv-bare-metal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeljo%2Friscv-bare-metal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeljo%2Friscv-bare-metal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeljo%2Friscv-bare-metal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codeljo","download_url":"https://codeload.github.com/codeljo/riscv-bare-metal/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeljo%2Friscv-bare-metal/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29963817,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-01T06:55:38.174Z","status":"ssl_error","status_checked_at":"2026-03-01T06:53:04.810Z","response_time":124,"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":["esp32-c2","esp32-c3","esp32-c6","esp32-c6-devkitc-1-n8","esp32-h2","risc-v","riscv","riscv32"],"created_at":"2025-02-25T02:34:44.484Z","updated_at":"2026-03-01T07:32:14.454Z","avatar_url":"https://github.com/codeljo.png","language":"BitBake","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cbr\u003e\n\n# RISC-V Bare Metal Programming\n\n[Supported Devices](#supported-devices)  \n[Requirements](#requirements)  \n[Build](#build-instructions)   \n\n# Supported Devices\n* ESP32-C2\n* ESP32-C3\n* ESP32-C6\n* ESP32-H2\n* Coming soon - Raspberry Pi Pico 2 (RP2350)\n\n\u003cbr\u003e\n\n# Requirements\n\n1. RISC-V Cross Compiler\n2. Make\n3. esptool\n\n\u003cbr\u003e\n\n# Install Cross Compiler\n\n**Linux**   \n\u003e\u003cbr\u003eapt install gcc-riscv64-unknown-elf  \n\u003cbr\u003e\n\n\u003cbr\u003e\n\n**macOS**  \n\u003e\u003cbr\u003ebrew tap riscv-software-src/riscv  \nbrew install riscv-tools  \n\u003cbr\u003e\n\n\u003cbr\u003e\n\n**Windows, macOS, Linux**  \n\u003e\u003cbr\u003eThe xPack GNU RISC-V Embedded GCC  \nA standalone cross-platform (Windows, macOS, GNU/Linux) binary distribution of GNU RISC-V Embedded GCC.  \u003cbr\u003e\nhttps://github.com/xpack-dev-tools/riscv-none-elf-gcc-xpack  \n\u003cbr\u003e\n\n\u003cbr\u003e\n\n# Install Make\n\n**Linux**  \n\u003e\u003cbr\u003eapt install make   \n\u003cbr\u003e\n\n**macOS**\n\u003e\u003cbr\u003ebrew install make  \n\u003cbr\u003e\n\n**Windows**  \n\u003e\u003cbr\u003e[https://github.com/xpack-dev-tools/windows-build-tools-xpack/](https://github.com/xpack-dev-tools/windows-build-tools-xpack/)  \n\u003cbr\u003e\n\n\u003cbr\u003e\n\n# Install Python\n\u003eNote: Optional as there are binary releases of esptool available below.\n\n**Linux**  \n\u003e\u003cbr\u003ePython is usually installed by default.  \nOpen a terminal and type: `python`  \n\u003cbr\u003e\napt install python  \n\u003cbr\u003e\n\n\u003cbr\u003e\n\n**Linux, macOS, Windows**  \n\u003e\u003cbr\u003e[https://www.python.org/downloads/](https://www.python.org/downloads/)  \n\u003cbr\u003e\n\n\u003cbr\u003e\n\n# Install esptool\n\n**Linux, macOS, Windows**  \n\u003e\u003cbr\u003eBinary Release\u003cbr\u003e[https://github.com/espressif/esptool/releases](https://github.com/espressif/esptool/releases)  \n\u003cbr\u003ePython Version  \n[https://docs.espressif.com/projects/esptool/en/latest/esp32/installation.html](https://docs.espressif.com/projects/esptool/en/latest/esp32/installation.html)  \npip install esptool  \n\u003cbr\u003e\n\n\u003cbr\u003e\n\n# Build Instructions\n\n```\nConfigure build environment variables\n\nLinux / macOS:\nexport BMV_CC=riscv64-unknown-elf-gcc\nexport BMV_ESPTOOL=esptool\nexport BMV_CHIP=esp32c3\nexport BMV_PORT=/dev/ttyACM0\n\nWindows:\nset BMV_CC=riscv-none-elf-gcc\nset BMV_ESPTOOL=esptool\nset BMV_CHIP=esp32c3\nset BMV_PORT=COM3\n\nNote: BMV_CC, BMV_ESPTOOL must specify the full path if they are not in your PATH.\nBinary:\nexport BMV_ESPTOOL=/opt/riscv/esptool/esptool\nPython:\nexport BMV_ESPTOOL=\"python /opt/riscv/esptool/esptool.py\"\n```\n\n```\nOpen a command prompt, and change to the root directory of this project.\n\nbuild:\nmake -C examples/blink/\n\nflash:\nmake -C examples/blink/ flash\n\nhelp:\nmake -C examples/blink help\n```\n\n\u003cbr\u003e\n\n# Usage\n\n\u003e Environment Variables\n\n| variable                | default                 | valid values                                            |\n| ----------------------- | ----------------------- | ------------------------------------------------------- |\n| BMV_CC                  | riscv64-unknown-elf-gcc | riscv64-unknown-elf-gcc, riscv-none-elf-gcc, clang, ... |\n| BMV_ESPTOOL             | esptool                 | esptool, \"python esptool.py\"                            |\n| BMV_CHIP                | esp32c3                 | esp32c2, esp32c3, esp32c6, esp32h2                      |\n| BMV_PORT                | /dev/ttyACM0            | /dev/ttyUSB0, /dev/ttyACM0, ..., COM1, COM2, ...        |\n\n\u003eEnvironment Override\n\n`make -C examples/blink clean flash BMV_CC=clang BMV_ESPTOOL=/opt/riscv/esptool/esptool BMV_CHIP=esp32c3 BMV_PORT=/dev/ttyACM0`\n\n\u003eShow available make commands\n\n`make -C examples/blink help`  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeljo%2Friscv-bare-metal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodeljo%2Friscv-bare-metal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeljo%2Friscv-bare-metal/lists"}