Skip to content

Commit 9d7de45

Browse files
authored
Merge pull request #61 from Spegs21/master
Add UF2 build/generation information to Readme
2 parents f5b654e + 4653c07 commit 9d7de45

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,20 @@ There is an adjacent ground pad.
7070

7171
For other boards, please check the board definition for details.
7272

73+
### Making your own UF2
74+
75+
To create your own UF2 DFU update image, simply use the [Python conversion script](https://github.com/Microsoft/uf2/blob/master/utils/uf2conv.py) on a .bin file or .hex file, specifying the family as **0xADA52840**. Be sure to compile your application to start at 0x26000 (152k). If using a .bin file with the conversion script you must specify this with the -b switch.
76+
77+
To create a UF2 image from a .bin file:
78+
```
79+
uf2conv.py firmware.bin -c -b 0x26000 -f 0xADA52840
80+
```
81+
82+
To create a UF2 image from a .hex file:
83+
```
84+
uf2conv.py firmware.hex -c -f 0xADA52840
85+
```
86+
7387
## Burn & Upgrade with pre-built binaries
7488

7589
You can burn and/or upgrade the bootloader with either a J-link or DFU (serial) to a specific pre-built binary version

0 commit comments

Comments
 (0)