meshtastic / firmware

Meshtastic device firmware
https://meshtastic.org
GNU General Public License v3.0
3.07k stars 741 forks source link

Enhanced t-echo file system integrity check #3818

Closed lewisxhe closed 2 months ago

lewisxhe commented 2 months ago

The last fix submitted at https://github.com/meshtastic/firmware/pull/3775 can only solve the problem of some devices. Today I found that some devices trigger assertions the moment they open a file and cannot perform formatting operations. This PR will disable LFS assertions, allowing the application layer to perform formatting.

LOG


//\ E S H T /\ S T / C

DEBUG | ??:??:?? 0  meshtastic.txt (0 Bytes)
DEBUG | ??:??:?? 0  config.proto (85 Bytes)
DEBUG | ??:??:?? 0  module.proto (100 Bytes)
DEBUG | ??:??:?? 0  channels.proto (57 Bytes)
DEBUG | ??:??:?? 0  db.proto (7555 Bytes)
DEBUG | ??:??:?? 0  db.proto.tmp (0 Bytes)
DEBUG | ??:??:?? 0 Using analog input 4 for battery level
INFO  | ??:??:?? 0 Scanning for i2c devices...
DEBUG | ??:??:?? 0 Scanning for i2c devices on port 1
DEBUG | ??:??:?? 0 I2C device found at address 0x51
INFO  | ??:??:?? 0 PCF8563 RTC found
DEBUG | ??:??:?? 0 I2C device found at address 0x77
DEBUG | ??:??:?? 0 Wire.available() = 1
INFO  | ??:??:?? 0 BME-280 sensor found at address 0x77
INFO  | ??:??:?? 0 2 I2C devices found
DEBUG | ??:??:?? 0 acc_info = 0
DEBUG | ??:??:?? 0 found i2c sensor meshtastic_TelemetrySensorType_BME280
INFO  | ??:??:?? 0 Meshtastic hwvendor=7, swver=2.3.8.102a20d2
DEBUG | ??:??:?? 0 Reset reason: 0x0
DEBUG | ??:??:?? 0 Setting random seed 3596778225
INFO  | ??:??:?? 0 Initializing NodeDB
INFO  | ??:??:?? 0 Loading /prefs/db.proto
ERROR | ??:??:?? 0 assert failed C:\Users\Lewis\.platformio\packages\framework-arduinoadafruitnrf52\libraries\Adafruit_LittleFS\src\littlefs\lfs.c: 1144, lfs_ctz_find, test=head
meshtastic-bot commented 1 month ago

This pull request has been mentioned on Meshtastic. There might be relevant details there:

https://meshtastic.discourse.group/t/t-echo-instability-seems-resolved-with-firmware-2-3-10/13033/1