chris-bc / esp32-gravity

An evolving collection of wireless exploration tools for the ESP32. Be the unseen force. Initially 802.11 the goal is to include Bluetooth, BLE and ZigBee/Thread. Check out the companion app Flipper-Gravity
https://github.com/chris-bc/Flipper-Gravity
57 stars 2 forks source link

Bootloader not working on ESP32S2 #56

Open os196 opened 4 months ago

os196 commented 4 months ago

I flashed the firmware onto my ESP 32s2. I am using the official Wi-Fi development board for the flipper zero. But whenever I open the gravity app on the flipper it gives me a invalid bootloader error . Is there any way to fix this?

RoemIko commented 4 months ago

You need to build the firmware yourself if you want to use the WiFi devoard. Pull the repo, delete the .vscode and .devcontainer dirs.

  1. Install esp-idf https://docs.espressif.com/projects/esp-idf/en/latest/esp32/get-started/index.html#installation
  2. go to the directory of the repo and run . $HOME/esp/esp-idf/export.sh
  3. idf.py set-target esp32s2
  4. run idf.py menuconfig and select the following Components -> FreeRTOS -> Port: Place FreeRTOS functions into Flash (enable) Components -> ESP Ringbuf: Place non-ISR ringbuf functions into Flash (enable) Components -> ESP Ringbuf: Place ISR ringbuf functions into Flash (enable) Gravity Configuration -> Flipper
  5. idf.py build flash Since the devboard does not support bluetooth the precompiled binaries will break and never run. Hope this helps :)
os196 commented 4 months ago

It worked perfectly until I tried to flash it. Then it gives me a broken pipe message. Is this normal?

RoemIko commented 4 months ago

If the companion app works then yes its normal

os196 commented 4 months ago

It does not work like normal I don't think it was successful at flashing the Wi-Fi development board do you know why the broken pipe error could have been thrown?

RoemIko commented 4 months ago

No i do not know, if you did the steps i described above it should work. The only error i get is that i cannot use the terminal and that it says i have to use putty to perform commands (because of auto commands). But since im using the F0 companion app i ignored that error.