You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Matt Knight 6a4d593020 update to master, use zig package manager (#11) 7 months ago
..
deps update zig build api and family enum 7 months ago
src update to master, use zig package manager (#11) 7 months ago
.gitignore parsing elf and saving uf2 files 7 months ago
.gitmodules parsing elf and saving uf2 files 7 months ago
README.md update to master, use zig package manager (#11) 7 months ago
build.zig update to master, use zig package manager (#11) 7 months ago
build.zig.zon update to master, use zig package manager (#11) 7 months ago

README.md

uf2

USB Flashing Format (UF2) for your build.zig

This package is for assembling uf2 files from ELF binaries. This format is used for flashing a microcontroller over a mass storage interface, such as the Pi Pico.

See https://github.com/microsoft/uf2#file-containers for how we're going to embed file source into the format.

For use in a build.zig:

const uf2 = @import("uf2");

pub fn build(b: *Build) void {
    // ...

    const uf2_file = uf2.from_elf(b, exe, .{ .family_id = .RP2040 });
    b.installFile(uf2_file_source);

    // ...
}