Skip to content

Commit dfe609a

Browse files
committed
Ad How it works section and small content fixes
1 parent e70fe3c commit dfe609a

File tree

1 file changed

+10
-3
lines changed
  • content/hardware/04.pro/boards/portenta-x8/tutorials/uploading-sketches-m4

1 file changed

+10
-3
lines changed

content/hardware/04.pro/boards/portenta-x8/tutorials/uploading-sketches-m4/content.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@ description: 'This tutorial will show how to upload Arduino sketches on the M4 p
44
difficulty: medium
55
beta: true
66
tags:
7-
- Bootloader
87
- Firmware
9-
- Core
8+
- M4
109
author: 'Pablo Marquínez'
1110
hardware:
1211
- hardware/04.pro/boards/portenta-x8
@@ -17,7 +16,7 @@ software:
1716
---
1817

1918
## Overview
20-
This tutorial will explain how to upload a standard Arduino sketch to your portenta X8's M4.
19+
This tutorial will explain how to upload a standard Arduino sketch to your Portenta X8's M4.
2120

2221
## Goals
2322
- Use the Arduino IDE to compile and upload.
@@ -67,6 +66,14 @@ adb push <sketchBinaryPath> /tmp/arduino/m4-user-sketch.elf
6766

6867
![ADB upload with a terminal](assets/x8-terminal-ADB-push.png)
6968

69+
## How it works?
70+
The Portenta X8 has some services that once the sketch has been pushed to the required folder, if it detects changes the device will flash the M4 after that happened!
71+
72+
This work thanks to the following services:
73+
* monitor-m4-elf-file.service: this service monitors the directory `/tmp/arduino/m4-user-sketch.elf` each time it detects a new file it will proceed to flash the M4 using the tool `openOCD` and providing the sketch that has been pushed.
74+
* android-tools-adbd.service: responsible of generating the needed interfaces for the different types of usb gadgets.
75+
* create-docker-envfile.service: Controls if the device has been plugged for example in some carrier and makes the info available at `/var/run/arduino_hw_info.env` and is meant to be used by the ´docker containers´.
76+
7077
## Conclusion
7178
You now have access to the M4 processor, so for example you are able to connect an I<sup>2</sup>C sensor and interact with it and the Arduino X8 Linux side.
7279

0 commit comments

Comments
 (0)