Debian Codegraph @

ports/nrf/boards/SEEED_XIAO_NRF52/deploy.md

raw
1 The steps below let you create and install the firmware file. For
2 a .uf2 type file taken from the MicroPython downloads source only
3 step 4 is needed. For the .hex version of the firmware file, steps
4 1, 3 and 4 are required.
5
6 1. Download and install u2fconv.py. It is available e.g. in the tools
7 directory of MicroPython.
8
9 2. Create a firmware for the SEEED nrf52840 if needed, with the command
10
11 `make BOARD=SEEED_XIAO_NRF52 -j5`
12
13 in the directory build-SEEED_XIAO_NRF52-s140. The firmware file will have the
14 name firmware.uf2.
15
16 3. Create the .uf2 file if needed in the build directory with the command:
17
18 `uf2conv.py -c -f 0xADA52840 -o firmware.uf2 firmware.hex`
19
20 It must report the start address as 0x27000. If you omit the -o option,
21 the output file will have the name flash.uf2.
22
23 4. Enable the upload mode by pushing reset twice or calling
24 machine.bootloader() and copy the file firmware.uf2 to the board drive,
25 which will pop up on your PC.
26
27 In case the XIAO bootloader is lost or overwritten, it can be found
28 at https://github.com/Seeed-Studio/Adafruit_nRF52_Arduino.git in different
29 formats. Using a JLINK adapter or interface, it can be uploaded as hex version.
30 The bootloader is as well available through the Arduino IDE.
31