v0.9.14: Boots into UI and then is frozen when SD card is inserted. #339

Open
opened 2026-10-27 15:50:11 +01:00 by adam · 2 comments
Owner

Describe the bug

I just installed version 0.9.14. It boots to the UI & emits the bootup-sound, it has remembered my theme setting (light theme), it has reset my identity (as I can see on the top left, I now see a hex string and not my username I have set), it has erased all contacts (it boots into the "Contacts" tab and shows "No contacts"), and then is completely frozen with display on, keyboard backlight on. No interaction possible.

This happens whenever the SD card is inserted during bootup.

When the SD card is removed, it does not happen.

I also did fully erase the device's flash (esptool -p /dev/ttyACM0 -v erase-flash) and then did flash the -merged firmware (esptool -p /dev/ttyACM0 write-flash 0x0 firmware_tdeckplus_v0.9.14-merged.bin) -- same result.
(Serial log file below is from a launch where still "Launcher" is installed.)

Which device are you using

LilyGO T-Deck Plus

Which Firmware are you using

v0.9.14

Additional context

Serial output -- started via "Launcher":


App menu item: label=meshc1 name=meshcoreterm
App menu item: label=ultrat name=Ultra-TDeck-SD-v12.0
App menu item: label=wadam1 name=wadam1
App menu item: label=meshco name=meshcoreterm.v0.9.14
SDCARD mounted successfully

NVS: Finding keys in NVS...

SSID: wlan051
SSID: wlan-051
Settings stored in NVS successfully

App menu item: label=meshc1 name=meshcoreterm
App menu item: label=ultrat name=Ultra-TDeck-SD-v12.0
App menu item: label=wadam1 name=wadam1
App menu item: label=meshco name=meshcoreterm.v0.9.14
ERR unknown command, type 'help' for command list

Press the button to enter the Launcher!

ERR unknown command, type 'help' for command list

Usage: settings <get|set <json>>

Press the button to enter the Launcher!

ERR unknown command, type 'help' for command list

Press the button to enter the Launcher!

ERR unknown command, type 'help' for command list

Press the button to enter the Launcher!

Press the button to enter the Launcher!

Press the button to enter the Launcher!

Press the button to enter the Launcher!

Press the button to enter the Launcher!

ERR unknown command, type 'help' for command list

Press the button to enter the Launcher!

Press the button to enter the Launcher!

Press the button to enter the Launcher!

App menu item: label=meshc1 name=meshcoreterm
App menu item: label=ultrat name=Ultra-TDeck-SD-v12.0
App menu item: label=wadam1 name=wadam1
App menu item: label=meshco name=meshcoreterm.v0.9.14
ESP-ROM:esp32s3-20210327

Build:Mar 27 2021

rst:0xc (RTC_SW_CPU_RST),boot:0x8 (SPI_FAST_FLASH_BOOT)

Saved PC:0x4038006a

SPIWP:0xee

mode:DIO, clock div:1

load:0x3fce2820,len:0x11e4

load:0x403c8700,len:0xc74

load:0x403cb700,len:0x3008

entry 0x403c88c0

[boot] Turned on because (1= POWERON_RESET or 5==ESP_RST_DEEPSLEEP) (Other= Probably forced by launcher)--> 12

[TDeckPlus] board.begin()

[TDeckPlus] PERIPH_PWR=10 USER_BTN=0
[TDeckPlus] I2C SDA=18 SCL=8
[TDeckPlus] GPS RX=43 TX=44
[TDeckPlus] LoRa NSS=9 DIO1=45 RST=17 BUSY=13
[BOOT] LittleFS begin ok=1 formatOnFail=1 total=2304KB used=52KB free=2252KB
[  2000][E][vfs_api.cpp:105] open(): /spiffs/prefs.json does not exist, no permits for creation

[  2339][E][vfs_api.cpp:105] open(): /spiffs/identity/_main.id does not exist, no permits for creation

[  2379][E][vfs_api.cpp:105] open(): /sd/MCTerm/primary_state_v2/prefs.json does not exist, no permits for creation

[IDCAT] removed empty legacy primary_state

[  3232][E][vfs_api.cpp:105] open(): /spiffs/mcterm_boot_src.bak does not exist, no permits for creation

[IDCAT] selected id_store=0 prefs_src=0
[  3478][E][vfs_api.cpp:105] open(): /spiffs/state_v2/contacts3 does not exist, no permits for creation

[  3490][E][vfs_api.cpp:105] open(): /spiffs/contacts3 does not exist, no permits for creation

[PROFILE] resolve done sd_primary=0 select_pending=0 catalog=2
E (2995) gpio: gpio_install_isr_service(450): GPIO isr service already installed

[  3673][E][vfs_api.cpp:105] open(): /spiffs/state_v2/contacts3 does not exist, no permits for creation

[  3685][E][vfs_api.cpp:105] open(): /spiffs/contacts3 does not exist, no permits for creation

[  3700][E][vfs_api.cpp:105] open(): /spiffs/state_v2/contacts3 does not exist, no permits for creation

[  3712][E][vfs_api.cpp:105] open(): /spiffs/contacts3 does not exist, no permits for creation

[  3727][E][vfs_api.cpp:105] open(): /spiffs/state_v2/contacts3 does not exist, no permits for creation

[CONTACT_LOAD] source=none total=0 primary=internal
[CONTACT_LOAD] empty-store warning action=manual-restore

[CHANNEL_LOAD] source=none total=0 primary=internal
[CHANNEL_LOAD] empty-store warning action=manual-restore

[  4023][E][vfs_api.cpp:182] remove(): /state_v2/channels2.tmp does not exists or is directory

[MESH_LOAD] contacts=0 channels=1 sd_primary=0 degraded=0 contacts_empty=1 action=manual-restore-if-unexpected
[SENSOR_DISCOVERY] Found ESP32
[SCOPE_LOAD] backend=NVS raw_count=15 loaded=15 has_chslots=1
[  5314][E][vfs_api.cpp:105] open(): /spiffs/clipboard.txt does not exist, no permits for creation

[  5325][E][vfs_api.cpp:105] open(): /spiffs/clipboard.txt.bak does not exist, no permits for creation

[  5362][E][vfs_api.cpp:105] open(): /spiffs/ui-advert-paths.bin does not exist, no permits for creation

[  5374][E][vfs_api.cpp:105] open(): /spiffs/ui-advert-paths.bin.bak does not exist, no permits for creation

[  5386][E][vfs_api.cpp:105] open(): /spiffs/ui-advert-paths.bin does not exist, no permits for creation

[  5639][E][vfs_api.cpp:105] open(): /spiffs/state_v2/ce does not exist, no permits for creation

[  5651][E][vfs_api.cpp:105] open(): /spiffs/ug/m does not exist, no permits for creation

[  5661][E][vfs_api.cpp:105] open(): /spiffs/ug/a does not exist, no permits for creation

[  5672][E][vfs_api.cpp:105] open(): /spiffs/ug/b does not exist, no permits for creation

[  7947][E][vfs_api.cpp:105] open(): /spiffs/tiles does not exist, no permits for creation

Maybe it is same as #334 (with v0.9.13)?

I did also reboot twice.

Regards!

**Describe the bug** I just installed version 0.9.14. It boots to the UI & emits the bootup-sound, it has remembered my theme setting (light theme), it has reset my identity (as I can see on the top left, I now see a hex string and not my username I have set), it has erased all contacts (it boots into the "Contacts" tab and shows "No contacts"), and then is completely frozen with display on, keyboard backlight on. No interaction possible. This happens whenever the SD card is inserted during bootup. When the SD card is removed, it does not happen. I also did fully erase the device's flash (`esptool -p /dev/ttyACM0 -v erase-flash`) and then did flash the [`-merged` firmware](https://github.com/dabeani/meshcoreterm/releases/download/v0.9.14/firmware_tdeckplus_v0.9.14-merged.bin) (`esptool -p /dev/ttyACM0 write-flash 0x0 firmware_tdeckplus_v0.9.14-merged.bin`) -- same result. *(Serial log file below is from a launch where still "Launcher" is installed.)* **Which device are you using** LilyGO T-Deck Plus **Which Firmware are you using** v0.9.14 **Additional context** Serial output -- started via "Launcher": ``` App menu item: label=meshc1 name=meshcoreterm App menu item: label=ultrat name=Ultra-TDeck-SD-v12.0 App menu item: label=wadam1 name=wadam1 App menu item: label=meshco name=meshcoreterm.v0.9.14 SDCARD mounted successfully NVS: Finding keys in NVS... SSID: wlan051 SSID: wlan-051 Settings stored in NVS successfully App menu item: label=meshc1 name=meshcoreterm App menu item: label=ultrat name=Ultra-TDeck-SD-v12.0 App menu item: label=wadam1 name=wadam1 App menu item: label=meshco name=meshcoreterm.v0.9.14 ERR unknown command, type 'help' for command list Press the button to enter the Launcher! ERR unknown command, type 'help' for command list Usage: settings <get|set <json>> Press the button to enter the Launcher! ERR unknown command, type 'help' for command list Press the button to enter the Launcher! ERR unknown command, type 'help' for command list Press the button to enter the Launcher! Press the button to enter the Launcher! Press the button to enter the Launcher! Press the button to enter the Launcher! Press the button to enter the Launcher! ERR unknown command, type 'help' for command list Press the button to enter the Launcher! Press the button to enter the Launcher! Press the button to enter the Launcher! App menu item: label=meshc1 name=meshcoreterm App menu item: label=ultrat name=Ultra-TDeck-SD-v12.0 App menu item: label=wadam1 name=wadam1 App menu item: label=meshco name=meshcoreterm.v0.9.14 ESP-ROM:esp32s3-20210327 Build:Mar 27 2021 rst:0xc (RTC_SW_CPU_RST),boot:0x8 (SPI_FAST_FLASH_BOOT) Saved PC:0x4038006a SPIWP:0xee mode:DIO, clock div:1 load:0x3fce2820,len:0x11e4 load:0x403c8700,len:0xc74 load:0x403cb700,len:0x3008 entry 0x403c88c0 [boot] Turned on because (1= POWERON_RESET or 5==ESP_RST_DEEPSLEEP) (Other= Probably forced by launcher)--> 12 [TDeckPlus] board.begin() [TDeckPlus] PERIPH_PWR=10 USER_BTN=0 [TDeckPlus] I2C SDA=18 SCL=8 [TDeckPlus] GPS RX=43 TX=44 [TDeckPlus] LoRa NSS=9 DIO1=45 RST=17 BUSY=13 [BOOT] LittleFS begin ok=1 formatOnFail=1 total=2304KB used=52KB free=2252KB [ 2000][E][vfs_api.cpp:105] open(): /spiffs/prefs.json does not exist, no permits for creation [ 2339][E][vfs_api.cpp:105] open(): /spiffs/identity/_main.id does not exist, no permits for creation [ 2379][E][vfs_api.cpp:105] open(): /sd/MCTerm/primary_state_v2/prefs.json does not exist, no permits for creation [IDCAT] removed empty legacy primary_state [ 3232][E][vfs_api.cpp:105] open(): /spiffs/mcterm_boot_src.bak does not exist, no permits for creation [IDCAT] selected id_store=0 prefs_src=0 [ 3478][E][vfs_api.cpp:105] open(): /spiffs/state_v2/contacts3 does not exist, no permits for creation [ 3490][E][vfs_api.cpp:105] open(): /spiffs/contacts3 does not exist, no permits for creation [PROFILE] resolve done sd_primary=0 select_pending=0 catalog=2 E (2995) gpio: gpio_install_isr_service(450): GPIO isr service already installed [ 3673][E][vfs_api.cpp:105] open(): /spiffs/state_v2/contacts3 does not exist, no permits for creation [ 3685][E][vfs_api.cpp:105] open(): /spiffs/contacts3 does not exist, no permits for creation [ 3700][E][vfs_api.cpp:105] open(): /spiffs/state_v2/contacts3 does not exist, no permits for creation [ 3712][E][vfs_api.cpp:105] open(): /spiffs/contacts3 does not exist, no permits for creation [ 3727][E][vfs_api.cpp:105] open(): /spiffs/state_v2/contacts3 does not exist, no permits for creation [CONTACT_LOAD] source=none total=0 primary=internal [CONTACT_LOAD] empty-store warning action=manual-restore [CHANNEL_LOAD] source=none total=0 primary=internal [CHANNEL_LOAD] empty-store warning action=manual-restore [ 4023][E][vfs_api.cpp:182] remove(): /state_v2/channels2.tmp does not exists or is directory [MESH_LOAD] contacts=0 channels=1 sd_primary=0 degraded=0 contacts_empty=1 action=manual-restore-if-unexpected [SENSOR_DISCOVERY] Found ESP32 [SCOPE_LOAD] backend=NVS raw_count=15 loaded=15 has_chslots=1 [ 5314][E][vfs_api.cpp:105] open(): /spiffs/clipboard.txt does not exist, no permits for creation [ 5325][E][vfs_api.cpp:105] open(): /spiffs/clipboard.txt.bak does not exist, no permits for creation [ 5362][E][vfs_api.cpp:105] open(): /spiffs/ui-advert-paths.bin does not exist, no permits for creation [ 5374][E][vfs_api.cpp:105] open(): /spiffs/ui-advert-paths.bin.bak does not exist, no permits for creation [ 5386][E][vfs_api.cpp:105] open(): /spiffs/ui-advert-paths.bin does not exist, no permits for creation [ 5639][E][vfs_api.cpp:105] open(): /spiffs/state_v2/ce does not exist, no permits for creation [ 5651][E][vfs_api.cpp:105] open(): /spiffs/ug/m does not exist, no permits for creation [ 5661][E][vfs_api.cpp:105] open(): /spiffs/ug/a does not exist, no permits for creation [ 5672][E][vfs_api.cpp:105] open(): /spiffs/ug/b does not exist, no permits for creation [ 7947][E][vfs_api.cpp:105] open(): /spiffs/tiles does not exist, no permits for creation ``` Maybe it is same as #334 (with v0.9.13)? I did also reboot twice. Regards! <!-- github-sync-id:5743257776 -->
Author
Owner

I did some further test with the firmware_tdeckplus_v0.9.14-merged.bin binary (no Launcher).

Used another SD card (larger size, partition starts at different offset, other fat32-filesystem-label).

  • Empty SD card: Boots and works.
  • Copying the content of the first SD card to this other SD card: Also works.

?!??

I did some further test with the `firmware_tdeckplus_v0.9.14-merged.bin` binary (no Launcher). Used another SD card (larger size, partition starts at different offset, other fat32-filesystem-label). * Empty SD card: Boots and works. * Copying the content of the first SD card to this other SD card: Also works. ?!?? <!-- github-comment-id:6045612621 -->
Author
Owner

Note that with version 0.9.12.3 it all worked also with the original SD card.

Note that with version 0.9.12.3 it all worked also with the original SD card. <!-- github-comment-id:6056027750 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/meshcore#339