Hello,
at first, I was able to program T-Deck with no problems - there was the original demo firmware on it.
Then I made a simple change (which I should not be doing in the first place) on line 6392 in uLisp-tdeck-release5.
while ((millis() - start) < 5000) { if (Serial) break; }
// I changed to
while ((millis() - start) < 1000) { if (Serial) break; }
The fw did not start normally and t-deck kept restarting. I’m not sure if it was writing anything to serial this time. Then I tried to reflash it with the original firmware and the result seemed to be the same, but this time I was able to copy paste the feedback from serial monitor.
ESP Exception Decoder
Sketch: original-ulisp-tdeck-release5 FQBN: esp32:esp32:esp32s3
Rebooting...
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0xc (RTC_SW_CPU_RST),boot:0x8 (SPI_FAST_FLASH_BOOT)
Saved PC:0x4209f0da
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce3808,len:0x4bc
load:0x403c9700,len:0xbd8
load:0x403cc700,len:0x2a0c
entry 0x403c98d0
Guru Meditation Error: Core 1 panic'ed (StoreProhibited). Exception was unhandled.
Core 1 register dump:
PC : 0x42010f18 PS : 0x00060630 A0 : 0x8201119b A1 : 0x3fcebb90
A2 : 0x3fcc56e0 A3 : 0x00000000 A4 : 0x0000000c A5 : 0x0000000d
A6 : 0x000000ff A7 : 0x00000000 A8 : 0x00000010 A9 : 0x08000000
A10 : 0x3fcc57f0 A11 : 0x019bfcc0 A12 : 0x00000001 A13 : 0x00000004
A14 : 0x00000000 A15 : 0x00000001 SAR : 0x00000010 EXCCAUSE: 0x0000001d
EXCVADDR: 0x00000010 LBEG : 0x400570e8 LEND : 0x400570f3 LCOUNT : 0xffffffff
Backtrace: 0x42010f15:0x3fcebb90 0x42011198:0x3fcebbc0 0x420115b8:0x3fcebbf0 0x420076ec:0x3fcebc10 0x42007757:0x3fcebc30 0x4201a3e7:0x3fcebc50
PC: 0x42010f18: is in TFT_eSPI::writecommand(unsigned char) (c:\Users\pogur\OneDrive\Dokumenty\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp:81).
EXCVADDR: 0x00000010
Decoding stack results
0x42010f15: is in TFT_eSPI::writecommand(unsigned char) (c:\Users\pogur\OneDrive\Dokumenty\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp:81).
0x42011198: is in TFT_eSPI::init(unsigned char) (c:\Users\pogur\OneDrive\Dokumenty\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp:692).
0x420115b8: is in TFT_eSPI::begin(unsigned char) (c:\Users\pogur\OneDrive\Dokumenty\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp:603).
0x420076ec: initgfx() at C:\GitHub\upol-bc-thesis\fw\T-Deck\original-ulisp-tdeck-release5\original-ulisp-tdeck-release5.ino:6377
0x42007757: setup() at C:\GitHub\upol-bc-thesis\fw\T-Deck\original-ulisp-tdeck-release5\original-ulisp-tdeck-release5.ino:6397
0x4201a3e7: loopTask(void*) at C:\Users\pogur\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.15\cores\esp32\main.cpp:42
(I used this plugin to decode the core dump: https://github.com/dankeboy36/esp-exception-decoder )
My settings in Arduino IDE are according to the documentation on uLisp site. I made sure that I used the Lilygo TFT_eSPI library.
Basic “Hello world” program works fine.
I’m writing here because I’m not sure whether I inadvertently put it into some state of evil by changing the timeout. If anybody can confirm the error is more general I will ask in Espressif forum. I keep investigating in the meantime…
Thank you in advance for any clue.