You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
***If you want to learn more about how to work with RPC on your Portenta X8, please check the [dedicated section](#working-with-arduino) of this user manual.***
274
+
***If you want to learn more about how to work with RPC on your Portenta X8, please check the [dedicated section](#working-with-arduino-sketch) of this user manual.***
275
275
276
276
## Portenta X8 OS Image Update
277
277
@@ -312,7 +312,9 @@ chmod +x 399-install-update
312
312
sudo ./399-install-update
313
313
```
314
314
315
-
Remember that the default password for admin access is `fio`.
315
+
Remember to set a new admin password at your first access.
316
+
317
+
***For image versions earlier than 844, the default password for admin access is `fio`.***
316
318
317
319
Now you need to reboot the board by pressing its pushbutton for around 10 seconds. After that, connect again to your Portenta X8 through the Command Line and type the following commands:
318
320
@@ -475,7 +477,7 @@ The table below describes LEDs meaning and functionalities.
475
477
| Status LED | Green | Board connected to the Internet |
476
478
| Status LED | Red | STM32H7 LED, blinking when triggered in the IDE |
477
479
478
-
### First configuration with the Out-of-the-box experience
480
+
### Setup with the Arduino Linux Configurator
479
481
480
482
***It is recommended to have your Portenta X8 with the latest OS version. Check [this section](#portenta-x8-os-image-update) to learn how to have your Portenta X8 up-to-date.***
481
483
@@ -497,11 +499,13 @@ The agent will be installed in your computer. This activity might take few minut
Now click on **START CONFIGURATION**. The tool will install all the required add-ons to make your Portenta X8 able to work efficiently with your PC.
502
+
Now click on **START CONFIGURATION**. The tool will install all the required add-ons to make your Portenta X8 able to work efficiently with your PC leveraging serial communication.
501
503
You can now proceed to the setup of the board connectivity by clicking **OK, GOT IT**.
***If you face any issue with this flow or you prefer to directly interact with your Portenta X8 through the command line, please refer to [this section](#working-with-linux) to learn how to connect with the board leveraging ADB service.***
508
+
505
509
#### Wi-Fi® Configuration
506
510
507
511
Click **Wi-Fi® Connection** to start configuring your network connectivity. Otherwise, you can also connect your Portenta X8 to the Internet through an Ethernet cable, using a USB-C® hub with an RJ45 port or a Portenta Carrier. In this tutorial, Wi-Fi® connectivity will be used.
@@ -528,7 +532,7 @@ Now you can click **OK** and you will be redirected to the Out-of-the-box homepa
528
532
529
533
***You can change your network by clicking on the Settings button and repeat the steps above.***
530
534
531
-
#### Portenta X8 Out-Of-The-Box Homepage
535
+
#### Arduino Linux Configurator Homepage
532
536
533
537
This web page is hosted on the Portenta X8 and allows a user to:
534
538
@@ -711,72 +715,43 @@ To verify your device status, click on your FoundriesFactory, go to **Devices**
711
715
712
716
***If you want to learn more about Portenta X8 Manager features, check the dedicated section of this user manual called [Working with Portenta X8 Board Manager](#working-with-portenta-x8-board-manager).***
713
717
714
-
## Portenta X8 with Arduino IDE
715
-
716
-
In this section you will learn how to upload a sketch to the M4 core on the STM32H747XI MCU.
717
-
718
-
Open the Arduino IDE and make sure you downloaded the latest Arduino Mbed OS Portenta Boards Core. Learn how to do it by following [this tutorial](https://docs.arduino.cc/software/ide-v1/tutorials/getting-started/cores/arduino-mbed_portenta).
Create a custom sketch or open one of the example sketches e.g. the blink sketch:
725
-
726
-
```arduino
727
-
void setup(){
728
-
pinMode(LED_BUILTIN ,OUTPUT);
729
-
}
730
-
731
-
void loop(){
732
-
digitalWrite(LED_BUILTIN , HIGH);
733
-
delay(1000);
734
-
digitalWrite(LED_BUILTIN , LOW);
735
-
delay(1000);
736
-
}
737
-
```
738
-
739
-
At this point, select the port of your device in the port selector menu and then press the Compile and Upload button.
740
-
741
-
Behind the curtains, the sketch gets compiled into a binary. That binary file is then uploaded to the Linux side of the Portenta X8. The flashing is done on the board itself by the RPC service running on Linux (see [Communication between Linux and Arduino section](#communication-between-linux-and-arduino) of this user manual to learn more).
742
-
743
-
When the sketch has been uploaded successfully, the onboard LED of your Portenta X8 will start blinking at an interval of one second.
744
-
745
-
You can also upload the firmware manually if you like. To do so, you first need to compile the sketch: select **Export compiled binary** from the Sketch menu in the Arduino IDE. It will compile the sketch and save the binary file in the sketch folder. Alternatively, you can use the [Arduino CLI](https://arduino.github.io/arduino-cli/0.29/) to create an `elf` file.
718
+
## Working with Linux
746
719
747
-
To upload the firmware you can use the ADB tool that has been installed as part of the Portenta X8 core. It can be found at `Arduino15\packages\arduino\tools\adb\32.0.0`.
720
+
Now it is time to start interacting with the Linux OS embedded in your Portenta X8. To do that, you need to open your terminal window and look for [**ADB**](https://developer.android.com/studio/command-line/adb) inside the directory **Arduino15/packages/arduino/tools/adb/32.0.0**. The Arduino15 folder may have a different location depending on the Operating System you are using. Check [this article](https://support.arduino.cc/hc/en-us/articles/360018448279-Open-the-Arduino15-folder) to learn where your Arduino15 folder is located.
748
721
749
-
From that directory, you can use the `adb` tool. To upload your compiled sketch, you just need to type the following command into your terminal window:
722
+
Android Debug Bridge (ADB) is a tool included in the SDK software (Software Development Kit) and used, inter alia, to make an Android device and a computer to communicate with each other. To check if ADB is working correctly, you can type `adb devices`. Your Portenta X8 will be listed there.

754
725
755
-

726
+
***If you need to install ADB, you can also download the right tool for your Operating System directly from the [official Android website](https://developer.android.com/studio/releases/platform-tools).***
756
727
757
-
## Working with Linux
728
+
In case you would like to start the embedded Arduino Linux configurator from the command line, you can continue typing in your terminal `adb forward tcp:8080 tcp:80`. With this command, ADB allows to forward the requests of the `8080 TCP-IP port` of your computer to the `80 TCP-IP port` of your device, that for this case it is the device with the name _Portenta X8_.
758
729
759
-
Now it is time to start interacting with the Linux OS embedded in your Portenta X8. To do that, you need to open your terminal window and look for ADB inside the directory **Arduino15/packages/arduino/tools/adb/32.0.0**.
To check if ADB is working correctly, you can type `adb devices`. Your Portenta X8 will be listed there.
732
+
Now you can open your browser, go to [http://localhost:8080](http://localhost:8080) and the same Arduino Linux Configurator dashboard will appear to allow you to configure your Portenta X8.
762
733
763
-

As it is a Linux device, you can do tasks like creating files, changing directories, etc.
770
741
771
-
To gain admin (root) access, type `sudo su -` and the password, which by default is `fio`. After that, the terminal prefix should turn red.
742
+
To gain admin (root) access, type `sudo su -` and set your own password.
743
+
744
+
***For image versions earlier than 844, the default password for admin access is `fio`.***
745
+
746
+
After that, the terminal prefix should turn red.
772
747
773
748

774
749
775
750
You can now freely program your Portenta X8 Linux OS. In the sections below you can check some basic commands to get started.
776
751
777
752
### Change Default User Password
778
753
779
-
Your Portenta X8 comes with the default user fio with password fio.
754
+
For image versions earlier than 844, our Portenta X8 comes with the default user fio with password fio.
780
755
781
756
For security reasons, we strongly suggest changing the default password. To do so, when logged in to your Portenta X8, launch this command to change the password of the fio account:
782
757
@@ -970,9 +945,51 @@ You may want to build a custom image for the Portenta X8 with the source code pr
970
945
971
946
If you want to continue working with your Portenta X8, you can find tons of additional tutorials in the **Tutorials** section of our [Arduino Docs](https://docs.arduino.cc/hardware/portenta-x8). Go check them out!
972
947
973
-
## Working With Arduino
948
+
## Working With Arduino Sketch
949
+
950
+
In this section you will learn how to upload a sketch to the M4 core on the STM32H747XI MCU.
951
+
952
+
Open the Arduino IDE and make sure you downloaded the latest Arduino Mbed OS Portenta Boards Core. Learn how to do it by following [this tutorial](https://docs.arduino.cc/software/ide-v1/tutorials/getting-started/cores/arduino-mbed_portenta).
Create a custom sketch or open one of the example sketches e.g. the blink sketch:
959
+
960
+
```arduino
961
+
void setup(){
962
+
pinMode(LED_BUILTIN ,OUTPUT);
963
+
}
964
+
965
+
void loop(){
966
+
digitalWrite(LED_BUILTIN , HIGH);
967
+
delay(1000);
968
+
digitalWrite(LED_BUILTIN , LOW);
969
+
delay(1000);
970
+
}
971
+
```
972
+
973
+
At this point, select the port of your device in the port selector menu and then press the Compile and Upload button.
974
+
975
+
Behind the curtains, the sketch gets compiled into a binary. That binary file is then uploaded to the Linux side of the Portenta X8. The flashing is done on the board itself by the RPC service running on Linux (see [Communication between Linux and Arduino section](#communication-between-linux-and-arduino) of this user manual to learn more).
976
+
977
+
When the sketch has been uploaded successfully, the onboard LED of your Portenta X8 will start blinking at an interval of one second.
978
+
979
+
You can also upload the firmware manually if you like. To do so, you first need to compile the sketch: select **Export compiled binary** from the Sketch menu in the Arduino IDE. It will compile the sketch and save the binary file in the sketch folder. Alternatively, you can use the [Arduino CLI](https://arduino.github.io/arduino-cli/0.29/) to create an `elf` file.
980
+
981
+
To upload the firmware you can use the ADB tool that has been installed as part of the Portenta X8 core. It can be found at `Arduino15\packages\arduino\tools\adb\32.0.0`.
982
+
983
+
From that directory, you can use the `adb` tool. To upload your compiled sketch, you just need to type the following command into your terminal window:
974
984
975
-
You have learned how to use your Portenta X8 with the Arduino IDE in the section [Portenta X8 with Arduino IDE](#portenta-x8-with-arduino-ide), but you can do much more with the Arduino environment, in particular leveraging the RPC communication between the Arduino layer and the Linux layer.

990
+
991
+
992
+
You have just learned how to use your Portenta X8 with the Arduino IDE, but you can do much more with the Arduino environment, in particular leveraging the RPC communication between the Arduino layer and the Linux layer.
976
993
977
994
You can have a look at this [GitHub repository](https://github.com/arduino/ArduinoCore-mbed/tree/master/libraries/RPC/examples) to have access to multiple IDE examples showing how to use RPC communication with Portenta X8.
978
995
@@ -1224,7 +1241,7 @@ Open Portenta X8 Shell as explained [here](#working-with-linux).
1224
1241
sudo modprobe spi-dev
1225
1242
```
1226
1243
1227
-
Insert the user password`fio`.
1244
+
Insert the user password.
1228
1245
1229
1246
An upcoming image release for the X8 will load the `spi-dev` modules automatically at boot. In the current version, please create a `/etc/modules-load.d/spi-dev.conf` file with the following content:
0 commit comments