diff --git a/.github/workflows/workflow-validate.yaml b/.github/workflows/workflow-validate.yaml index 3006a5b909..f0d6ff0af1 100644 --- a/.github/workflows/workflow-validate.yaml +++ b/.github/workflows/workflow-validate.yaml @@ -18,7 +18,7 @@ jobs: - name: Run spell check run: | pip install codespell - codespell -I "scripts/resources/spell-check-ignore-list.txt" --skip="*.svg,*.dxf" ./content/ + codespell -I "scripts/resources/spell-check-ignore-list.txt" --skip="*.svg,*.dxf,*.pdf" ./content/ lint: name: Content Linter diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 59065fbc01..6f6ff7663c 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -133,7 +133,7 @@ { "label": "Run spell check", "type": "shell", - "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}", + "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}", "options": { "cwd": "${workspaceFolder}" }, diff --git a/content/hardware/04.pro/boards/portenta-x8/tutorials/image-flashing/assets/breakout-dip-switches.png b/content/hardware/04.pro/boards/portenta-x8/tutorials/image-flashing/assets/breakout-dip-switches.png new file mode 100644 index 0000000000..33e9e11046 Binary files /dev/null and b/content/hardware/04.pro/boards/portenta-x8/tutorials/image-flashing/assets/breakout-dip-switches.png differ diff --git a/content/hardware/04.pro/boards/portenta-x8/tutorials/image-flashing/assets/foundries-factories-target-runs.png b/content/hardware/04.pro/boards/portenta-x8/tutorials/image-flashing/assets/foundries-factories-target-runs.png deleted file mode 100644 index 25459b00c9..0000000000 Binary files a/content/hardware/04.pro/boards/portenta-x8/tutorials/image-flashing/assets/foundries-factories-target-runs.png and /dev/null differ diff --git a/content/hardware/04.pro/boards/portenta-x8/tutorials/image-flashing/assets/foundries-factories-targets-dashboard.png b/content/hardware/04.pro/boards/portenta-x8/tutorials/image-flashing/assets/foundries-factories-targets-dashboard.png deleted file mode 100644 index 489d8f95eb..0000000000 Binary files a/content/hardware/04.pro/boards/portenta-x8/tutorials/image-flashing/assets/foundries-factories-targets-dashboard.png and /dev/null differ diff --git a/content/hardware/04.pro/boards/portenta-x8/tutorials/image-flashing/assets/foundries-factories-targets.png b/content/hardware/04.pro/boards/portenta-x8/tutorials/image-flashing/assets/foundries-factories-targets.png deleted file mode 100644 index 475ea30051..0000000000 Binary files a/content/hardware/04.pro/boards/portenta-x8/tutorials/image-flashing/assets/foundries-factories-targets.png and /dev/null differ diff --git a/content/hardware/04.pro/boards/portenta-x8/tutorials/image-flashing/assets/foundries-factories.png b/content/hardware/04.pro/boards/portenta-x8/tutorials/image-flashing/assets/foundries-factories.png deleted file mode 100644 index e2aa17e1aa..0000000000 Binary files a/content/hardware/04.pro/boards/portenta-x8/tutorials/image-flashing/assets/foundries-factories.png and /dev/null differ diff --git a/content/hardware/04.pro/boards/portenta-x8/tutorials/image-flashing/assets/lpm-manifest-overview.png b/content/hardware/04.pro/boards/portenta-x8/tutorials/image-flashing/assets/lpm-manifest-overview.png new file mode 100644 index 0000000000..e54b1f55b4 Binary files /dev/null and b/content/hardware/04.pro/boards/portenta-x8/tutorials/image-flashing/assets/lpm-manifest-overview.png differ diff --git a/content/hardware/04.pro/boards/portenta-x8/tutorials/image-flashing/assets/max-carrier-dip-switches.png b/content/hardware/04.pro/boards/portenta-x8/tutorials/image-flashing/assets/max-carrier-dip-switches.png new file mode 100644 index 0000000000..0cd34656cb Binary files /dev/null and b/content/hardware/04.pro/boards/portenta-x8/tutorials/image-flashing/assets/max-carrier-dip-switches.png differ diff --git a/content/hardware/04.pro/boards/portenta-x8/tutorials/image-flashing/content.md b/content/hardware/04.pro/boards/portenta-x8/tutorials/image-flashing/content.md index 578dca2199..83f9bcd617 100644 --- a/content/hardware/04.pro/boards/portenta-x8/tutorials/image-flashing/content.md +++ b/content/hardware/04.pro/boards/portenta-x8/tutorials/image-flashing/content.md @@ -6,7 +6,6 @@ difficulty: intermediate tags: - Embedded Linux - Flashing - - Foundries.io author: 'Pablo Marquínez' hardware: - hardware/04.pro/boards/portenta-x8 @@ -14,9 +13,10 @@ hardware: ## Overview -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. +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. +The instructions below are meant to be used with a Windows Operating System. -***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*** +***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*** ## Goals @@ -30,20 +30,25 @@ In this tutorial you will see how to manually flash your Portenta X8 with the im - USB-C to USB-A or USB-C to USB-C - Portenta X8 - Portenta Breakout Board or Portenta Max Carrier -- Arduino Create account -- Arduino Pro Cloud Subscription. [Learn more about the Pro Cloud](https://www.arduino.cc/pro/hardware/product/portenta-x8#pro-cloud). -- Foundries.io account (linked with the Pro Cloud subscription) -- FoundriesFactory® ([Check the Getting Started tutorial](https://docs.arduino.cc/tutorials/portenta-x8/out-of-the-box)) -- 1 Device already attached to your factory ([Check the Getting Started tutorial](https://docs.arduino.cc/tutorials/portenta-x8/out-of-the-box)) ## Instructions ### Get the Required Files -Required files following this structure: +#### Arduino's GitHub Repository + +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. + +While we were writing this tutorial the available version was `456`, but you will probably find a more recent version in the future. + +Click on the file `456.tar.gz` (or newer) and download it to your computer. + +![lpm-manifest repository overview](assets/lpm-manifest-overview.png) + +Then After downloading it, unzip it, you will get a structure like the following: ``` -Root folder +Unzipped folder ├── imx-boot-portenta-x8 ├── lmp-partner-arduino-image-portenta-x8.wic.gz **(Compressed)** ├── mfgtool-files-portenta-x8.tar.gz **(Compressed)** @@ -51,45 +56,41 @@ Root folder └── u-boot-portenta-x8.itb ``` -To get those files: - -#### Arduino's GitHub Repository - -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. - -#### Through Foundries.io - -Open your FoundriesFactory®. +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. -![Foundries.io factories dashboard](assets/foundries-factories.png) - -Switch to the targets tab. - -![Foundries.io factory targets tab](assets/foundries-factories-targets.png) - -Click on the platform-master version. +It needs to be like: +``` +Unzipped folder +├── mfgtool-files-portenta-x8/ +├── imx-boot-portenta-x8 +├── lmp-partner-arduino-image-portenta-x8.wic +├── lmp-partner-arduino-image-portenta-x8.wic.gz **(Compressed)** +├── mfgtool-files-portenta-x8.tar.gz **(Compressed)** +├── sit-portenta-x8.bin +└── u-boot-portenta-x8.itb +``` -![Foundries.io tag dashboard](assets/foundries-factories-targets-dashboard.png) +### Set the Portenta X8 to Flashing Mode -On the "Runs" section open those collapsed labels, and download the files listed above by clicking on their text (like a normal link). +Plug your Portenta X8 into your carrier (e.g. Portenta Breakout carrier or Portenta Max Carrier). -![Foundries.io target runs section](assets/foundries-factories-target-runs.png) +Place both DIP switches to the ON position. -After downloading them, make sure you put them in a folder following the structure shown and extract the compressed files. +On the Portenta Max Carrier the DIP switches are identified by a label `BOOT SEL` and `BOOT` as shown in figure. -### Set the Portenta X8 to Flashing Mode +![Max Carrier DIP switches](assets/max-carrier-dip-switches.png) -Plug your Porenta X8 into your carrier (Portenta Breakout carrier ). +On the Portenta Breakout the DIP switches are identified by a label `BT_SEL` and `BOOT` as shown in figure. -Switch both DIP switches to the ON position. +![Breakout DIP switches](assets/breakout-dip-switches.png) -Plug the USB-C end into the Portenta X8 and the other end (USB-C or USB-A) to your computer. +Plug one USB-C end into the Portenta X8 and the other end (USB-C or USB-A) to your computer. -You will see a new device connected called `SE Blank M845S`. +You will see a new connected device called `SE Blank M845S`. ### Flash the Device -Open a terminal and change the directory (`cd`) to your root folder as shown in the beginning. +Open a terminal and change the directory (`cd`) to the folder where `mfgtool-files-portenta-x8` file is located. Use the `uuu full_image.uuu` command. @@ -97,12 +98,15 @@ Wait until it gets flashed. ![uuu tool flashing success output](assets/uuu-flashing-success.png) -Switch back the DIP switches to OFF position. +At this point, set back the DIP switches to OFF position. + +Unplug and then plug-in again the Portenta X8 to your computer. -Unplug and then plug in the Portenta X8 to your computer. +***After booting you will need to wait 10 secs until the Portenta X8 blue LED starts blinking. This means the boot was successful.*** -***After booting you will need to wait 10 secs, until the Portenta X8 blue LED starts blinking, this means the boot was successful*** +Now you can start using your Portenta X8 with the latest updates. ## Troubleshooting -- 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. +- 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. +- If you get an error related to permissions, try to launch the `uuu` command as Super User (`sudo`). diff --git a/content/retired/06.getting-started-guides/ArduinoUnoWiFiChangeFw/ArduinoUnoWiFiChangeFw.md b/content/retired/06.getting-started-guides/ArduinoUnoWiFiChangeFw/ArduinoUnoWiFiChangeFw.md index eb069af455..5b399ce957 100644 --- a/content/retired/06.getting-started-guides/ArduinoUnoWiFiChangeFw/ArduinoUnoWiFiChangeFw.md +++ b/content/retired/06.getting-started-guides/ArduinoUnoWiFiChangeFw/ArduinoUnoWiFiChangeFw.md @@ -188,7 +188,7 @@ USB2SerialArduino Uno WiFiRXRXTXTXGNDGND - Select the second row and insert the user1.bin file and set the address: 0x40000. -- Select the third row and insert the esp_init_data_default.bin_rep fileand set the address: 0x7C000. +- Select the third row and insert the esp_init_data_default.bin_rep file and set the address: 0x7C000. - Select the quarter row and insert the blank.bin file and set the address: 0x7E000, as shown in the picture. diff --git a/scripts/spell-check.cmd b/scripts/spell-check.cmd index d3c7858ccd..860d4215c4 100644 --- a/scripts/spell-check.cmd +++ b/scripts/spell-check.cmd @@ -16,4 +16,4 @@ IF %ERRORLEVEL% NEQ 0 ( ECHO Codespell already installed ) cls -codespell -I scripts/resources/spell-check-ignore-list.txt --skip="*.svg,*.dxf" content \ No newline at end of file +codespell -I scripts/resources/spell-check-ignore-list.txt --skip="*.svg,*.dxf,*.pdf" content \ No newline at end of file