Skip to content

Commit b545673

Browse files
authored
Merge pull request #257 from adafruit/update-833-familyid-doc
update readme for 833 uf2 family id
2 parents af15d74 + 4dab090 commit b545673

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

README.md

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,16 +79,24 @@ For other boards, please check the board definition for details.
7979
8080
### Making your own UF2
8181
82-
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**. If using a .bin file with the conversion script you must specify application address with the -b switch, this address depend on the SoftDevice size/version e.g S140 v6 is 0x26000
82+
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** (nRF52840) or **0x621E937A** (nRF52833).
8383
84-
To create a UF2 image from a .bin file:
8584
```
86-
uf2conv.py firmware.bin -c -b 0x26000 -f 0xADA52840
85+
nRF52840
86+
uf2conv.py firmware.hex -c -f 0xADA52840
87+
88+
nRF52833
89+
uf2conv.py firmware.hex -c -f 0x621E937A
8790
```
8891
89-
To create a UF2 image from a .hex file:
92+
If using a .bin file with the conversion script you must specify application address with the -b switch, this address depend on the SoftDevice size/version e.g S140 v6 is 0x26000, v7 is 0x27000
93+
9094
```
91-
uf2conv.py firmware.hex -c -f 0xADA52840
95+
nRF52840
96+
uf2conv.py firmware.bin -c -b 0x26000 -f 0xADA52840
97+
98+
nRF52833
99+
uf2conv.py firmware.bin -c -b 0x27000 -f 0x621E937A
92100
```
93101
94102
To create a UF2 image for bootloader from a .hex file using separated family of **0xd663823c**

src/usb/uf2/uf2cfg.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// Family ID for updating generic Application
55
#if defined(NRF52833_XXAA)
66
#define CFG_UF2_FAMILY_APP_ID 0x621E937A
7-
#else
7+
#elif defined(NRF52840_XXAA)
88
#define CFG_UF2_FAMILY_APP_ID 0xADA52840
99
#endif
1010

0 commit comments

Comments
 (0)