From d3f5249a61ca458f5177e3ecc75e43196d78692e Mon Sep 17 00:00:00 2001 From: Spegs21 Date: Wed, 27 Mar 2019 22:37:35 -0400 Subject: [PATCH 1/2] Add detail for using UF2 --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index ca70bd0..07bafc4 100644 --- a/README.md +++ b/README.md @@ -70,6 +70,20 @@ There is an adjacent ground pad. For other boards, please check the board definition for details. +### Making your own UF2 + +To create your own UF2 DFU update file 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. + +To create a UF2 image from a .bin file: +``` +uf2conv.py firmware.bin -c -b 0x26000 -f 0xADA52840 +``` + +To create a UF2 image from a .hex file: +``` +uf2conv.py firmware.hex -c -f 0xADA52840 +``` + ## Burn & Upgrade with pre-built binaries You can burn and/or upgrade the bootloader with either a J-link or DFU (serial) to a specific pre-built binary version From 4653c07f06bc0f7d892756d1748bdc5670f5e9a1 Mon Sep 17 00:00:00 2001 From: Spegs21 Date: Wed, 27 Mar 2019 22:39:04 -0400 Subject: [PATCH 2/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 07bafc4..fba1c8e 100644 --- a/README.md +++ b/README.md @@ -72,7 +72,7 @@ For other boards, please check the board definition for details. ### Making your own UF2 -To create your own UF2 DFU update file 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. +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. To create a UF2 image from a .bin file: ```