Skip to content

Commit 4d36ecf

Browse files
robert-hhdpgeorge
authored andcommitted
samd/boards/SAMD21_XPLAINED_PRO: Add specific deploy instructions.
Add instructions to install a bootloader to the board. The SAMD21 XPLAINED PRO board is shipped without a bootloader, which therefore has to be installed once before it can be used with MicroPython. Signed-off-by: robert-hh <[email protected]>
1 parent 5a70850 commit 4d36ecf

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

ports/samd/boards/SAMD21_XPLAINED_PRO/board.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"deploy": [
3-
"../deploy.md"
3+
"deploy_xplained_pro.md"
44
],
55
"docs": "",
66
"features": [
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
The SAMD21 Xplained Pro board is shipped without a bootloader. For use
2+
with MicroPyhton a suitable bootloader has be be installed first. The
3+
following procedure has been found to work and be simple:
4+
5+
1. Get the bootloader from https://micropython.org/resources/firmware/bootloader-xplained-pro-v3.16.0-15-gaa52b22.hex.
6+
2. Connect your board to the debug port. A drive with the name XPLAINED
7+
shall appear.
8+
3. Copy the Intel hex file of the bootloader to that drive.
9+
4. Connect your board to the target port. A drive with the name SAMD21XPL should
10+
appear. If not, push reset twice. Then it should appear. If that does not
11+
happen, the bootloader was not properly installed or is not compatible.
12+
5. Copy the MicroPython firmware, a .uf2 file, to the SAMD21 drive. When the SAMD21
13+
drive disappears, MicroPython is installed.
14+
15+
From now on only steps 4 and 5 are needed to update MicroPython. You can use the
16+
usual methods to invoke the bootloader, namely:
17+
18+
- Push Reset twice.
19+
- Call machine.bootloader().
20+
- Use the touch 1200 procedure by switching the USB baud rate to 1200 baud and back.
21+
22+
At the above link above there are as well .uf2 versions of the bootloader
23+
which one can install using steps 5. and 6. above once a .uf2 capable
24+
bootloader is installed.

0 commit comments

Comments
 (0)