Skip to content

Weak validation of stored configuration data #192

@vvuk

Description

@vvuk

Installing the "8048S043C alt mode" firmware to a JC8048W550C (5.5" 800x480 capacitative) seems to sort of work; Wifi selection comes up and I can interact with the console to set the ssid and printer. But upon reset the "Connecting to wifi" screen flickers and gets corrupted, and I see the device boot looping, both with precompiled firmware and locally compiled. Unsure if this is related to #183 -- I tried with both the 14.2 MHz and 14.0 MHz panel frequencies with identical results. I know this board is not exactly the same as the 8048S043C; maybe something in here is an obvious issue? The invalid instructions seem to point to some kind of corruption, or perhaps a power issue?

From my local compile:

ELF file SHA256: 7bdafd1fa33c07c1

Rebooting...
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0xc (RTC_SW_CPU_RST),boot:0x8 (SPI_FAST_FLASH_BOOT)
Saved PC:0x420d77ae
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce3808,len:0x44c
load:0x403c9700,len:0xbe4
load:0x403cc700,len:0x2a68
entry 0x403c98d4
CYD-Klipper v2.1.1
Type 'help' for serial console command list
> Guru Meditation Error: Core  1 panic'ed (InstrFetchProhibited). Exception was unhandled.

Core  1 register dump:
PC      : 0xad004136  PS      : 0x00060b30  A0      : 0x82005aae  A1      : 0x3fcebef0
A2      : 0xad004136  A3      : 0x3fc9c734  A4      : 0x3fc9c72c  A5      : 0x00000000  
A6      : 0x3fcbaf50  A7      : 0x00000001  A8      : 0x82005930  A9      : 0x3fcebed0
A10     : 0x3c0f07b8  A11     : 0x00000000  A12     : 0x00000000  A13     : 0x00000000  
A14     : 0x3fcf7e84  A15     : 0x00000001  SAR     : 0x00000016  EXCCAUSE: 0x00000014
EXCVADDR: 0xad004134  LBEG    : 0x42027c25  LEND    : 0x42027c48  LCOUNT  : 0x00000000  


Backtrace: 0x6d004133:0x3fcebef0 0x42005aab:0x3fcebf10 0x4200f3e5:0x3fcebf40 0x4204786a:0x3fcebf70

  #0  0x6d004133:0x3fcebef0 in ?? ??:0
  #1  0x42005aab:0x3fcebf10 in data_setup() at src/core/data_setup.cpp:118 (discriminator 3)
  #2  0x4200f3e5:0x3fcebf40 in setup() at src/main.cpp:25 (discriminator 3)
  #3  0x4204786a:0x3fcebf70 in loopTask(void*) at C:/Users/vladimir/.platformio/packages/framework-arduinoespressif32/cores/esp32/main.cpp:42




ELF file SHA256: 7bdafd1fa33c07c1

Rebooting...
�ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0xc (RTC_SW_CPU_RST),boot:0x8 (SPI_FAST_FLASH_BOOT)
Saved PC:0x420d77ae
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce3808,len:0x44c
load:0x403c9700,len:0xbe4
load:0x403cc700,len:0x2a68
entry 0x403c98d4
CYD-Klipper v2.1.1
Type 'help' for serial console command list
> Guru Meditation Error: Core  1 panic'ed (LoadProhibited). Exception was unhandled.

Core  1 register dump:
PC      : 0x42005929  PS      : 0x00060b30  A0      : 0x82005aae  A1      : 0x3fcebe60
A2      : 0x00000000  A3      : 0x3fc9c734  A4      : 0x3fc9c72c  A5      : 0x00000000  
A6      : 0x3fcbdd70  A7      : 0x00000000  A8      : 0x82005929  A9      : 0x3fcebe40
A10     : 0x00000000  A11     : 0x00000000  A12     : 0x00000000  A13     : 0x00000000  
A14     : 0x3fcbde74  A15     : 0x00000001  SAR     : 0x0000001e  EXCCAUSE: 0x0000001c
EXCVADDR: 0x00000000  LBEG    : 0x42027c25  LEND    : 0x42027c48  LCOUNT  : 0x00000000  


Backtrace: 0x42005926:0x3fcebe60 0x42005aab:0x3fcebe80 0x4200f3e5:0x3fcebeb0 0x4204786a:0x3fcebee0

  #0  0x42005926:0x3fcebe60 in fetch_printer_data() at src/core/data_setup.cpp:20
  #1  0x42005aab:0x3fcebe80 in data_setup() at src/core/data_setup.cpp:118 (discriminator 3)
  #2  0x4200f3e5:0x3fcebeb0 in setup() at src/main.cpp:25 (discriminator 3)
  #3  0x4204786a:0x3fcebee0 in loopTask(void*) at C:/Users/vladimir/.platformio/packages/framework-arduinoespressif32/cores/esp32/main.cpp:42




ELF file SHA256: 7bdafd1fa33c07c1

Rebooting...
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0xc (RTC_SW_CPU_RST),boot:0x8 (SPI_FAST_FLASH_BOOT)
Saved PC:0x40379dae
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce3808,len:0x44c
load:0x403c9700,len:0xbe4
load:0x403cc700,len:0x2a68
entry 0x403c98d4
CYD-Klipper v2.1.1
Type 'help' for serial console command list
> Guru Meditation Error: Core  1 panic'ed (IllegalInstruction). Exception was unhandled.
Memory dump at 0x42053098: 000000ff 2c00a136 00a0b24c
Core  1 register dump:
PC      : 0x4205309c  PS      : 0x00060034  A0      : 0x40379187  A1      : 0x3fcebe10  
A2      : 0x3fcebe30  A3      : 0x3fc9c798  A4      : 0x82005929  A5      : 0x4037913b
A6      : 0x303a3845  A7      : 0x00000000  A8      : 0x80377fe8  A9      : 0x3fcebdf0  
A10     : 0x3fcebe30  A11     : 0x00000000  A12     : 0x8200f138  A13     : 0x3fcebeb0
A14     : 0x303a3845  A15     : 0x3fcbaf3c  SAR     : 0x00000019  EXCCAUSE: 0x00000000  
EXCVADDR: 0x00000008  LBEG    : 0x42027c25  LEND    : 0x42027c48  LCOUNT  : 0x00000000


Backtrace: 0x42053099:0x3fcebe10 0x40379184:0x3fcebe30 0x42005928:0x3fcebef0 0x42005aab:0x3fcebf10 0x4200f3e5:0x3fcebf40 0x4204786a:0x3fcebf70

  #0  0x42053099:0x3fcebe10 in start_cpu0_default at startup.c:?
  #1  0x40379184:0x3fcebe30 in _xt_user_exc at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/freertos/port/xtensa/xtensa_vectors.S:703
  #2  0x42005928:0x3fcebef0 in fetch_printer_data() at src/core/data_setup.cpp:20
  #3  0x42005aab:0x3fcebf10 in data_setup() at src/core/data_setup.cpp:118 (discriminator 3)
  #4  0x4200f3e5:0x3fcebf40 in setup() at src/main.cpp:25 (discriminator 3)
  #5  0x4204786a:0x3fcebf70 in loopTask(void*) at C:/Users/vladimir/.platformio/packages/framework-arduinoespressif32/cores/esp32/main.cpp:42




ELF file SHA256: 7bdafd1fa33c07c1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions