Skip to main content

Firmware Upload

116 words
Empire-Phoenix
Author
Empire-Phoenix
Table of Contents

Prebuild
#

  1. Download image from
  2. todo something espflash tool here

From source
#

Preconditions
#

  • rustup with current version
  • espup with current version
  • npm /npx
  • Connect the board via usb to the computer
  • Ensure the esp is running (eg not in deepsleep if prior version was installed)

Compiling and uploading
#

  1. Clone the gitea
  2. go to the rust/src_webroot
  3. npm -i
  4. cd ..
  5. cargo run

Depending on the setup of the cargo runner, either a OTA image is build or the firmware is directly flashed to the esp.

Note: If the bootloader is currently booting from ota_2, flashing ota_1 via usb will not make it switch. You might need to manually erase it in this case prior.