{"id":23028539,"url":"https://github.com/dasimmet/zig-raspberry-pico-sdk","last_synced_at":"2025-08-14T12:33:56.841Z","repository":{"id":261690280,"uuid":"885054294","full_name":"dasimmet/zig-raspberry-pico-sdk","owner":"dasimmet","description":null,"archived":false,"fork":false,"pushed_at":"2024-12-14T12:29:57.000Z","size":34,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-14T13:29:04.735Z","etag":null,"topics":["microzig","pico","raspberry","zig","zig-package"],"latest_commit_sha":null,"homepage":"","language":"Zig","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/dasimmet.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":"2024-11-07T21:46:55.000Z","updated_at":"2024-12-14T12:30:00.000Z","dependencies_parsed_at":"2024-11-11T19:31:41.881Z","dependency_job_id":null,"html_url":"https://github.com/dasimmet/zig-raspberry-pico-sdk","commit_stats":null,"previous_names":["dasimmet/zig-raspberry-pico-sdk"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dasimmet%2Fzig-raspberry-pico-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dasimmet%2Fzig-raspberry-pico-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dasimmet%2Fzig-raspberry-pico-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dasimmet%2Fzig-raspberry-pico-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dasimmet","download_url":"https://codeload.github.com/dasimmet/zig-raspberry-pico-sdk/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229827776,"owners_count":18130394,"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":["microzig","pico","raspberry","zig","zig-package"],"created_at":"2024-12-15T14:11:40.743Z","updated_at":"2024-12-15T14:11:41.427Z","avatar_url":"https://github.com/dasimmet.png","language":"Zig","funding_links":[],"categories":[],"sub_categories":[],"readme":"# raspberry pico-sdk on the zig buildsystem\n\n## Requirements\n\n- zig 0.13.0 or higher\n- ~~libudev-dev for libusb on linux~~\n\nThe last zig version i built against (ubuntu linux 24.04 x86_64):\n\n```console\nfoo@bar:~$ zig version\n0.14.0-dev.2164+6b2c8fc68\n```\n\n## Picotool\n\nthis repo builds the raspberry picotool from the sdk source on the zig buildsystem:\n\n```console\nfoo@bar:~$ zig build run\nPICOTOOL:\n    Tool for interacting with RP2040/RP2350 device(s) in BOOTSEL mode, or with an RP2040/RP2350 binary\n\nSYNOPSIS:\n    picotool info [-b] [-p] [-d] [--debug] [-l] [-a] [device-selection]\n    picotool info [-b] [-p] [-d] [--debug] [-l] [-a] \u003cfilename\u003e [-t \u003ctype\u003e]\n    picotool config [-s \u003ckey\u003e \u003cvalue\u003e] [-g \u003cgroup\u003e] [device-selection]\n    picotool config [-s \u003ckey\u003e \u003cvalue\u003e] [-g \u003cgroup\u003e] \u003cfilename\u003e [-t \u003ctype\u003e]\n    picotool load [--ignore-partitions] [--family \u003cfamily_id\u003e] [-p \u003cpartition\u003e] [-n] [-N] [-u] [-v] [-x] \u003cfilename\u003e [-t \u003ctype\u003e] [-o \u003coffset\u003e]\n                [device-selection]\n    picotool link [--quiet] [--verbose] \u003coutfile\u003e [-t \u003ctype\u003e] \u003cinfile1\u003e [-t \u003ctype\u003e] \u003cinfile2\u003e [-t \u003ctype\u003e] [\u003cinfile3\u003e] [-t \u003ctype\u003e] [-p] \u003cpad\u003e\n    picotool save [-p] [device-selection]\n    picotool save -a [device-selection]\n    picotool save -r \u003cfrom\u003e \u003cto\u003e [device-selection]\n    picotool verify [device-selection]\n    picotool reboot [-a] [-u] [-g \u003cpartition\u003e] [-c \u003ccpu\u003e] [device-selection]\n    picotool otp list|get|set|load|dump|permissions|white-label\n    picotool partition info|create\n    picotool uf2 info|convert\n    picotool version [-s] [\u003cversion\u003e]\n    picotool coprodis [--quiet] [--verbose] \u003cinfile\u003e [-t \u003ctype\u003e] \u003coutfile\u003e [-t \u003ctype\u003e]\n    picotool help [\u003ccmd\u003e]\n\nCOMMANDS:\n    info        Display information from the target device(s) or file.\n                Without any arguments, this will display basic information for all connected RP2040 devices in BOOTSEL mode\n    config      Display or change program configuration settings from the target device(s) or file.\n    load        Load the program / memory range stored in a file onto the device.\n    link        Link multiple binaries into one block loop.\n    save        Save the program / memory stored in flash on the device to a file.\n    verify      Check that the device contents match those in the file.\n    reboot      Reboot the device\n    otp         Commands related to the RP2350 OTP (One-Time-Programmable) Memory\n    partition   Commands related to RP2350 Partition Tables\n    uf2         Commands related to UF2 creation and status\n    version     Display picotool version\n    coprodis    Post-process coprocessor instructions in disassembly files.\n    help        Show general help or help for a specific command\n\nUse \"picotool help \u003ccmd\u003e\" for more info\n```\n\n## Picotool zig build interface\n\n```zig\n// build.zig\nconst pico_sdk = @import(\"zig-raspberry-pico-sdk\");\nconst load_step = pico_sdk.load(b, .{\n    .firmware = lazypath_to_firmware_uf2,\n    .execute = true,\n    .sudo = b.option(bool, \"load-with-sudo\", \"run picotool load with sudo\") orelse false,\n}, .{});\nb.step(\"load\").dependOn(load_step);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdasimmet%2Fzig-raspberry-pico-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdasimmet%2Fzig-raspberry-pico-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdasimmet%2Fzig-raspberry-pico-sdk/lists"}