|
| 1 | +--- |
| 2 | +beta: true |
| 3 | +title: 'How To Flash Your Portenta X8' |
| 4 | +description: 'This tutorial teaches you how to flash your Portenta X8 through USB' |
| 5 | +difficulty: intermediate |
| 6 | +tags: |
| 7 | + - Embedded Linux |
| 8 | + - Flashing |
| 9 | + - Foundries.io |
| 10 | +author: 'Pablo Marquínez' |
| 11 | +hardware: |
| 12 | + - hardware/04.pro/boards/portenta-x8 |
| 13 | +--- |
| 14 | + |
| 15 | +## Overview |
| 16 | + |
| 17 | +In this tutorial you will see how to manually flash your Portenta X8 with the image that is provided by Foundries.io through USB using the Terminal. |
| 18 | + |
| 19 | +## Goals |
| 20 | + |
| 21 | +- Get the required files |
| 22 | +- Set up the correct structure of the files |
| 23 | +- Set up the board |
| 24 | +- Flash the device |
| 25 | + |
| 26 | +### Required Hardware and Software |
| 27 | + |
| 28 | +- USB-C to USB-A or USB-C to USB-C |
| 29 | +- Portenta X8 |
| 30 | +- Portenta Breakout Board <!-- or Portenta Max Carrier--> |
| 31 | +- Arduino Create account |
| 32 | +- Arduino Create Pro subscription |
| 33 | +- Foundries.io account (linked with the Pro plan) |
| 34 | +- FoundriesFactory® ([Check the Getting Started tutorial](https://docs.arduino.cc/tutorials/portenta-x8/out-of-the-box)) |
| 35 | +- 1 Device already attached to your factory ([Check the Getting Started tutorial](https://docs.arduino.cc/tutorials/portenta-x8/out-of-the-box)) |
| 36 | + |
| 37 | +## Instructions |
| 38 | + |
| 39 | +### Get the Required Files |
| 40 | + |
| 41 | +Required files following this structure: |
| 42 | + |
| 43 | +``` |
| 44 | +Root folder |
| 45 | +├── imx-boot |
| 46 | +├── imx-boot-portenta-x8 |
| 47 | +├── lmp-partner-arduino-image-portenta-x8.wic.gz **(Unzipped)** |
| 48 | +├── mfgtool-files-portenta-x8.tar **(Unzipped)** |
| 49 | +├── sit-portenta-x8.bin |
| 50 | +└── u-boot-portenta-x8.itb |
| 51 | +``` |
| 52 | + |
| 53 | +To get those files open your FoundriesFactory®. |
| 54 | + |
| 55 | + |
| 56 | + |
| 57 | +Switch to the targets tab. |
| 58 | + |
| 59 | + |
| 60 | + |
| 61 | +Click on the platform-master version. |
| 62 | + |
| 63 | + |
| 64 | + |
| 65 | +On the "Runs" section open those collapsed labels, and download the files listed above by clicking on their text (like a normal link). |
| 66 | + |
| 67 | + |
| 68 | + |
| 69 | +After downloading them, make sure you put them in a folder following the structure shown. |
| 70 | + |
| 71 | +### Set the Portenta X8 to Flashing Mode |
| 72 | + |
| 73 | +Plug your Porenta X8 into your carrier (Portenta Breakout carrier <!-- or Portenta Max Carrier-->). |
| 74 | + |
| 75 | +Switch both DIP switches to the ON position. |
| 76 | + |
| 77 | +Plug the USB-C end into the Portenta X8 and the other end (USB-C or USB-A) to your computer. |
| 78 | + |
| 79 | +You will see a new device connected called `SE Blank M845S`. |
| 80 | + |
| 81 | +### Flash the Device |
| 82 | + |
| 83 | +Open a terminal and change the directory (`cd`) to your root folder as shown in the beginning. |
| 84 | + |
| 85 | +Use the `uuu full_image.uuu` command. |
| 86 | + |
| 87 | +Wait until it gets flashed. |
| 88 | + |
| 89 | + |
| 90 | + |
| 91 | +Switch back the DIP switches to OFF position. |
| 92 | + |
| 93 | +Unplug and then plug in the Portenta X8 to your computer. |
| 94 | + |
| 95 | +***After flashing you will need to wait 10 secs, until the Portenta X8 blue LED starts blinking, this means the boot was successful*** |
| 96 | + |
| 97 | +## Troubleshooting |
| 98 | + |
| 99 | +- If you get an error while its flashing, make sure your USB is correctly plugged in. Re-plug your board and try to flash again, you may need few tries before the flashing is successful. |
0 commit comments