mirror of
https://github.com/EyeTrackVR/EyeTrackVR-Docs.git
synced 2025-11-04 14:49:44 +08:00
Create Upload_Firmware.md
This commit is contained in:
parent
f40d696cf8
commit
6cb465d37d
74
docs/_pages/Upload_Firmware.md
Normal file
74
docs/_pages/Upload_Firmware.md
Normal file
@ -0,0 +1,74 @@
|
||||
---
|
||||
layout: page
|
||||
title: Building and uploading the firmware
|
||||
permalink: /building-and-flashing-firmware/
|
||||
nav_order: 2
|
||||
parent: Setting Up Firmware
|
||||
---
|
||||
|
||||
# Building and uploading the firmware
|
||||
|
||||
Uploading your firmware must initially be done over cable. Once you have the tracker connected to your WiFi after your first firmware update, you can opt to use OTA in the future.
|
||||
|
||||
## 1. Connect your tracker to your PC
|
||||
|
||||
If your microcontroller board has a button labeled `FLASH`, `BOOT` or `RESET`, press and hold the button and plug in the micro-USB cable. If you have different labels and/or buttons, please check your microcontroller's manual for more information.
|
||||
|
||||
Note that holding the button is not required for Wemos D1 Mini.
|
||||
|
||||
|
||||
## 2. Build your firmware
|
||||
|
||||
1. Follow the [configuring the firmware project page](configuring-project.md) to prepare your project for building and uploading the firmware.
|
||||
1. Press the build button at the bottom of Visual Studio Code.
|
||||
|
||||

|
||||
|
||||
## 3. Upload your firmware
|
||||
|
||||
* If you are using the OTA method, first make sure the tracker you wish to flash is turned on.
|
||||
|
||||
* Once the firmware has been built, press the upload button to upload the firmware.
|
||||
|
||||

|
||||
|
||||
* If the upload is successful, you should get an output that looks like this:
|
||||
|
||||

|
||||
|
||||
Congratulations! You have now successfully uploaded the firmware to your SlimeVR Tracker!
|
||||
|
||||
If you have trouble with uploading your firmware over cable check the following:
|
||||
1. Make sure your USB cable from the tracker is plugged firmly into your PC.
|
||||
1. Make sure that your USB cable is a data and charging cable (it is suggested you try other cables or devices with the cable).
|
||||
1. Make sure that your drivers are up to date.
|
||||
|
||||
Additionally, this can be caused by software hogging COM ports (**VSCode and Cura can be the cause of this**).
|
||||
|
||||
## Uploading via OTA
|
||||
|
||||
Once you have successfully connected your trackers to your WiFi, you can use OTA to handle all future firmware updates.
|
||||
|
||||
1. Retrieve the IP of the tracker you wish to flash. The IP can be found through network monitoring applications, or by veiwing tracker output in a serial monitor.
|
||||
1. In `platformio.ini` file uncomment the following lines in Visual Studio Code by removing the `;`:
|
||||
```ini
|
||||
;upload_protocol = espota
|
||||
;upload_port = 192.168.1.49
|
||||
;upload_flags =
|
||||
; --auth=SlimeVR-OTA
|
||||
```
|
||||
1. Change the value of upload_port to the IP address retrieved during the first step (if retrieved for your SlimeVR server you should only copy the set of 4 numbers between the second and third `/`, in the example image above this would be 192.168.1.109).
|
||||
1. Turn the tracker you wish to flash off and then on again.
|
||||
1. Wait around 5 seconds.
|
||||
1. Press the upload button to upload the firmware.<br>
|
||||

|
||||
1. Repeat for as many trackers as you need.
|
||||
|
||||
## Troubleshooting
|
||||
|
||||
If you encountered an issue while following these steps check the [FAQ.](https://redhawk989.github.io/EyeTrackVR/faq/)
|
||||
|
||||
If you don't find an answer to your question there ask in **#questions** channel in [the discord](https://discord.gg/kkXYbVykZX), we will be happy to help.
|
||||
|
||||
*Made with care by Prohurtz#0001, adigyran#1121, Eiren#0666 and CalliePepper#0666. Edited by CalliePepper#0666 and Emojikage#3095.*
|
||||
*Credit goes to the SlimeVR team [adapted from herre](https://docs.slimevr.dev/firmware/setup-and-install.html)*
|
||||
Loading…
Reference in New Issue
Block a user