| 1 |
The Seeed Arch Mix board is delivered without firmware. The best option to |
| 2 |
install MicroPython is installing a UF2 bootstrap loader first, which then can be |
| 3 |
used to install and update MicroPython. The bootloader has to be installed |
| 4 |
only once. |
| 5 |
|
| 6 |
For initial deployment of the bootloader a few preparation steps are required, which |
| 7 |
have to be done once. |
| 8 |
|
| 9 |
1. Get the NXP program sdphost for your operating system, e.g. from |
| 10 |
https://github.com/adafruit/tinyuf2/tree/master/ports/mimxrt10xx/sdphost. |
| 11 |
You can also get them from the NXP web sites. |
| 12 |
|
| 13 |
2. Get the UF2 boot-loader package https://github.com/adafruit/tinyuf2/releases/tag/0.20.1/tinyuf2-imxrt1050_evkb-0.21.0.zip and extract the files `tinyuf2-imxrt1050_evkb-0.21.0.bin`. |
| 14 |
You may as well go for a newer release. |
| 15 |
|
| 16 |
Now you have all files at hand that you will need for updating. |
| 17 |
|
| 18 |
1. Get the firmware file you want to upload with the .uf2 extension from the MicroPython download page. |
| 19 |
|
| 20 |
2. At the Seeed Arch Mix board, connect the RX pin (J3-19) with 3.3V, and change the DIP switches |
| 21 |
3 an 4 at SW1 from 1-0 to 0-1. |
| 22 |
|
| 23 |
3. Push Reset. |
| 24 |
|
| 25 |
4. Run the commands: |
| 26 |
|
| 27 |
``` |
| 28 |
sudo ./sdphost -u 0x1fc9,0x0130 -- write-file 0x1000 tinyuf2-imxrt1050_evkb-0.21.0.bin |
| 29 |
sudo ./sdphost -u 0x1fc9,0x0130 -- jump-address 0x2000 |
| 30 |
``` |
| 31 |
Wait until a drive icon appears on the computer (or mount it explicitly). When using the above |
| 32 |
mentioned bootloader, it has the label `RT1050BOOT`. Then the UF2 bootloader |
| 33 |
is permanently installed. |
| 34 |
|
| 35 |
Using sudo is Linux specific. You may not need it at all, if the access rights are set properly, |
| 36 |
and you will not need it for Windows. |
| 37 |
|
| 38 |
5. At the Seeed Arch Mix board, disconnect the RX pin (J3-19) with 3.3V, and change the DIP switches |
| 39 |
3 an 4 at SW1 back to 1-0. |
| 40 |
|
| 41 |
6. Once the upload of the bootloader is finished or when it is already installed, push Reset twice. |
| 42 |
|
| 43 |
The bootloader should start and show a drive icon. Do not push too fast. The i.MX RT MCU |
| 44 |
have no dedicated Reset Pin and are reset through power cycling, which may be slow. |
| 45 |
Copy the .uf2 version of MicroPython to this drive to install or update MicroPython. |
| 46 |
If after steps 1-4 the bootloader drive is already shown, you do not have to reset again. |
| 47 |
|
| 48 |
Once the UF2 bootloader is installed, only step 6 is required to deploy MicroPython. If |
| 49 |
MicroPython is already installed, the bootloader can as well be invoked by calling |
| 50 |
`machine.bootloader()` or switching the USB baud rate at the PC to 1200 baud and back. |
| 51 |
|
| 52 |
If at any time the flash content is corrupted you can always start over from the beginning. |