Update flashing_hid.md

This commit is contained in:
Maxim Devaev 2020-08-02 01:52:54 +03:00 committed by GitHub
parent 1c19530378
commit b57a1f14e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 2 deletions

View File

@ -1,5 +1,15 @@
# Flashing the Arduino HID # Flashing the Arduino HID
This operation can be done using your RPi. **Before starting, disconnect the RESET wire from the Arduino board, otherwise the firmware will not be uploaded.** Connect the Arduino and RPi with a suitable USB cable. Log in to the RPi and upload the firmware. Then connect the RESET wire, disconnect the USB cable, and reboot the RPi. This operation can be done using your RPi.
**Before starting, disconnect the RESET wire from the Arduino board, otherwise the firmware will not be uploaded.**
* Connect the Arduino and RPi with a suitable USB cable.
* Log in to the Raspberry Pi using SSH (`ssh root@<addr>` with password `root` by default).
* Upload the firmware.
* Connect the RESET wire, disconnect the USB cable, and reboot the RPi.
Here the commands to SSH and upload:
```shell ```shell
[user@localhost os]$ ssh root@<addr> [user@localhost os]$ ssh root@<addr>
[root@pikvm ~]# rw [root@pikvm ~]# rw
@ -11,7 +21,7 @@ This operation can be done using your RPi. **Before starting, disconnect the RES
[root@pikvm hid]# reboot [root@pikvm hid]# reboot
``` ```
On this you may encounter the following error: On `make install` you may encounter the following error:
``` ```
/root/.platformio/packages/tool-avrdude/avrdude: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory /root/.platformio/packages/tool-avrdude/avrdude: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
``` ```