| 1 |
## 1. Deploy the MicroPython firmware to the iMX RT1011 Nano Kit. |
| 2 |
|
| 3 |
The iMX RT1011 Nano Kit comes pre-installed with a UF2 bootloader. |
| 4 |
It can be started by pushing reset twice. Then the bootloader drive will |
| 5 |
appear. If that does not happen or the bootloader was lost, you can |
| 6 |
reinstall the bootloader using the procedure below. |
| 7 |
|
| 8 |
Once the bootloader is installed and started, you can install MicroPython |
| 9 |
by copying the .uf2 version of the firmware file to the bootloader |
| 10 |
drive. When the firmware is installed, the drive will disappear. |
| 11 |
|
| 12 |
## 2. Reinstall the bootloader iMX RT1011 Nano Kit. |
| 13 |
|
| 14 |
1. Get the NXP program sdphost for your operating system, e.g. from |
| 15 |
https://github.com/adafruit/tinyuf2/tree/master/ports/mimxrt10xx/sdphost. |
| 16 |
You can also get them from the NXP web sites. |
| 17 |
|
| 18 |
2. Get the UF2 boot-loader package https://github.com/adafruit/tinyuf2/releases/tag/0.21.0 |
| 19 |
and extract the file tinyuf2-makerdiary_rt1011-0.21.0.bin. You may as |
| 20 |
well go for a newer release. |
| 21 |
|
| 22 |
Now you have all files at hand that you will need for updating. |
| 23 |
|
| 24 |
1. Push and hold the "USR/BT" button, then press "RST", and release both buttons. |
| 25 |
|
| 26 |
2. Run the commands: |
| 27 |
|
| 28 |
``` |
| 29 |
sudo ./sdphost -u 0x1fc9,0x0145 -- write-file 0x20206400 tinyuf2-makerdiary_rt1011-0.21.0.bin |
| 30 |
sudo ./sdphost -u 0x1fc9,0x0145 -- jump-address 0x20207000 |
| 31 |
``` |
| 32 |
Wait until a drive icon appears on the computer (or mount it explicitly). |
| 33 |
At this point the bootloader is installed. You can now copy the |
| 34 |
MicroPython .uf2 file to the board to start the firmware upload. |
| 35 |
A LED on the board will start flickering, indicating that the |
| 36 |
upload is ongoing. Once the upload is complete, the drive icon will |
| 37 |
disappear. Wait until the LED stops flickering. In rare cases there |
| 38 |
may be an error message coming up, especially when there are only few |
| 39 |
or no changes in the firmware file. Then just repeat the upload. |