Skip to content

Commit

Permalink
Create UF2s for all software slots
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexJones0 committed Sep 11, 2024
1 parent f149aaf commit 29cbcef
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion common.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,7 @@
function convert_to_uf2(target)
local firmware = target:targetfile()
os.execv("llvm-strip", { firmware, "-o", firmware .. ".strip" })
os.execv("uf2conv", { firmware .. ".strip", "-f0x6CE29E60", "-co", firmware .. ".uf2" })
os.execv("uf2conv", { firmware .. ".strip", "-b0x00000000", "-f0x6CE29E60", "-co", firmware .. ".slot1.uf2" })
os.execv("uf2conv", { firmware .. ".strip", "-b0x10000000", "-f0x6CE29E60", "-co", firmware .. ".slot2.uf2" })
os.execv("uf2conv", { firmware .. ".strip", "-b0x20000000", "-f0x6CE29E60", "-co", firmware .. ".slot3.uf2" })
end

0 comments on commit 29cbcef

Please sign in to comment.