- Open this folder in Visual Studio Code.
- Create a file
env.h
in the root folder of the project and initialize it with the environment-specific information using this template:// Put your IP here and uncomment if you aren't on the special router //#define FIXED_SERVER_IP "10.0.0.1" // Comment this out if you have a working OTA router #define OTA_UPDATE_OPTIONAL // Uncomment this when you are testing your binary image in the emulator // #define WOKWI_COMPAT #ifdef WOKWI_COMPAT #define WIFI_SSID "Wokwi-GUEST" #define WIFI_PASSWORD "" #else #define WIFI_SSID "ChessBot" #define WIFI_PASSWORD "" #endif /* router-ssh-user=admin router-ssh-password= binary-location=build esp32-serial= do-build=false */
- Open the extensions tab on the left (4 squares).
- Install the ESP-IDF and Serial Monitor extensions.
- Choose "EXPRESS" installation after it finishes installing.
- Set "Select ESP-IDF version" to "v5.3 (release version)" and click "Install".
- Plug the target S2 Mini into your computer.
- Press the RST button on the S2 Mini while holding the 0 button. This puts the ESP32 into bootloader mode and allows it to be flashed manually.
- Run the command "ESP-IDF: Select port to use" and select the port with "usb" in it.
- Run the command "ESP-IDF: Select Flash Method" and select "UART".
- Run the command "ESP-IDF: Build, Flash, and start a monitor on your device".
- You should see an error about the flash failing. To verify it worked, enter the Terminal tab and it should say the flash reached 100%. If it didn't, you likely picked the wrong serial port or didn't enter the bootloader.
- Press the RST button on the S2 Mini to reboot into your new firmware.
- Open the "SERIAL MONITOR" tab in the terminal modal (should be to the right of "TERMINAL").
- Select the serial port for the S2 Mini and click "Start Monitoring".
-
Notifications
You must be signed in to change notification settings - Fork 0
Comet-Robotics/chessBot-hardware
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published