hackerspace-silesia / Smogomierz

Smogly(formerly: Smogomierz) - simple and cheap PM 2.5 and PM10 sensor based on NodeMCU (ESP8266) or ESP32
Apache License 2.0
123 stars 38 forks source link

ESP32 flashed devices dont work #171

Open andygodber opened 1 year ago

andygodber commented 1 year ago

Apologies for writing in English. Im unable to use the ESP32 image on any devices. I have used the NodeMCU-pyFlasher and a selection of different ESP32 .bin files (inc pre-release 2.8.3). The files appear to be written by the flash tool, as the % indicator increases and says completed successfully; the tool reports the connected ESP as ESP32-D0WDQ6-V3. If I look at the serial output in Arduino IDE, it seems to be in a boot-loop:

invalid header: 0x55544954 inva�ets Jul 29 2019 12:21:46

rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) invalid header: 0x55544954 invalid header: 0x55544954 invalid header: 0x55544954 invalid header: 0x55544954 invalid header: 0x55544954 invalid header: 0x55544954 invalid header: 0x55544954 invaets Jul 29 2019 12:21:46

(I have successfully flashed and used the 8266 version.)

bfaliszek commented 1 year ago

Which firmware version did you try to flash on the ESP32? Try prerelease 2.8.3 from dev branch - https://github.com/hackerspace-silesia/Smogomierz/tree/dev/firmware/ESP32

In one of the older versions I tried to turn off one of the ESP32 cores (I had ESP32-SOLO-1 - ESP32 not officially not supported in ArduinoIDE; the only one ESP32 which has 1 core) and this probably causes problems.

andygodber commented 1 year ago

Confirmed that I tied with the pre-release.

image

Im also having trouble trying to compile from the code (missing some libraries - I added BME280 from Ada (as well as BMP) but still showing an error with bmeStatus as not being defined).

lipszczak commented 1 year ago

Try to flash .bin with ESPHomeflasher. I had the same issue with NodeMCU flasher.