kike-canaries / canairio_firmware

CanAirIO is a citizen science initiative. We are developing a mobile application that is able to set a PM2.5 or CO2 sensors, and other related sensors, as a fixed station using WiFi or mobile station with an smartphone by using a Bluetooth connection.
https://canair.io
GNU General Public License v3.0
103 stars 23 forks source link

Flashing ESP32DEV after flashing with wrong board #115

Closed Geelhem closed 2 years ago

Geelhem commented 2 years ago

Steps to Reproduce

I flashed the device with the wrong board firmware TTGO_T7 instead of ESP32DevKit (via platform io on MAC) I have tried to reflash on top but it does not boot! Do I need to factory reset first if so how?

Logs

canairio_firmware % pio run -e ESP32DEVKIT --target upload

Processing ESP32DEVKIT (platform: espressif32; board: lolin32; framework: arduino)

Verbose mode can be enabled via -v, --verbose option CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/lolin32.html PLATFORM: Espressif 32 (3.3.1) > WEMOS LOLIN32 HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash DEBUG: Current (esp-prog) External (esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa) PACKAGES:

Leaving... Hard resetting via RTS pin... ========================================================================================== [SUCCESS] Took 26.98 seconds ==========================================================================================

Environment Status Duration


ESP32DEVKIT SUCCESS 00:00:26.981

hpsaturn commented 2 years ago

Maybe do you have the output log? or why you mentioned that doesn't boot?

Also try to upload it via binaries files, like this: https://canair.io/docs/firmware_upload.html#canairio-installer

hpsaturn commented 2 years ago

Maybe if you need clear complete settings on the ESP32 board, you can use esp_tool command for clear flash memory, or you can use the CanAirIO installer command like this:

./install.sh erase /dev/ttyUSBX