{"id":16201667,"url":"https://github.com/pedrokiefer/rules_stm32","last_synced_at":"2025-07-10T17:34:05.609Z","repository":{"id":137482809,"uuid":"82099366","full_name":"pedrokiefer/rules_stm32","owner":"pedrokiefer","description":"Bazel rules for building stm32f4 embedded projects","archived":false,"fork":false,"pushed_at":"2017-11-11T12:44:19.000Z","size":7207,"stargazers_count":13,"open_issues_count":0,"forks_count":6,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-02-28T16:11:01.135Z","etag":null,"topics":["bazel","bazel-rules","stm32","stm32f4"],"latest_commit_sha":null,"homepage":null,"language":"C","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/pedrokiefer.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,"publiccode":null,"codemeta":null}},"created_at":"2017-02-15T19:42:45.000Z","updated_at":"2024-02-10T20:39:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"982ff642-c1a7-44c8-9fca-2fd8a0394c03","html_url":"https://github.com/pedrokiefer/rules_stm32","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/pedrokiefer%2Frules_stm32","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedrokiefer%2Frules_stm32/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedrokiefer%2Frules_stm32/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedrokiefer%2Frules_stm32/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pedrokiefer","download_url":"https://codeload.github.com/pedrokiefer/rules_stm32/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243971180,"owners_count":20376784,"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":["bazel","bazel-rules","stm32","stm32f4"],"created_at":"2024-10-10T09:39:29.860Z","updated_at":"2025-03-19T05:31:11.562Z","avatar_url":"https://github.com/pedrokiefer.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bazel Rules for STM32f4 processors #\n\n* Toolchain: arm-none-eabi-gcc 6.2.1 from [https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads]\n\n## Usage\n\nOn `WORKSPACE` add this for linux:\n\n```\ngit_repository(\n    name = \"stm32\",\n    remote = \"https://github.com/pedrokiefer/rules_stm32.git\",\n    commit = \"256dd2e75b49485eb4e7844549b5749bb082657a\"\n    )\n\nload(\"@stm32//stm32f4:rules.bzl\", \"arm_none_repository\")\narm_none_repository(name=\"com_arm_developer_toolchain_gcc_6_2\")\n``` \n## Available Rules\n\n### Processors\n\nSupported processors:\n* STM32F401xC\n* STM32F401xE\n* STM32F405xx\n* STM32F407xx\n* STM32F410Cx\n* STM32F410Rx\n* STM32F410Tx\n* STM32F411xE\n* STM32F412Cx\n* STM32F412Rx\n* STM32F412Vx\n* STM32F412Zx\n* STM32F413xx\n* STM32F415xx\n* STM32F417xx\n* STM32F423xx\n* STM32F427xx\n* STM32F429xx\n* STM32F437xx\n* STM32F439xx\n* STM32F446xx\n* STM32F469xx\n* STM32F479xx\n\n### arm_none_repository ###\n\nFetchs arm toolchain\n\n```\nload(\"@stm32//stm32f4:rules.bzl\", \"arm_none_repository\")\n\narm_none_repository(arch)\n```\n\n* arch: linux, mac, windows [Unimplemented]\n\nRun bazel build with `--crosstool_top=@stm32//tools/arm_compiler:toolchain --cpu=armeabi-v7a` for building with this toolchain.\n\n### stm32f4_hal_library ###\n\n```\nload(\"@stm32//stm32f4:rules.bzl\", \"stm32f4_hal_library\")\nstm32f4_hal_library()\n```\n\n### stm32f4_binary ###\n\n* name: binary_name\n* srcs: list of sources\n* deps: list of deps\n* processor: one of [\"STM32F429xx\", ... ]\n* use_hal: \n* hal_config_hdrs: hal config files generated by stm32cube\n* linker_script: linker script to be used\n\n### raw_binary ###\nGenerates a .bin file\n\n```\nload(\"@stm32//tools/arm_compiler:raw_binary.bzl\", \"raw_binary\")\n\nraw_binary(\n    name = \"my_bin\",\n    src = \":binary\"\n)\n```\n\n### hex_binary ###\nGenerates a .hex file\n\n```\nload(\"@stm32//tools/arm_compiler:raw_binary.bzl\", \"hex_binary\")\n\nhex_binary(\n    name = \"my_hex\",\n    src = \":binary\"\n)\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpedrokiefer%2Frules_stm32","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpedrokiefer%2Frules_stm32","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpedrokiefer%2Frules_stm32/lists"}