Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Constant reboots on M5Paper - Core 1 panic'ed (LoadProhibited). Exception was unhandled. #99

Open
dodancs opened this issue Nov 9, 2024 · 3 comments

Comments

@dodancs
Copy link

dodancs commented Nov 9, 2024

Hey,
I just built the code from source and flashed it. Next I got a 16GB and 64GB sdcards, formatted them to FAT32 and added epub files. When I booted the device, I get the constant Core 1 panic'ed (LoadProhibited). Exception was unhandled. errors.

ELF file SHA256: 2b0bbcd6a1a0f501

Rebooting...
I (452) psram: This chip is ESP32-D0WD
I (453) spiram: Found 64MBit SPI RAM device
I (453) spiram: SPI RAM mode: flash 80m sram 80m
I (455) spiram: PSRAM initialized, cache is in low/high (2-core) mode.
I (462) cpu_start: Pro cpu up.
I (466) cpu_start: Starting app cpu, entry point is 0x40082ca0
I (467) cpu_start: App cpu up.
I (488) cpu_start: Pro cpu start user code
I (488) cpu_start: cpu freq: 240000000
I (488) cpu_start: Application information:
I (493) cpu_start: Project name:     epub-reader
I (498) cpu_start: App version:      2c2f57f-dirty
I (503) cpu_start: Compile time:     Nov  9 2024 11:01:41
I (510) cpu_start: ELF file SHA256:  2b0bbcd6a1a0f501...
I (516) cpu_start: ESP-IDF:          4.3.0
I (521) heap_init: Initializing. RAM available for dynamic allocation:
I (528) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (534) heap_init: At 3FFB7CB0 len 00028350 (160 KiB): DRAM
I (540) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
I (546) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (553) heap_init: At 40093A90 len 0000C570 (49 KiB): IRAM
I (559) spiram: Adding pool of 4096K of external SPI memory to heap allocator
I (567) spi_flash: detected chip: generic
I (571) spi_flash: flash io: dio
I (581) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
I (586) spiram: Reserving pool of 32K of internal memory for DMA/internal allocations
I (596) main: epub list state num_epubs=0
I (596) main: epub list state is_loaded=0
I (606) main: epub list state selected_item=0
I (606) main: Memory before main task start 3104939
I (616) main: Powering up the board
I (616) main: Creating renderer
I (636) gpio: GPIO[15]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (636) gpio: GPIO[27]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (646) M5P: Init SUCCESS.
I (656) main: Starting file system
I (656) main: Using SDCard
I (656) SDC: Initializing SD card
E (656) spi: spi_bus_initialize(628): SPI bus already initialized.
W (666) SDC: HSPI already initialised
I (676) gpio: GPIO[4]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (686) sdspi_transaction: cmd=52, R1 response: command not supported
I (726) sdspi_transaction: cmd=5, R1 response: command not supported
Name: SD
Type: SDHC/SDXC
Speed: 20 MHz
Size: 15399MB
I (746) main: Starting battery monitor
I (746) main: Setting up controls
I (746) main: Controls configured
I (746) M5P: Full clear
I (2276) main: Creating epub list
E (3786) sdmmc_cmd: sdmmc_read_sectors_dma: sdmmc_send_cmd returned 0x107
E (3796) diskio_sdmmc: sdmmc_read_blocks failed (263)
I (3796) main: Epub files loaded
I (3796) PUBLIST: Current page is 0, previous page -1, redraw=1
I (452) psram: This chip is ESP32-D0WD
I (453) spiram: Found 64MBit SPI RAM device                                                                                                                                                                                  12:48:04 [47/10822]
I (453) spiram: SPI RAM mode: flash 80m sram 80m
I (455) spiram: PSRAM initialized, cache is in low/high (2-core) mode.
I (463) cpu_start: Pro cpu up.
I (466) cpu_start: Starting app cpu, entry point is 0x40082ca0
I (0) cpu_start: App cpu up.
I (488) cpu_start: Pro cpu start user code
I (488) cpu_start: cpu freq: 240000000
I (488) cpu_start: Application information:
I (493) cpu_start: Project name:     epub-reader
I (498) cpu_start: App version:      2c2f57f-dirty
I (503) cpu_start: Compile time:     Nov  9 2024 11:01:41
I (510) cpu_start: ELF file SHA256:  2b0bbcd6a1a0f501...
I (515) cpu_start: ESP-IDF:          4.3.0
I (520) heap_init: Initializing. RAM available for dynamic allocation:
I (528) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (534) heap_init: At 3FFB7CB0 len 00028350 (160 KiB): DRAM
I (540) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
I (546) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (553) heap_init: At 40093A90 len 0000C570 (49 KiB): IRAM
I (559) spiram: Adding pool of 4096K of external SPI memory to heap allocator
I (567) spi_flash: detected chip: generic
I (571) spi_flash: flash io: dio
I (581) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
I (586) spiram: Reserving pool of 32K of internal memory for DMA/internal allocations
I (596) main: epub list state num_epubs=0
I (596) main: epub list state is_loaded=0
I (606) main: epub list state selected_item=0
I (606) main: Memory before main task start 3104939
I (616) main: Powering up the board
I (616) main: Creating renderer
I (636) gpio: GPIO[15]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (636) gpio: GPIO[27]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (1666) M5P: Init SUCCESS.
I (1676) main: Starting file system
I (1676) main: Using SDCard
I (1676) SDC: Initializing SD card
E (1676) spi: spi_bus_initialize(628): SPI bus already initialized.
W (1686) SDC: HSPI already initialised
I (1696) gpio: GPIO[4]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (1746) sdspi_transaction: cmd=5, R1 response: command not supported
Name: SA64G
Type: SDHC/SDXC
Speed: 20 MHz
Size: 59112MB
I (2056) main: Starting battery monitor
I (2056) main: Setting up controls
I (2056) main: Controls configured
I (2066) M5P: Full clear
I (3596) main: Creating epub list
I (5176) EPUB: toc path: book.ncx

Guru Meditation Error: Core  1 panic'ed (LoadProhibited). Exception was unhandled.

Core  1 register dump:
PC      : 0x400d56ab  PS      : 0x00060d30  A0      : 0x800e9e95  A1      : 0x3ffcfb80
A2      : 0x00000000  A3      : 0x3f452d70  A4      : 0x3ffd65b8  A5      : 0x7fffffff
A6      : 0x00000000  A7      : 0x00000000  A8      : 0x800d5879  A9      : 0x3ffcfb60
A10     : 0x00000000  A11     : 0x3f452d70  A12     : 0x7ffffffe  A13     : 0x00000000
A14     : 0x00000000  A15     : 0x00000000  SAR     : 0x00000018  EXCCAUSE: 0x0000001c
EXCVADDR: 0x00000000  LBEG    : 0x40088568  LEND    : 0x40088584  LCOUNT  : 0x00000000

Backtrace:0x400d56a8:0x3ffcfb80 0x400e9e92:0x3ffcfba0 0x400eabf1:0x3ffcfe90 0x400e270f:0x3ffd00d0 0x400d3dbb:0x3ffd0140 0x400d4036:0x3ffd0160 0x400d41f6:0x3ffd0180 0x4008fae9:0x3ffd01e0
@dodancs
Copy link
Author

dodancs commented Nov 9, 2024

xtensa-esp32-elf/bin/xtensa-esp32-elf-addr2line -e ./.pio/build/m5_paper/firmware.elf "0x400d56a8:0x3ffcfb80 0x400e9e92:0x3ffcfba0 0x400eabf1:0x3ffcfe90 0x400e270f:0x3ffd00d0 0x400d3dbb:0x3ffd0140 0x400d4036:0x3ffd0160 0x400d41f6:0x3ffd0180 0x4008fae9:0x3ffd01e0"
/tmp/esp32-ereader/.pio/libdeps/m5_paper/tinyxml2/tinyxml2.cpp:1077

@dodancs
Copy link
Author

dodancs commented Nov 9, 2024

Seems like it is an issue with one of the epub files I have added. When only adding one, it works.

@dodancs
Copy link
Author

dodancs commented Nov 9, 2024

  1068 const XMLElement* XMLNode::PreviousSiblingElement( const char* name ) const
  1069 {
  1070     for( const XMLNode* node = _prev; node; node = node->_prev ) {
  1071         const XMLElement* element = node->ToElementWithName( name );
  1072         if ( element ) {
  1073             return element;
  1074         }
  1075     }
  1076     return 0;
  1077 }   // <--  breaks here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant