bigtreetech / KNOMI

158 stars 73 forks source link

How do I Update Firmware? #41

Open BuschyX opened 7 months ago

BuschyX commented 7 months ago

There are no .bin files on the firmware page and Visual Studio doesn't show any files that it can open. I'm obviously missing something

mcbeenb commented 7 months ago

I was able to generate the firmware following these steps: 1) Download and install VS code 2) Install platformIO extension (View->Extensions) 3) Install git https://git-scm.com/downloads 4) Grab the project form github by either cloning or downloading 5) Inside the project, Open Knomi -> Knomi1 -> firmware -> platformio.ini 6) Click build in the menubar

The bin files will be saved into .\KNOMI\KNOMI1\Firmware.pio\build\esp32dev

BuschyX commented 7 months ago

I was able to generate the firmware following these steps:

  1. Download and install VS code
  2. Install platformIO extension (View->Extensions)
  3. Install git https://git-scm.com/downloads
  4. Grab the project form github by either cloning or downloading
  5. Inside the project, Open Knomi -> Knomi1 -> firmware -> platformio.ini
  6. Click build in the menubar

The bin files will be saved into .\KNOMI\KNOMI1\Firmware.pio\build\esp32dev

Thanks!

mcbeenb commented 7 months ago

To upload the firmware to a Knomi1, you must go into dfu mode to connect.

Make sure your environment is ready, and you are getting serial timeouts when trying to connect. The next step must be done quickly.

Choose upload in vscode hold down the reset button on knomi insert usbc cable release the reset button

This puts the device in DFU mode, like many other esp32 devices.

You should see the IDE begin to upload.

BuschyX commented 7 months ago

To upload the firmware to a Knomi1, you must go into dfu mode to connect.

Make sure your environment is ready, and you are getting serial timeouts when trying to connect. The next step must be done quickly.

Choose upload in vscode hold down the reset button on knomi insert usbc cable release the reset button

This puts the device in DFU mode, like many other esp32 devices.

You should see the IDE begin to upload.

I did the firmware upload via the web app and I did your way, neither threw any errors or confirmations really. Nothing to say it was already up to date. Just success. And from what I can see there is no way to check firmware on the device from the device. So I am just happy that I did not brick it in the process.

Thanks again, very helpful

mcbeenb commented 7 months ago

Couple more quick things for anyone else attempting to update firmware, or as in my case, flashing a KNOMI1 to KNOMI2 firmware.

Hiccup-kzh commented 7 months ago

Why do I encounter errors when I click on compile firmware MissingPackageManifestError: Could not find one of 'package.json' manifest files in the package ![Uploading 8ERKC`U$]JNH{FM_LTT[{{4.png…]()