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
In this example, the user **must** upload `<Arduino build output path>/run_arduino.sh`file manually. Uploading instruction is described later in the [Uploading](#Uploading) section.
31
+
`<Arduino build output path>/run_arduino_<sketch name>.sh`looks like this for *Blink* example:
32
32
33
-
After uploading the user can use `sh run_arduino.sh start` in the console of host Linux via either SSH or Serial Console, to run the Arduino firmware.
In this example, the user **must** upload `<Arduino build output path>/run_arduino_<sketch name>.sh` file manually. Uploading instruction is described later in the [Uploading](#Uploading) section.
42
+
43
+
After uploading the user can use `sh run_arduino_<sketch name>.sh start` in the console of host Linux via either SSH or Serial Console, to run the Arduino firmware.
34
44
35
45
#### Note
36
-
*`sh run_arduino.sh start` is a one-shot command, the Arduino firmware only runs for the current boot. If you want to make it run after reboot, you need to use `sh run_arduino.sh install` command.
46
+
*`sh run_arduino_<sketch name>.sh start` is a one-shot command, the Arduino firmware only runs for the current boot. If you want to make it run after reboot, you need to use `sh run_arduino_<sketch name>.sh install` command.
37
47
38
-
`run_arduino.sh` help page summary:
48
+
`run_arduino_<sketch name>.sh` help page summary:
39
49
40
-
Usage: sh run_arduino.sh [start|stop|restart|generate|install|uninstall]
50
+
Usage: sh run_arduino_<sketch name>.sh [start|stop|restart|generate|install|uninstall]
41
51
42
-
run_arduino.sh is a helper script that helps managing an Arduino binary
52
+
run_arduino_<sketch name>.sh is a helper script that helps managing an Arduino binary
43
53
file for the coprocessor using remoteproc framework.
44
54
45
-
sh run_arduino.sh start
55
+
sh run_arduino_<sketch name>.sh start
46
56
Upload the binary to the coprocessor then start it.
47
57
This command must be executed while the script contains the binary
48
58
after generate command is run.
49
59
50
-
sh run_arduino.sh install
60
+
sh run_arduino_<sketch name>.sh install
51
61
Run the binary on boot automatically by installing a systemd service.
52
62
53
-
sh run_arduino.sh uninstall
63
+
sh run_arduino_<sketch name>.sh uninstall
54
64
Uninstall the autostart service.
55
65
56
-
sh run_arduino.sh stop
66
+
sh run_arduino_<sketch name>.sh stop
57
67
Stop the coprocessor.
58
68
59
-
sh run_arduino.sh restart
69
+
sh run_arduino_<sketch name>.sh restart
60
70
Restart the coprocessor.
61
71
62
-
See the source code [run_arduino_gen.sh] for the full help page and the more details about the `run_arduino.sh` generated.
72
+
See the source code [run_arduino_gen.sh] for the full help page and the more details about the `run_arduino_<sketch name>.sh` generated.
63
73
64
-
[run_arduino_gen.sh] is the shell script that produces a copy of the script called `run_arduino.sh` but with the sketch binary self-contained.
74
+
[run_arduino_gen.sh] is the shell script that produces a copy of the script called `run_arduino_<sketch name>.sh` but with the sketch binary self-contained.
65
75
66
76
## Pin mapping
67
77
@@ -102,7 +112,7 @@ There are additional pins for LEDs and buttons.
102
112
103
113
## Uploading
104
114
105
-
As mentioned above `run_arduino.sh` file have to be uploaded manually from the PC to the board's Linux file system in order to be executed on the board directly through the board's Linux console. There are many ways to upload the file.
115
+
As mentioned above `run_arduino_<sketch name>.sh` file have to be uploaded manually from the PC to the board's Linux file system in order to be executed on the board directly through the board's Linux console. There are many ways to upload the file.
0 commit comments