Skip to content

Commit ab8d26a

Browse files
authored
Merge pull request #603 from arduino/martab1994/Portenta-X8/image-flashing-fix
Portenta X8 Image Flashing tutorial fixes
2 parents ea66e49 + a57ad21 commit ab8d26a

File tree

12 files changed

+48
-44
lines changed

12 files changed

+48
-44
lines changed

.github/workflows/workflow-validate.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Run spell check
1919
run: |
2020
pip install codespell
21-
codespell -I "scripts/resources/spell-check-ignore-list.txt" --skip="*.svg,*.dxf" ./content/
21+
codespell -I "scripts/resources/spell-check-ignore-list.txt" --skip="*.svg,*.dxf,*.pdf" ./content/
2222
2323
lint:
2424
name: Content Linter

.vscode/tasks.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@
133133
{
134134
"label": "Run spell check",
135135
"type": "shell",
136-
"command": "(pip install codespell > /dev/null 2>&1 || pip3 install codespell > /dev/null 2>&1) && codespell -I 'scripts${pathSeparator}resources${pathSeparator}spell-check-ignore-list.txt' --skip='*.svg,*.dxf' .${pathSeparator}content${pathSeparator}",
136+
"command": "(pip install codespell > /dev/null 2>&1 || pip3 install codespell > /dev/null 2>&1) && codespell -I 'scripts${pathSeparator}resources${pathSeparator}spell-check-ignore-list.txt' --skip='*.svg,*.dxf,*.pdf' .${pathSeparator}content${pathSeparator}",
137137
"options": {
138138
"cwd": "${workspaceFolder}"
139139
},

content/hardware/04.pro/boards/portenta-x8/tutorials/image-flashing/content.md

Lines changed: 44 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@ difficulty: intermediate
66
tags:
77
- Embedded Linux
88
- Flashing
9-
- Foundries.io
109
author: 'Pablo Marquínez'
1110
hardware:
1211
- hardware/04.pro/boards/portenta-x8
1312
---
1413

1514
## Overview
1615

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.
16+
In this tutorial you will see how to manually flash your Portenta X8 with the image that is provided by Arduino. You will flash your board through USB using the Terminal.
17+
The instructions below are meant to be used with a Windows Operating System.
1818

19-
***Attention: We encourage you to check every now and then if the device image version is up to date in order to have the latest bootloader, please check the release section of the [lmp-manifest repository](https://github.com/arduino/lmp-manifest/releases) and compare the target version number***
19+
***Attention: We encourage you to check every now and then if the device image version is up-to-date in order to have the latest bootloader. Please check the release section of the [lmp-manifest repository](https://github.com/arduino/lmp-manifest/releases) and compare the target version number***
2020

2121
## Goals
2222

@@ -30,79 +30,83 @@ In this tutorial you will see how to manually flash your Portenta X8 with the im
3030
- USB-C to USB-A or USB-C to USB-C
3131
- Portenta X8
3232
- Portenta Breakout Board or Portenta Max Carrier
33-
- Arduino Create account
34-
- Arduino Pro Cloud Subscription. [Learn more about the Pro Cloud](https://www.arduino.cc/pro/hardware/product/portenta-x8#pro-cloud).
35-
- Foundries.io account (linked with the Pro Cloud subscription)
36-
- FoundriesFactory® ([Check the Getting Started tutorial](https://docs.arduino.cc/tutorials/portenta-x8/out-of-the-box))
37-
- 1 Device already attached to your factory ([Check the Getting Started tutorial](https://docs.arduino.cc/tutorials/portenta-x8/out-of-the-box))
3833

3934
## Instructions
4035

4136
### Get the Required Files
4237

43-
Required files following this structure:
38+
#### Arduino's GitHub Repository
39+
40+
Go to the `lmp-manifest` [GitHub repository](https://github.com/arduino/lmp-manifest) and open the [releases](https://github.com/arduino/lmp-manifest/releases) section, there you will find a compressed `.tar.gz` with all the required files.
41+
42+
While we were writing this tutorial the available version was `456`, but you will probably find a more recent version in the future.
43+
44+
Click on the file `456.tar.gz` (or newer) and download it to your computer.
45+
46+
![lpm-manifest repository overview](assets/lpm-manifest-overview.png)
47+
48+
Then After downloading it, unzip it, you will get a structure like the following:
4449

4550
```
46-
Root folder
51+
Unzipped folder
4752
├── imx-boot-portenta-x8
4853
├── lmp-partner-arduino-image-portenta-x8.wic.gz **(Compressed)**
4954
├── mfgtool-files-portenta-x8.tar.gz **(Compressed)**
5055
├── sit-portenta-x8.bin
5156
└── u-boot-portenta-x8.itb
5257
```
5358

54-
To get those files:
55-
56-
#### Arduino's GitHub Repository
57-
58-
Go to the `lmp-manifest` [GitHub repository](https://github.com/arduino/lmp-manifest) and open the [releases](https://github.com/arduino/lmp-manifest/releases) section, there you will find a compressed `.tar.gz` with all the required files.
59-
60-
#### Through Foundries.io
61-
62-
Open your FoundriesFactory®.
59+
Then unzip `mfgtool-files-portenta-x8.tar.gz` and `lmp-partner-arduino-image-portenta-x8.wic.gz` make sure the .wic is on the unzipped folder in the main directory.
6360

64-
![Foundries.io factories dashboard](assets/foundries-factories.png)
65-
66-
Switch to the targets tab.
67-
68-
![Foundries.io factory targets tab](assets/foundries-factories-targets.png)
69-
70-
Click on the platform-master version.
61+
It needs to be like:
62+
```
63+
Unzipped folder
64+
├── mfgtool-files-portenta-x8/
65+
├── imx-boot-portenta-x8
66+
├── lmp-partner-arduino-image-portenta-x8.wic
67+
├── lmp-partner-arduino-image-portenta-x8.wic.gz **(Compressed)**
68+
├── mfgtool-files-portenta-x8.tar.gz **(Compressed)**
69+
├── sit-portenta-x8.bin
70+
└── u-boot-portenta-x8.itb
71+
```
7172

72-
![Foundries.io tag dashboard](assets/foundries-factories-targets-dashboard.png)
73+
### Set the Portenta X8 to Flashing Mode
7374

74-
On the "Runs" section open those collapsed labels, and download the files listed above by clicking on their text (like a normal link).
75+
Plug your Portenta X8 into your carrier (e.g. Portenta Breakout carrier or Portenta Max Carrier).
7576

76-
![Foundries.io target runs section](assets/foundries-factories-target-runs.png)
77+
Place both DIP switches to the ON position.
7778

78-
After downloading them, make sure you put them in a folder following the structure shown and extract the compressed files.
79+
On the Portenta Max Carrier the DIP switches are identified by a label `BOOT SEL` and `BOOT` as shown in figure.
7980

80-
### Set the Portenta X8 to Flashing Mode
81+
![Max Carrier DIP switches](assets/max-carrier-dip-switches.png)
8182

82-
Plug your Porenta X8 into your carrier (Portenta Breakout carrier <!-- or Portenta Max Carrier-->).
83+
On the Portenta Breakout the DIP switches are identified by a label `BT_SEL` and `BOOT` as shown in figure.
8384

84-
Switch both DIP switches to the ON position.
85+
![Breakout DIP switches](assets/breakout-dip-switches.png)
8586

86-
Plug the USB-C end into the Portenta X8 and the other end (USB-C or USB-A) to your computer.
87+
Plug one USB-C end into the Portenta X8 and the other end (USB-C or USB-A) to your computer.
8788

88-
You will see a new device connected called `SE Blank M845S`.
89+
You will see a new connected device called `SE Blank M845S`.
8990

9091
### Flash the Device
9192

92-
Open a terminal and change the directory (`cd`) to your root folder as shown in the beginning.
93+
Open a terminal and change the directory (`cd`) to the folder where `mfgtool-files-portenta-x8` file is located.
9394

9495
Use the `uuu full_image.uuu` command.
9596

9697
Wait until it gets flashed.
9798

9899
![uuu tool flashing success output](assets/uuu-flashing-success.png)
99100

100-
Switch back the DIP switches to OFF position.
101+
At this point, set back the DIP switches to OFF position.
102+
103+
Unplug and then plug-in again the Portenta X8 to your computer.
101104

102-
Unplug and then plug in the Portenta X8 to your computer.
105+
***After booting you will need to wait 10 secs until the Portenta X8 blue LED starts blinking. This means the boot was successful.***
103106

104-
***After booting you will need to wait 10 secs, until the Portenta X8 blue LED starts blinking, this means the boot was successful***
107+
Now you can start using your Portenta X8 with the latest updates.
105108

106109
## Troubleshooting
107110

108-
- 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.
111+
- If you get an error while it is flashing, make sure your USB is correctly plugged in. Re-plug your board and try to flash it again. You may need few trials before the flashing is successful.
112+
- If you get an error related to permissions, try to launch the `uuu` command as Super User (`sudo`).

content/retired/06.getting-started-guides/ArduinoUnoWiFiChangeFw/ArduinoUnoWiFiChangeFw.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ USB2SerialArduino Uno WiFiRXRXTXTXGNDGND
188188

189189
- Select the second row and insert the user1.bin file and set the address: 0x40000.
190190

191-
- Select the third row and insert the esp_init_data_default.bin_rep fileand set the address: 0x7C000.
191+
- Select the third row and insert the esp_init_data_default.bin_rep file and set the address: 0x7C000.
192192

193193
- Select the quarter row and insert the blank.bin file and set the address: 0x7E000, as shown in the picture.
194194

scripts/spell-check.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ IF %ERRORLEVEL% NEQ 0 (
1616
ECHO Codespell already installed
1717
)
1818
cls
19-
codespell -I scripts/resources/spell-check-ignore-list.txt --skip="*.svg,*.dxf" content
19+
codespell -I scripts/resources/spell-check-ignore-list.txt --skip="*.svg,*.dxf,*.pdf" content

0 commit comments

Comments
 (0)