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 92bbef6 commit 97c5f67
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 97c5f67

Please sign in to comment.