ducalex / retro-go

Retro emulation for the ODROID-GO and other ESP32 devices
GNU General Public License v2.0
489 stars 114 forks source link

panic with some roms #111

Closed dilixi closed 1 month ago

dilixi commented 1 month ago

Describe the bug

I compile the firmware with esp32s3 and it can work well with some roms.In some case ,i just get the system panic message from the lcd.

To Reproduce

I placed this rom at sdcard,just open it,the panic will display soon. nes_roms.zip

ESP-ROM:esp32s3-20210327 Build:Mar 27 2021 rst:0x3 (RTC_SW_SYS_RST),boot:0x8 (SPI_FAST_FLASH_BOOT) Saved PC:0x403795b2 0x403795b2: xt_highint4 at D:\Espressif\frameworks\esp-idf-v5.1.2\components\esp_system\port\soc\esp32s3\highint_hdl.S:77 SPIWP:0xee mode:DOUT, clock div:1 load:0x3fce3818,len:0x1534 load:0x403c9700,len:0x4 load:0x403c9704,len:0xd88 load:0x403cc700,len:0x2ff4 entry 0x403c9924 I (31) boot: ESP-IDF v5.1.2-dirty 2nd stage bootloader I (31) boot: compile time May 16 2024 22:20:39 I (31) boot: Multicore bootloader I (35) boot: chip revision: v0.2 I (39) qio_mode: Enabling default flash chip QIO I (44) boot.esp32s3: Boot SPI Speed : 80MHz I (49) boot.esp32s3: SPI Mode : QIO I (54) boot.esp32s3: SPI Flash Size : 16MB I (58) boot: Enabling RNG early entropy source... I (64) boot: Partition Table: I (67) boot: ## Label Usage Type ST Offset Length I (75) boot: 0 nvs WiFi data 01 02 00009000 00004000 I (82) boot: 1 otadata OTA data 01 00 0000d000 00002000 I (90) boot: 2 phy_init RF data 01 01 0000f000 00001000 I (97) boot: 3 launcher OTA app 00 10 00010000 00100000 I (104) boot: 4 retro-core OTA app 00 11 00110000 000c0000 I (112) boot: End of partition table I (116) esp_image: segment 0: paddr=00010020 vaddr=3c0b0020 size=38e18h (232984) map I (149) esp_image: segment 1: paddr=00048e40 vaddr=3fc9d600 size=0481ch ( 18460) load I (151) esp_image: segment 2: paddr=0004d664 vaddr=40378000 size=029b4h ( 10676) load I (156) esp_image: segment 3: paddr=00050020 vaddr=42000020 size=a8484h (689284) map I (234) esp_image: segment 4: paddr=000f84ac vaddr=4037a9b4 size=12bb8h ( 76728) load I (254) boot: Loaded app from partition at offset 0x10000 I (254) boot: Disabling RNG early entropy source... I (265) cpu_start: Multicore app I (266) flash HPM: Enabling flash high speed mode by dummy I (266) MSPI Timing: Flash timing tuning index: 2 I (270) octal_psram: vendor id : 0x0d (AP) I (275) octal_psram: dev id : 0x02 (generation 3) I (281) octal_psram: density : 0x03 (64 Mbit) I (286) octal_psram: good-die : 0x01 (Pass) I (291) octal_psram: Latency : 0x01 (Fixed) I (297) octal_psram: VCC : 0x01 (3V) I (302) octal_psram: SRF : 0x01 (Fast Refresh) I (307) octal_psram: BurstType : 0x01 (Hybrid Wrap) I (313) octal_psram: BurstLen : 0x01 (32 Byte) I (319) octal_psram: Readlatency : 0x02 (10 cycles@Fixed) I (325) octal_psram: DriveStrength: 0x00 (1/1) I (338) MSPI Timing: PSRAM timing tuning index: 2 I (338) esp_psram: Found 8MB PSRAM device I (340) esp_psram: Speed: 120MHz I (344) cpu_start: Pro cpu up. I (348) cpu_start: Starting app cpu, entry point is 0x4037913c 0x4037913c: call_start_cpu1 at D:\Espressif\frameworks\esp-idf-v5.1.2\components\esp_system\port\cpu_start.c:184 (discriminator 3) I (0) cpu_start: App cpu up. I (577) esp_psram: SPI SRAM memory test OK I (587) cpu_start: Pro cpu start user code I (587) cpu_start: cpu freq: 240000000 Hz I (587) cpu_start: Application information: I (590) cpu_start: Project name: launcher I (595) cpu_start: App version: 1 I (599) cpu_start: Compile time: May 16 2024 22:14:05 I (605) cpu_start: ELF file SHA256: f36e75a7f03a8e80... I (611) cpu_start: ESP-IDF: v5.1.2-dirty I (617) cpu_start: Min chip rev: v0.0 I (621) cpu_start: Max chip rev: v0.99  I (626) cpu_start: Chip rev: v0.2 I (631) heap_init: Initializing. RAM available for dynamic allocation: I (638) heap_init: At 3FCA7428 len 000422E8 (264 KiB): DRAM I (644) heap_init: At 3FCE9710 len 00005724 (21 KiB): STACK/DRAM I (651) heap_init: At 600FE010 len 00001FD8 (7 KiB): RTCRAM I (657) esp_psram: Adding pool of 8192K of PSRAM memory to heap allocator I (665) spi_flash: detected chip: gd I (669) spi_flash: flash io: qio W (673) i2s(legacy): legacy i2s driver is deprecated, please migrate to use driver/i2s_std.h, driver/i2s_pdm.h or driver/i2s_tdm.h W (685) ADC: legacy driver is deprecated, please migrate to esp_adc/adc_oneshot.h I (694) sleep: Configure to isolate all GPIO pins in sleep state I (700) sleep: Enable automatic switching of GPIO sleep configuration I (708) app_start: Starting scheduler on CPU0 I (713) app_start: Starting scheduler on CPU1 I (713) main_task: Started on CPU0 I (723) esp_psram: Reserving pool of 32K of internal memory for DMA/internal allocations I (733) main_task: Calling app_main()

======================================================== launcher 1 (May 16 2024 22:14:05) built for: ESPLAY-S3. type: dev

I (753) gpio: GPIO[17]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0  I (763) gpio: GPIO[16]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0  I (773) gpio: GPIO[18]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0  [info] rg_storage_init: Storage mounted at /sd. driver=2 [info] rg_input_init: Initializing GPIO gamepad driver... [info] rg_input_init: Initializing I2C gamepad driver... [info] rg_i2c_init: I2C driver ready (SDA:39 SCL:38). [info] rg_input_init: Initializing ADC1 battery driver... [info] rg_input_init: Input ready. state=00000000 00000000 [error] rg_system_init: Recoverying from panic! [info] rg_display_init: Initialization... [info] rg_alloc: SIZE=2560, CAPS=DMA|8BIT, PTR=0x3fcb6d88 [info] rg_alloc: SIZE=2560, CAPS=DMA|8BIT, PTR=0x3fcb778c [info] rg_alloc: SIZE=2560, CAPS=DMA|8BIT, PTR=0x3fcb8190 [info] rg_alloc: SIZE=2560, CAPS=DMA|8BIT, PTR=0x3fcb8b94 [info] rg_alloc: SIZE=2560, CAPS=DMA|8BIT, PTR=0x3fcb9598 [info] lcd_set_backlight: backlight set to 80% [info] rg_display_init: Display ready. [info] rg_alloc: SIZE=11520, CAPS=SPIRAM|8BIT, PTR=0x3c0f2580 [info] rg_gui_set_font: Font set to: points=12, scaling=1.00 [info] rg_gui_set_theme: Using built-in theme! [warn] rg_system_exit: Exiting application! [info] rg_system_switch_app: Switching to app launcher (-) I (58713) esp_image: segment 0: paddr=00010020 vaddr=3c0b0020 size=38e18h (232984) map I (58723) esp_image: segment 1: paddr=00048e40 vaddr=3fc9d600 size=0481ch ( 18460)  I (58723) esp_image: segment 2: paddr=0004d664 vaddr=40378000 size=029b4h ( 10676)  I (58733) esp_image: segment 3: paddr=00050020 vaddr=42000020 size=a8484h (689284) map I (58763) esp_image: segment 4: paddr=000f84ac vaddr=4037a9b4 size=12bb8h ( 76728)  [warn] rg_system_restart: Restarting system! [info] rg_system_save_time: System time saved to storage. [info] rg_storage_deinit: Storage unmounted. [info] rg_input_deinit: Input terminated. [info] rg_i2c_deinit: I2C driver terminated. I (58853) gpio: GPIO[46]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0  I (58863) gpio: GPIO[3]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0  I (58873) gpio: GPIO[10]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0  [info] rg_display_deinit: Display terminated. ESP-ROM:esp32s3-20210327 Build:Mar 27 2021 rst:0x3 (RTC_SW_SYS_RST),boot:0x8 (SPI_FAST_FLASH_BOOT) Saved PC:0x403795b2 0x403795b2: xt_highint4 at D:\Espressif\frameworks\esp-idf-v5.1.2\components\esp_system\port\soc\esp32s3\highint_hdl.S:77 SPIWP:0xee mode:DOUT, clock div:1 load:0x3fce3818,len:0x1534 load:0x403c9700,len:0x4 load:0x403c9704,len:0xd88 load:0x403cc700,len:0x2ff4 entry 0x403c9924 I (31) boot: ESP-IDF v5.1.2-dirty 2nd stage bootloader I (31) boot: compile time May 16 2024 22:20:39 I (31) boot: Multicore bootloader I (35) boot: chip revision: v0.2 I (39) qio_mode: Enabling default flash chip QIO I (44) boot.esp32s3: Boot SPI Speed : 80MHz I (49) boot.esp32s3: SPI Mode : QIO I (54) boot.esp32s3: SPI Flash Size : 16MB I (58) boot: Enabling RNG early entropy source... I (64) boot: Partition Table: I (67) boot: ## Label Usage Type ST Offset Length I (75) boot: 0 nvs WiFi data 01 02 00009000 00004000 I (82) boot: 1 otadata OTA data 01 00 0000d000 00002000 I (90) boot: 2 phy_init RF data 01 01 0000f000 00001000 I (97) boot: 3 launcher OTA app 00 10 00010000 00100000 I (104) boot: 4 retro-core OTA app 00 11 00110000 000c0000 I (112) boot: End of partition table I (116) esp_image: segment 0: paddr=00010020 vaddr=3c0b0020 size=38e18h (232984) map I (149) esp_image: segment 1: paddr=00048e40 vaddr=3fc9d600 size=0481ch ( 18460) load I (151) esp_image: segment 2: paddr=0004d664 vaddr=40378000 size=029b4h ( 10676) load I (156) esp_image: segment 3: paddr=00050020 vaddr=42000020 size=a8484h (689284) map I (234) esp_image: segment 4: paddr=000f84ac vaddr=4037a9b4 size=12bb8h ( 76728) load I (254) boot: Loaded app from partition at offset 0x10000 I (254) boot: Disabling RNG early entropy source... I (265) cpu_start: Multicore app I (266) flash HPM: Enabling flash high speed mode by dummy I (266) MSPI Timing: Flash timing tuning index: 2 I (270) octal_psram: vendor id : 0x0d (AP) I (275) octal_psram: dev id : 0x02 (generation 3) I (281) octal_psram: density : 0x03 (64 Mbit) I (286) octal_psram: good-die : 0x01 (Pass) I (291) octal_psram: Latency : 0x01 (Fixed) I (297) octal_psram: VCC : 0x01 (3V) I (302) octal_psram: SRF : 0x01 (Fast Refresh) I (307) octal_psram: BurstType : 0x01 (Hybrid Wrap) I (313) octal_psram: BurstLen : 0x01 (32 Byte) I (319) octal_psram: Readlatency : 0x02 (10 cycles@Fixed) I (325) octal_psram: DriveStrength: 0x00 (1/1) I (338) MSPI Timing: PSRAM timing tuning index: 2 I (338) esp_psram: Found 8MB PSRAM device I (340) esp_psram: Speed: 120MHz I (344) cpu_start: Pro cpu up. I (348) cpu_start: Starting app cpu, entry point is 0x4037913c 0x4037913c: call_start_cpu1 at D:\Espressif\frameworks\esp-idf-v5.1.2\components\esp_system\port\cpu_start.c:184 (discriminator 3) I (0) cpu_start: App cpu up. I (577) esp_psram: SPI SRAM memory test OK I (587) cpu_start: Pro cpu start user code I (587) cpu_start: cpu freq: 240000000 Hz I (587) cpu_start: Application information: I (590) cpu_start: Project name: launcher I (595) cpu_start: App version: 1 I (599) cpu_start: Compile time: May 16 2024 22:14:05 I (605) cpu_start: ELF file SHA256: f36e75a7f03a8e80... I (611) cpu_start: ESP-IDF: v5.1.2-dirty I (617) cpu_start: Min chip rev: v0.0 I (621) cpu_start: Max chip rev: v0.99  I (626) cpu_start: Chip rev: v0.2 I (631) heap_init: Initializing. RAM available for dynamic allocation: I (638) heap_init: At 3FCA7428 len 000422E8 (264 KiB): DRAM I (644) heap_init: At 3FCE9710 len 00005724 (21 KiB): STACK/DRAM I (651) heap_init: At 600FE010 len 00001FD8 (7 KiB): RTCRAM I (657) esp_psram: Adding pool of 8192K of PSRAM memory to heap allocator I (665) spi_flash: detected chip: gd I (669) spi_flash: flash io: qio W (673) i2s(legacy): legacy i2s driver is deprecated, please migrate to use driver/i2s_std.h, driver/i2s_pdm.h or driver/i2s_tdm.h W (685) ADC: legacy driver is deprecated, please migrate to esp_adc/adc_oneshot.h I (694) sleep: Configure to isolate all GPIO pins in sleep state I (700) sleep: Enable automatic switching of GPIO sleep configuration I (708) app_start: Starting scheduler on CPU0 I (713) app_start: Starting scheduler on CPU1 I (713) main_task: Started on CPU0 I (723) esp_psram: Reserving pool of 32K of internal memory for DMA/internal allocations I (733) main_task: Calling app_main()

======================================================== launcher 1 (May 16 2024 22:14:05) built for: ESPLAY-S3. type: dev

I (753) gpio: GPIO[17]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0  I (763) gpio: GPIO[16]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0  I (773) gpio: GPIO[18]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0  [info] rg_storage_init: Storage mounted at /sd. driver=2 [info] rg_input_init: Initializing GPIO gamepad driver... [info] rg_input_init: Initializing I2C gamepad driver... [info] rg_i2c_init: I2C driver ready (SDA:39 SCL:38). [info] rg_input_init: Initializing ADC1 battery driver... [info] rg_input_init: Input ready. state=00000000 00000000 [info] open_config_file: Opening /sd/retro-go/config/global.json for rb [info] open_config_file: Opening /sd/retro-go/config/boot.json for rb [info] rg_display_init: Initialization... [info] open_config_file: Opening /sd/retro-go/config/nes.json for rb [info] rg_alloc: SIZE=2560, CAPS=DMA|8BIT, PTR=0x3fcb7570 [info] rg_alloc: SIZE=2560, CAPS=DMA|8BIT, PTR=0x3fcb7f74 [info] rg_alloc: SIZE=2560, CAPS=DMA|8BIT, PTR=0x3fcb8978 [info] rg_alloc: SIZE=2560, CAPS=DMA|8BIT, PTR=0x3fcb937c [info] rg_alloc: SIZE=2560, CAPS=DMA|8BIT, PTR=0x3fcb9d80 [info] lcd_set_backlight: backlight set to 80% [info] rg_display_init: Display ready. [info] rg_alloc: SIZE=11520, CAPS=SPIRAM|8BIT, PTR=0x3c0f2580 [info] rg_gui_set_font: Font set to: points=12, scaling=1.00 [info] rg_gui_set_theme: Using built-in theme! I (1063) gpio: GPIO[40]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0  [info] rg_audio_init: Audio ready. sink='Ext DAC', samplerate=32000, volume=0 [info] rg_system_load_time: Time loaded from storage [info] rg_system_load_time: Time is now: Sat Apr 23 02:13:36 528805

[info] rg_system_init: Available memory: 222/322 + 8171/8189 [info] rg_system_init: Retro-Go ready.

[info] open_config_file: Opening /sd/retro-go/config/launcher.json for rb [info] rg_alloc: SIZE=32, CAPS=SPIRAM|8BIT, PTR=0x3c0f52d8 [info] rg_alloc: SIZE=153632, CAPS=SPIRAM|8BIT, PTR=0x3c0f52fc [info] gui_add_tab: Tab 'nes' added at index 0 [info] gui_add_tab: Tab 'snes' added at index 1 [info] gui_add_tab: Tab 'gbc' added at index 2 [info] application: Application 'Bootstrap' (bootstrap) not present, skipping [info] gui_add_tab: Tab 'favorite' added at index 3 [info] gui_add_tab: Tab 'recent' added at index 4 [info] gui_resize_list: Resized list 'recent' from 0 to 59 items (new capacity: 69) I (1163) pp: pp rom version: e7ae62f I (1163) net80211: net80211 rom version: e7ae62finfo wifi:wifi driver task: 3fcc3e20, prio:23, stack:6144, core=0 I (1173) wifi:wifi firmware version: 91b9630 I (1173) wifi:wifi certification version: v7.0 I (1183) wifi:config NVS flash: enabled I (1183) wifi:config nano formating: enabled I (1193) wifi:Init data frame dynamic rx buffer num: 32 I (1193) wifi:Init static rx mgmt buffer num: 5 I (1203) wifi:Init management short buffer num: 32 I (1203) wifi:Init static tx buffer num: 16 I (1203) wifi:Init tx cache buffer num: 32 I (1213) wifi:Init static tx FG buffer num: 2 I (1213) wifi:Init static rx buffer size: 1600 I (1223) wifi:Init static rx buffer num: 10 I (1223) wifi:Init dynamic rx buffer num: 32 I (1223) wifi_init: rx ba win: 6 I (1233) wifi_init: tcpip mbox: 32 I (1233) wifi_init: udp mbox: 6 I (1243) wifi_init: tcp mbox: 6 I (1243) wifi_init: tcp tx win: 5744 I (1243) wifi_init: tcp rx win: 5744 I (1253) wifi_init: tcp mss: 1440 I (1253) wifi_init: WiFi/LWIP prefer SPIRAM I (1263) wifi_init: WiFi IRAM OP enabled I (1263) wifi_init: WiFi RX IRAM OP enabled [info] open_config_file: Opening /sd/retro-go/config/wifi.json for rb [info] rg_network_wifi_load_config: Looking for 'ssid0' (slot 0) [info] rg_network_wifi_load_config: Looking for 'ssid' (slot -1) [info] application_init: Initializing application 'Nintendo Entertainment System' (retro-core) [info] gui_resize_list: Resized list 'nes' from 0 to 25 items (new capacity: 35) [debug] STACK:4988, HEAP:222+8171 (176+8064), BUSY:0%, FPS:0 (0+0+0), BATT:4852 [info] crc_cache_save: Saving cache [info] rg_system_switch_app: Switching to app retro-core (nes) I (3823) esp_image: segment 0: paddr=00110020 vaddr=3c080020 size=28188h (164232) map I (3833) esp_image: segment 1: paddr=001381b0 vaddr=3fca2700 size=02b14h ( 11028)  I (3833) esp_image: segment 2: paddr=0013accc vaddr=40378000 size=0534ch ( 21324)  I (3843) esp_image: segment 3: paddr=00140020 vaddr=42000020 size=77718h (489240) map I (3863) esp_image: segment 4: paddr=001b7740 vaddr=4037d34c size=152ach ( 86700)  [warn] rg_system_restart: Restarting system! I (3933) gpio: GPIO[15]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0  I (3933) gpio: GPIO[6]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0  I (3943) gpio: GPIO[7]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0  I (3953) gpio: GPIO[40]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0  [info] rg_audio_deinit: Audio terminated. sink='Ext DAC' [info] rg_system_save_time: System time saved to storage. [info] rg_storage_deinit: Storage unmounted. [info] rg_input_deinit: Input terminated. [info] rg_i2c_deinit: I2C driver terminated. I (3993) gpio: GPIO[46]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0  I (4003) gpio: GPIO[3]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0  I (4013) gpio: GPIO[10]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0  [info] rg_display_deinit: Display terminated. ESP-ROM:esp32s3-20210327 Build:Mar 27 2021 rst:0x3 (RTC_SW_SYS_RST),boot:0x8 (SPI_FAST_FLASH_BOOT) Saved PC:0x403795b2 0x403795b2: xt_highint4 at D:\Espressif\frameworks\esp-idf-v5.1.2\components\esp_system\port\soc\esp32s3\highint_hdl.S:77 SPIWP:0xee mode:DOUT, clock div:1 load:0x3fce3818,len:0x1534 load:0x403c9700,len:0x4 load:0x403c9704,len:0xd88 load:0x403cc700,len:0x2ff4 entry 0x403c9924 I (31) boot: ESP-IDF v5.1.2-dirty 2nd stage bootloader I (31) boot: compile time May 16 2024 22:20:39 I (31) boot: Multicore bootloader I (35) boot: chip revision: v0.2 I (39) qio_mode: Enabling default flash chip QIO I (44) boot.esp32s3: Boot SPI Speed : 80MHz I (49) boot.esp32s3: SPI Mode : QIO I (54) boot.esp32s3: SPI Flash Size : 16MB I (58) boot: Enabling RNG early entropy source... I (64) boot: Partition Table: I (67) boot: ## Label Usage Type ST Offset Length I (75) boot: 0 nvs WiFi data 01 02 00009000 00004000 I (82) boot: 1 otadata OTA data 01 00 0000d000 00002000 I (90) boot: 2 phy_init RF data 01 01 0000f000 00001000 I (97) boot: 3 launcher OTA app 00 10 00010000 00100000 I (104) boot: 4 retro-core OTA app 00 11 00110000 000c0000 I (112) boot: End of partition table I (116) esp_image: segment 0: paddr=00110020 vaddr=3c080020 size=28188h (164232) map I (142) esp_image: segment 1: paddr=001381b0 vaddr=3fca2700 size=02b14h ( 11028) load I (143) esp_image: segment 2: paddr=0013accc vaddr=40378000 size=0534ch ( 21324) load I (151) esp_image: segment 3: paddr=00140020 vaddr=42000020 size=77718h (489240) map I (206) esp_image: segment 4: paddr=001b7740 vaddr=4037d34c size=152ach ( 86700) load I (229) boot: Loaded app from partition at offset 0x110000 I (229) boot: Disabling RNG early entropy source... I (241) cpu_start: Multicore app I (241) flash HPM: Enabling flash high speed mode by dummy I (242) MSPI Timing: Flash timing tuning index: 2 I (245) octal_psram: ECC is enabled I (249) octal_psram: vendor id : 0x0d (AP) I (254) octal_psram: dev id : 0x02 (generation 3) I (260) octal_psram: density : 0x03 (64 Mbit) I (266) octal_psram: good-die : 0x01 (Pass) I (271) octal_psram: Latency : 0x01 (Fixed) I (276) octal_psram: VCC : 0x01 (3V) I (281) octal_psram: SRF : 0x01 (Fast Refresh) I (287) octal_psram: BurstType : 0x00 ( Wrap) I (292) octal_psram: BurstLen : 0x03 (1024 Byte) I (298) octal_psram: Readlatency : 0x02 (10 cycles@Fixed) I (304) octal_psram: DriveStrength: 0x00 (1/1) I (317) MSPI Timing: PSRAM timing tuning index: 2 I (317) esp_psram: Found 8MB PSRAM device I (320) esp_psram: Speed: 120MHz I (324) cpu_start: Pro cpu up. I (327) cpu_start: Starting app cpu, entry point is 0x403790e0 0x403790e0: call_start_cpu1 at D:\Espressif\frameworks\esp-idf-v5.1.2\components\esp_system\port\cpu_start.c:157 I (0) cpu_start: App cpu up. I (566) esp_psram: SPI SRAM memory test OK I (575) cpu_start: Pro cpu start user code I (575) cpu_start: cpu freq: 240000000 Hz I (575) cpu_start: Application information: I (578) cpu_start: Project name: retro-core I (583) cpu_start: App version: 1 I (588) cpu_start: Compile time: May 17 2024 21:36:43 I (594) cpu_start: ELF file SHA256: 9f329de26983a570... I (600) cpu_start: ESP-IDF: v5.1.2-dirty I (605) cpu_start: Min chip rev: v0.0 I (610) cpu_start: Max chip rev: v0.99  I (615) cpu_start: Chip rev: v0.2 I (619) heap_init: Initializing. RAM available for dynamic allocation: I (627) heap_init: At 3FCAA9C0 len 0003ED50 (251 KiB): DRAM I (633) heap_init: At 3FCE9710 len 00005724 (21 KiB): STACK/DRAM I (640) heap_init: At 600FE010 len 00001FD8 (7 KiB): RTCRAM I (646) esp_psram: Adding pool of 7680K of PSRAM memory to heap allocator I (654) spi_flash: detected chip: gd I (658) spi_flash: flash io: qio W (662) i2s(legacy): legacy i2s driver is deprecated, please migrate to use driver/i2s_std.h, driver/i2s_pdm.h or driver/i2s_tdm.h W (674) ADC: legacy driver is deprecated, please migrate to esp_adc/adc_oneshot.h I (682) sleep: Configure to isolate all GPIO pins in sleep state I (689) sleep: Enable automatic switching of GPIO sleep configuration I (696) app_start: Starting scheduler on CPU0 I (701) app_start: Starting scheduler on CPU1 I (701) main_task: Started on CPU0 I (711) esp_psram: Reserving pool of 32K of internal memory for DMA/internal allocations I (721) main_task: Calling app_main()

======================================================== retro-core 1 (May 17 2024 21:36:43) built for: ESPLAY-S3. type: dev

I (741) gpio: GPIO[17]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0  I (751) gpio: GPIO[16]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0  I (761) gpio: GPIO[18]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0  [info] rg_storage_init: Storage mounted at /sd. driver=2 [info] rg_input_init: Initializing GPIO gamepad driver... [info] rg_input_init: Initializing I2C gamepad driver... [info] rg_i2c_init: I2C driver ready (SDA:39 SCL:38). [info] rg_input_init: Initializing ADC1 battery driver... [info] rg_input_init: Input ready. state=00000000 00000000 [info] open_config_file: Opening /sd/retro-go/config/global.json for rb [info] open_config_file: Opening /sd/retro-go/config/boot.json for rb [info] rg_display_init: Initialization... [info] open_config_file: Opening /sd/retro-go/config/nes.json for rb [info] rg_alloc: SIZE=2560, CAPS=DMA|8BIT, PTR=0x3fcba7c8 [info] rg_alloc: SIZE=2560, CAPS=DMA|8BIT, PTR=0x3fcbb1cc [info] rg_alloc: SIZE=2560, CAPS=DMA|8BIT, PTR=0x3fcbbbd0 [info] rg_alloc: SIZE=2560, CAPS=DMA|8BIT, PTR=0x3fcbc5d4 [info] rg_alloc: SIZE=2560, CAPS=DMA|8BIT, PTR=0x3fcbcfd8 [info] lcd_set_backlight: backlight set to 80% [info] rg_display_init: Display ready. [info] rg_alloc: SIZE=11520, CAPS=SPIRAM|8BIT, PTR=0x3c0b2580 [info] rg_gui_set_font: Font set to: points=12, scaling=1.00 [info] rg_gui_set_theme: Using built-in theme! I (1051) gpio: GPIO[40]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0  [info] rg_audio_init: Audio ready. sink='Ext DAC', samplerate=16000, volume=0 [info] rg_system_load_time: Time loaded from storage [info] rg_system_load_time: Time is now: Sat Apr 23 02:13:38 528805

[info] rg_system_init: Available memory: 209/309 + 7659/7677 [info] rg_system_init: Retro-Go ready.

[info] app_main: configNs=nes [info] rg_alloc: SIZE=81184, CAPS=INTERNAL|8BIT, PTR=0x3fcc0924 [info] rg_alloc: SIZE=81184, CAPS=INTERNAL|8BIT, PTR=0x3fcd4648 [=] NES: System initialized! [=] ROM: Loading file '/sd/roms/nes/Chip 'n Dale Rescue Rangers 2 (U) [!].nes' [=] ROM: Found iNES file of size 262160. [=] ROM: CRC32: FC5783A7 [=] ROM: Game found in database. [=] ! ROM: prg_ram_banks mismatch! (DB: 0, ROM: 1) [=] ! ROM: chr_ram_banks mismatch! (DB: 0, ROM: 1) [=] ROM: Mapper: 1, PRG:128K, CHR:128K, Flags: H--- [=] MMC: Mapper MMC1 (iNES 001) [=] MMC: PRG-ROM: 16 banks [=] MMC: PRG-RAM: 1 banks [=] MMC: CHR-ROM: 16 banks [=] NES: System type: NES-NTSC (NTSC-U) [=] NES: System reset (hard) Guru Meditation Error: Core 0 panic'ed (LoadProhibited). Exception was unhandled.

Core 0 register dump: PC : 0x4201bdff PS : 0x00060030 A0 : 0x8201b2f6 A1 : 0x3fcaf0b0 0x4201bdff: ppu_renderoam at E:\retro-core\components\nofrendo\nes\ppu.c:543 inlined by 0x0: ppu_renderline at E:\retro-core\components\nofrendo\nes\ppu.c:685 A2 : 0x00000001 A3 : 0x00000008 A4 : 0x3fca7454 A5 : 0x00000008 A6 : 0x00000008 A7 : 0x3fca7354 A8 : 0x3fca7454 A9 : 0x00000008 A10 : 0x00000000 A11 : 0x00000100 A12 : 0x000000e0 A13 : 0x00000000 A14 : 0x00000000 A15 : 0x000000c0 SAR : 0x00000007 EXCCAUSE: 0x0000001c EXCVADDR: 0x00000008 LBEG : 0x42007e10 LEND : 0x42007e2d LCOUNT : 0x00000000 0x42007e10: build_palette at E:\retro-core\main\main_nes.c:65 (discriminator 3) 0x42007e2d: build_palette at E:\retro-core\main\main_nes.c:69

Backtrace: 0x4201bdfc:0x3fcaf0b0 0x4201b2f3:0x3fcaf120 0x420080ee:0x3fcaf140 0x42007350:0x3fcaf280 0x4207705c:0x3fcaf2a0 0x4201bdfc: ppu_renderoam at E:\retro-core\components\nofrendo\nes\ppu.c:543 inlined by 0x0: ppu_renderline at E:\retro-core\components\nofrendo\nes\ppu.c:685 0x4201b2f3: nes_emulate at E:\retro-core\components\nofrendo\nes\nes.c:43 0x420080ee: nes_main at E:\retro-core\main\main_nes.c:236 0x42007350: app_main at E:\retro-core\main\main.c:16 0x4207705c: main_task at D:\Espressif\frameworks\esp-idf-v5.1.2\components\freertos\app_startup.c:208 (discriminator 13)

ELF file SHA256: 9f329de26983a570

Rebooting...

image

what should i do with this panic?

ducalex commented 1 month ago

I've just pushed a fix to the dev branch for the crash (thanks for the log!).

Unfortunately Snow Brothers (USA) seems to be broken for unrelated reasons (I might look into that later).

dilixi commented 1 month ago

I've just pushed a fix to the dev branch for the crash (thanks for the log!).

Unfortunately Snow Brothers (USA) seems to be broken for unrelated reasons (I might look into that later).

You are so amazing, Chip 'n Dale Rescue Rangers 2 (USA) can work well now, it's doesn't a matter with Snow Brothers (USA),because i find a new rom can work well. screenshot