{"id":13710774,"url":"https://github.com/tralamazza/embedded_zig","last_synced_at":"2026-02-06T17:45:05.977Z","repository":{"id":39374284,"uuid":"192624353","full_name":"tralamazza/embedded_zig","owner":"tralamazza","description":"minimal Zig embedded ARM example (STM32F103 blue pill)","archived":false,"fork":false,"pushed_at":"2020-10-29T07:50:57.000Z","size":13,"stargazers_count":75,"open_issues_count":2,"forks_count":12,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-11-13T21:44:36.375Z","etag":null,"topics":["arm","stm32f103","zig"],"latest_commit_sha":null,"homepage":"","language":"Zig","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tralamazza.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}},"created_at":"2019-06-18T23:15:47.000Z","updated_at":"2024-09-27T20:04:26.000Z","dependencies_parsed_at":"2022-08-09T14:48:32.828Z","dependency_job_id":null,"html_url":"https://github.com/tralamazza/embedded_zig","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/tralamazza%2Fembedded_zig","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tralamazza%2Fembedded_zig/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tralamazza%2Fembedded_zig/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tralamazza%2Fembedded_zig/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tralamazza","download_url":"https://codeload.github.com/tralamazza/embedded_zig/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252753740,"owners_count":21799003,"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":["arm","stm32f103","zig"],"created_at":"2024-08-02T23:01:00.752Z","updated_at":"2026-02-06T17:45:05.903Z","avatar_url":"https://github.com/tralamazza.png","language":"Zig","readme":"# embedded_zig\n\nA \"minimal\" ARM cortex-M firmware in Zig running on a STM32F103. It blinks.\n\n## building\n\nGet [GNU Arm Embedded Toolchain](https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-rm) and [Zig](https://ziglang.org/) in `PATH` and type:\n\n    make\n\n## running on a [bluepill](http://wiki.stm32duino.com/index.php?title=Blue_Pill)\n\nRun OpenOCD on a terminal:\n\n    openocd -f /usr/share/openocd/scripts/interface/stlink-v2.cfg -f /usr/share/openocd/scripts/target/stm32f1x.cfg\n\nOpen your favorite GDB:\n\n    arm-none-eabi-gdb firmware.elf -ex 'target extended-remote :3333'\n    load\n    r\n\nBonus: you can type `make` inside gdb and `load` it again.\n\n## issues\n\nIf you have any linking issues uncomment the line below (in the `Makefile`) to use GNU ld:\n\n    #    zig build-exe ${BUILD_FLAGS} $(OBJS:%=--object %) --name $@.elf --linker-script ${LINKER_SCRIPT}\n       arm-none-eabi-ld ${OBJS} -o $@.elf -T ${LINKER_SCRIPT} -Map $@.map --gc-sections\n\n## raq (rarely asked questions)\n\na) Shouldn't the Makefile...\n\nA: lalalala\n\nb) How do I flash this?\n\nA: see [running on a bluepill](#running-on-a-bluepill)\n\nc) Why didn't you use `@cImport()`?\n\nA: yes\n","funding_links":[],"categories":["Bootables","Applications","Systems Programming"],"sub_categories":["Embedded Development"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftralamazza%2Fembedded_zig","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftralamazza%2Fembedded_zig","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftralamazza%2Fembedded_zig/lists"}