moshe-braner / Open-Glider-Network-Groundstation

Open Glider Network Receiver based on TTGO T-Beam ESP32 hardware.
https://ros-it.ch/open-glider-network-base-station/
GNU General Public License v3.0
7 stars 4 forks source link

Master crashes #3

Closed schenlap closed 2 years ago

schenlap commented 2 years ago

Hi,

after fixing the build issues (#2) the software crashes

config.json not valid - version missing
Read configuration.
Hostname: OGNB-b20680
Wait for WiFi connection.
[D][WiFiGeneric.cpp:374] _eventCallback(): Event: 14 - AP_START
[D][WiFiGeneric.cpp:374] _eventCallback(): Event: 14 - AP_START
Setting soft-AP configuration ... Ready
Setting soft-AP ... Ready
IP address: 192.168.1.1
UDP server has started at port: 12389
SX1276 RFIC is detected.
[I][ArduinoOTA.cpp:141] begin(): OTA server at: OGNB-b20680.local:3232
[W][SPIFFS.cpp:71] begin(): SPIFFS Already Mounted!
Guru Meditation Error: Core  1 panic'ed (LoadProhibited). Exception was unhandled.
Core 1 register dump:
PC      : 0x40094694  PS      : 0x00060030  A0      : 0x80120710  A1      : 0x3ffb1930  
A2      : 0x00000001  A3      : 0xfffffffd  A4      : 0x000000ff  A5      : 0x0000ff00  
A6      : 0x00ff0000  A7      : 0xff000000  A8      : 0x00000000  A9      : 0x0000000a  
A10     : 0x3ffd90bf  A11     : 0x3ffb1b34  A12     : 0x3ffd90c9  A13     : 0x00000010  
A14     : 0x00000004  A15     : 0x3ffb1b24  SAR     : 0x00000004  EXCCAUSE: 0x0000001c  
EXCVADDR: 0x00000001  LBEG    : 0x400946b5  LEND    : 0x400946c5  LCOUNT  : 0xfffffffe  
hed during startup.

In #2 you mentetioned fixes for crashed. How did you fix this, please commit you fixes and local changes.

schenlap commented 2 years ago
Bootloop - erase flash with
esptool.py erase_flash

solved the problem

moshe-braner commented 2 years ago

Without more info on your configuration, and where in the boot process it crashed, I can't offer any insight. Glad erasing the flash helped. In my code there is a check for the version number of the config.json and index.html to try and prevent crashes with outdated versions: if wrong version, it skips reading those files and thus goes to the file-upload page. Best practice: first upload the new files, then update firmware, all in the same OTA session.