retro-esp32 / RetroESP32

Retro ESP32 is a turbo charged Odroid Go Launcher, Emulator and ROM Manager
Creative Commons Attribution Share Alike 4.0 International
603 stars 93 forks source link

START + SELECT Hotkey Saves, but doesn't exit emulator #1

Closed 32teeth closed 5 years ago

32teeth commented 5 years ago

Is your feature request related to a problem? Please describe. START + SELECT now saves the ROM in emulator, but hangs on hourglass screen Required power up/down to get back to launcher

Describe the solution you'd like START + SELECT should save ROM and exit back to Menu

Describe alternatives you've considered N/A

Additional context N/A

pebri86 commented 5 years ago

Hi, currently i don't have hardware to test, but looking at the code it should be work as expected. When Start + Select button pressed shortly, it emulates the menu button and trigger do menu home behavior, and then it should exiting audio video task and create .sav state file -> set boot to menu (ota 0) -> reboot esp.

Is .sav file created successfully? if yes then esp doesn't restart for something reason. Could you post the serial logs?

32teeth commented 5 years ago

@pebri86 @gabozepocaio

First Boot

Select Game in NES Emulator Runs 'Blades Of Steel' in this example

Click to Expand

```shell MONITOR --- idf_monitor on /dev/cu.SLAB_USBtoUART 115200 --- --- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H --- ets Jun 8 2016 00:22:57 rst:0x1 (POWERON_RESET),boot:0x33 (SPI_FAST_FLASH_BOOT) configsip: 0, SPIWP:0xee clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 mode:DIO, clock div:1 load:0x3fff0018,len:4 load:0x3fff001c,len:5828 load:0x40078000,len:9020 load:0x40080000,len:6120 0x40080000: _iram_start at /Users/eugene/esp/esp-idf/components/freertos/xtensa_vectors.S:1685 entry 0x40080334 0x40080334: _KernelExceptionVector at ??:? I (28) boot: ESP-IDF v3.1-odroid-1-g08f2c8f26 2nd stage bootloader I (28) boot: compile time 21:04:48 I (36) boot: Enabling RNG early entropy source... I (36) boot: SPI Speed : 80MHz I (38) boot: SPI Mode : DIO I (42) boot: SPI Flash Size : 16MB I (47) boot: Partition Table: I (50) boot: ## Label Usage Type ST Offset Length I (57) boot: 0 nvs WiFi data 01 02 00009000 00004000 I (65) boot: 1 otadata OTA data 01 00 0000d000 00002000 I (72) boot: 2 phy_init RF data 01 01 0000f000 00001000 I (80) boot: 3 factory factory app 00 00 00010000 000f0000 I (87) boot: 4 storage Unknown data 01 82 00100000 00100000 I (95) boot: 5 app_0 OTA app 00 10 00200000 00100000 I (102) boot: 6 app_1 OTA app 00 11 00300000 00100000 I (110) boot: 7 app_2 OTA app 00 12 00400000 00100000 I (117) boot: 8 app_3 OTA app 00 13 00500000 00100000 I (125) boot: 9 data_0 unknown 40 00 00600000 00400000 I (133) boot: End of partition table I (137) boot: Defaulting to factory image I (141) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x2cd10 (183568) map I (204) esp_image: segment 1: paddr=0x0003cd38 vaddr=0x3ffb0000 size=0x0316c ( 12652) load I (208) esp_image: segment 2: paddr=0x0003feac vaddr=0x3ffb316c size=0x00000 ( 0) load I (211) esp_image: segment 3: paddr=0x0003feb4 vaddr=0x40080000 size=0x0015c ( 348) load 0x40080000: _iram_start at /Users/eugene/esp/esp-idf/components/freertos/xtensa_vectors.S:1685 I (220) esp_image: segment 4: paddr=0x00040018 vaddr=0x400d0018 size=0x29f64 (171876) map 0x400d0018: _flash_cache_start at ??:? I (278) esp_image: segment 5: paddr=0x00069f84 vaddr=0x4008015c size=0x002a4 ( 676) load 0x4008015c: _WindowUnderflow12 at /Users/eugene/esp/esp-idf/components/freertos/xtensa_vectors.S:1876 I (279) esp_image: segment 6: paddr=0x0006a230 vaddr=0x40080400 size=0x09a4c ( 39500) load I (299) esp_image: segment 7: paddr=0x00073c84 vaddr=0x400c0000 size=0x00000 ( 0) load I (299) esp_image: segment 8: paddr=0x00073c8c vaddr=0x50000000 size=0x00000 ( 0) load I (312) boot: Loaded app from partition at offset 0x10000 I (312) boot: Disabling RNG early entropy source... I (318) cpu_start: Pro cpu up. I (321) cpu_start: Starting app cpu, entry point is 0x40080fc8 0x40080fc8: Cache_Read_Enable at /Users/eugene/esp/esp-idf/components/esp32/include/rom/cache.h:181 (discriminator 1) (inlined by) call_start_cpu0 at /Users/eugene/esp/esp-idf/components/esp32/cpu_start.c:169 (discriminator 1) I (0) cpu_start: App cpu up. I (332) heap_init: Initializing. RAM available for dynamic allocation: I (338) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM I (345) heap_init: At 3FFC7E00 len 00018200 (96 KiB): DRAM I (351) heap_init: At 3FFE0440 len 00003BC0 (14 KiB): D/IRAM I (357) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM I (363) heap_init: At 40089E4C len 000161B4 (88 KiB): IRAM I (370) cpu_start: Pro cpu start user code I (163) cpu_start: Starting scheduler on PRO CPU. I (0) cpu_start: Starting scheduler on APP CPU. odroid start. odroid_input_gamepad_init done. app_main: Non deep sleep startup ili9341_init: line_buffer_put(0x3ffcd144) spi_task: Entered. ili9341_init: line_buffer_put(0x3ffcddc8) LCD: calling ili_init. LCD: calling backlight_init. LCD Initialized (40000000 Hz). ADC: Characterized using eFuse Vref odroid_sdcard_open() E (1024) spi_master: spi_bus_initialize(146): host already in use I (1024) gpio: GPIO[22]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 I (1104) I2S: DMA Malloc info, datalen=blocksize=2048, dma_buf_count=4 I (1104) I2S: PLL_D2: Req RATE: 16000, real rate: 1004.000, BITS: 16, CLKM: 83, BCK: 60, MCLK: 83.333, SCLK: 32128.000000, diva: 64, divb: 21 Task watchdog got triggered. The following tasks did not reset the watchdog in time: - IDLE (CPU 0) Tasks currently running: CPU 0: main CPU 1: IDLE I (8604) esp_image: segment 0: paddr=0x00300020 vaddr=0x3f400020 size=0x5b47c (373884) map I (8784) esp_image: segment 1: paddr=0x0035b4a4 vaddr=0x3ffb0000 size=0x03e88 ( 16008) I (8794) esp_image: segment 2: paddr=0x0035f334 vaddr=0x3ffb3e88 size=0x00000 ( 0) I (8794) esp_image: segment 3: paddr=0x0035f33c vaddr=0x40080000 size=0x00400 ( 1024) 0x40080000: _iram_start at /Users/eugene/esp/esp-idf/components/freertos/xtensa_vectors.S:1685 I (8804) esp_image: segment 4: paddr=0x0035f744 vaddr=0x40080400 size=0x008cc ( 2252) I (8814) esp_image: segment 5: paddr=0x00360018 vaddr=0x400d0018 size=0x39508 (234760) map 0x400d0018: _flash_cache_start at ??:? I (8934) esp_image: segment 6: paddr=0x00399528 vaddr=0x40080ccc size=0x097e4 ( 38884) I (8944) esp_image: segment 7: paddr=0x003a2d14 vaddr=0x400c0000 size=0x00064 ( 100) I (8954) esp_image: segment 8: paddr=0x003a2d80 vaddr=0x50000000 size=0x00000 ( 0) ets Jun 8 2016 00:22:57 rst:0xc (SW_CPU_RESET),boot:0x33 (SPI_FAST_FLASH_BOOT) configsip: 0, SPIWP:0xee clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 mode:DIO, clock div:1 load:0x3fff0018,len:4 load:0x3fff001c,len:5828 load:0x40078000,len:9020 load:0x40080000,len:6120 0x40080000: _iram_start at /Users/eugene/esp/esp-idf/components/freertos/xtensa_vectors.S:1685 entry 0x40080334 0x40080334: _KernelExceptionVector at ??:? I (29) boot: ESP-IDF v3.1-odroid-1-g08f2c8f26 2nd stage bootloader I (29) boot: compile time 21:04:48 I (37) boot: Enabling RNG early entropy source... I (37) boot: SPI Speed : 80MHz I (39) boot: SPI Mode : DIO I (43) boot: SPI Flash Size : 16MB I (47) boot: Partition Table: I (51) boot: ## Label Usage Type ST Offset Length I (58) boot: 0 nvs WiFi data 01 02 00009000 00004000 I (66) boot: 1 otadata OTA data 01 00 0000d000 00002000 I (73) boot: 2 phy_init RF data 01 01 0000f000 00001000 I (81) boot: 3 factory factory app 00 00 00010000 000f0000 I (88) boot: 4 storage Unknown data 01 82 00100000 00100000 I (96) boot: 5 app_0 OTA app 00 10 00200000 00100000 I (103) boot: 6 app_1 OTA app 00 11 00300000 00100000 I (111) boot: 7 app_2 OTA app 00 12 00400000 00100000 I (118) boot: 8 app_3 OTA app 00 13 00500000 00100000 I (126) boot: 9 data_0 unknown 40 00 00600000 00400000 I (133) boot: End of partition table I (138) esp_image: segment 0: paddr=0x00300020 vaddr=0x3f400020 size=0x5b47c (373884) map I (255) esp_image: segment 1: paddr=0x0035b4a4 vaddr=0x3ffb0000 size=0x03e88 ( 16008) load I (261) esp_image: segment 2: paddr=0x0035f334 vaddr=0x3ffb3e88 size=0x00000 ( 0) load I (262) esp_image: segment 3: paddr=0x0035f33c vaddr=0x40080000 size=0x00400 ( 1024) load 0x40080000: _iram_start at /Users/eugene/esp/esp-idf/components/freertos/xtensa_vectors.S:1685 I (271) esp_image: segment 4: paddr=0x0035f744 vaddr=0x40080400 size=0x008cc ( 2252) load I (281) esp_image: segment 5: paddr=0x00360018 vaddr=0x400d0018 size=0x39508 (234760) map 0x400d0018: _flash_cache_start at ??:? I (357) esp_image: segment 6: paddr=0x00399528 vaddr=0x40080ccc size=0x097e4 ( 38884) load I (371) esp_image: segment 7: paddr=0x003a2d14 vaddr=0x400c0000 size=0x00064 ( 100) load I (371) esp_image: segment 8: paddr=0x003a2d80 vaddr=0x50000000 size=0x00000 ( 0) load I (385) boot: Loaded app from partition at offset 0x300000 I (385) boot: Disabling RNG early entropy source... I (390) spiram: SPI RAM mode: flash 80m sram 80m I (395) spiram: PSRAM initialized, cache is in low/high (2-core) mode. I (402) cpu_start: Pro cpu up. I (406) cpu_start: Starting app cpu, entry point is 0x40081260 0x40081260: esp_dport_access_int_resume at /Users/eugene/esp/esp-idf/components/esp32/dport_access.c:213 I (398) cpu_start: App cpu up. I (416) heap_init: Initializing. RAM available for dynamic allocation: I (423) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM I (429) heap_init: At 3FFD6F80 len 00009080 (36 KiB): DRAM I (435) heap_init: At 3FFE0440 len 00003BC0 (14 KiB): D/IRAM I (442) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM I (448) heap_init: At 4008A4B0 len 00015B50 (86 KiB): IRAM I (454) cpu_start: Pro cpu start user code I (24) cpu_start: Starting scheduler on PRO CPU. I (0) cpu_start: Starting scheduler on APP CPU. nesemu (20190523-b9b623f43e). odroid_settings_RomFilePathGet: value='/sd/roms/nes/Blades of Steel (USA).nes' A HEAP:0x239a0 ili9341_init: line_buffer_put(0x3ffdc8fc) spi_task: Entered. ili9341_init: line_buffer_put(0x3ffdd580) LCD: calling ili_init. LCD: calling backlight_init. LCD Initialized (40000000 Hz). odroid_input_gamepad_init done. ADC: Characterized using eFuse Vref app_main: Unexpected deep sleep reset odroid_settings_RomFilePathGet: value='/sd/roms/nes/Blades of Steel (USA).nes' osd_getromdata: Reading from sdcard. E (929) spi_master: spi_bus_initialize(146): host already in use I (939) gpio: GPIO[22]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 app_main: fileSize=131088 E (1189) spi_master: spi_bus_free(256): not all CSses freed NoFrendo start! odroid_audio_init: sink=0, sample_rate=32000 I (1189) I2S: DMA Malloc info, datalen=blocksize=2048, dma_buf_count=6 I (1199) I2S: PLL_D2: Req RATE: 32000, real rate: 2032.000, BITS: 16, CLKM: 41, BCK: 60, MCLK: 41.667, SCLK: 65024.000000, diva: 64, divb: 42 vid_init done bmp_create: width=256, height=240, overdraw=8 Initialized. ROM@0x3f800000 rom_load: rominfo->filename='Blades of Steel (USA).nes' Head: 0x3f800000 (4e 45 53 1a) setting up mapper 2 map2_init. last_bank=7 bmp_create: width=256, height=224, overdraw=0 setting up mapper 2 map2_init. last_bank=7 setting up mapper 2 map2_init. last_bank=7 odroid_settings_RomFilePathGet: value='/sd/roms/nes/Blades of Steel (USA).nes' E (1379) spi_master: spi_bus_initialize(146): host already in use I (1379) gpio: GPIO[22]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 odroid_sdcard_create_savefile_path: savefile_path='/sd/odroid/data/nes/Blades of Steel (USA).nes.sav' state_load: fn='/sd/odroid/data/nes/Blades of Steel (USA).nes.sav' state_load: snssFile->headerBlock.numberOfBlocks=4 load_baseblock load_vramblock load_soundblock load_mapperblock State 0 restoredE (1489) spi_master: spi_bus_free(256): not all CSses freed HEAP:0x13010, FPS:63.955929, BATTERY:752 [-392] HEAP:0x13010, FPS:60.519375, BATTERY:761 [-391] HEAP:0x13010, FPS:59.553078, BATTERY:763 [-390] HEAP:0x13010, FPS:60.512981, BATTERY:763 [-390] HEAP:0x13010, FPS:59.553658, BATTERY:769 [-390] HEAP:0x13010, FPS:60.515842, BATTERY:761 [-391] HEAP:0x13010, FPS:59.552643, BATTERY:777 [-388] HEAP:0x13010, FPS:60.513000, BATTERY:727 [-396] Stopping video queue. Saving state. odroid_settings_RomFilePathGet: value='/sd/roms/nes/Blades of Steel (USA).nes' E (9499) spi_master: spi_bus_initialize(146): host already in use I (9499) gpio: GPIO[22]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 odroid_sdcard_create_savefile_path: savefile_path='/sd/odroid/data/nes/Blades of Steel (USA).nes.sav' state_save: fn='/sd/odroid/data/nes/Blades of Steel (USA).nes.sav' state_save: SNSS_OpenFile OK save_baseblock state_save: save_baseblock OK save_vramblock state_save: save_vramblock OK save_sramblock save_srambloc: false == written state_save: save_sramblock OK save_soundblock state_save: save_soundblock OK save_mapperblock state_save: save_mapperblock OK State 0 savedE (9639) spi_master: spi_bus_free(256): not all CSses freed Saving state OK. I (9639) esp_image: segment 0: paddr=0x00200020 vaddr=0x3f400020 size=0x2cd10 (183568) map I (9719) esp_image: segment 1: paddr=0x0022cd38 vaddr=0x3ffb0000 size=0x0316c ( 12652) I (9729) esp_image: segment 2: paddr=0x0022feac vaddr=0x3ffb316c size=0x00000 ( 0) I (9729) esp_image: segment 3: paddr=0x0022feb4 vaddr=0x40080000 size=0x0015c ( 348) 0x40080000: _iram_start at /Users/eugene/esp/esp-idf/components/freertos/xtensa_vectors.S:1685 I (9739) esp_image: segment 4: paddr=0x00230018 vaddr=0x400d0018 size=0x29f64 (171876) map 0x400d0018: _flash_cache_start at ??:? I (9809) esp_image: segment 5: paddr=0x00259f84 vaddr=0x4008015c size=0x002a4 ( 676) 0x4008015c: _WindowUnderflow12 at /Users/eugene/esp/esp-idf/components/freertos/xtensa_vectors.S:1876 I (9809) esp_image: segment 6: paddr=0x0025a230 vaddr=0x40080400 size=0x09a4c ( 39500) I (9829) esp_image: segment 7: paddr=0x00263c84 vaddr=0x400c0000 size=0x00000 ( 0) I (9839) esp_image: segment 8: paddr=0x00263c8c vaddr=0x50000000 size=0x00000 ( 0) ets Jun 8 2016 00:22:57 rst:0xc (SW_CPU_RESET),boot:0x33 (SPI_FAST_FLASH_BOOT) configsip: 0, SPIWP:0xee clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 mode:DIO, clock div:1 load:0x3fff0018,len:4 load:0x3fff001c,len:5828 load:0x40078000,len:9020 load:0x40080000,len:6120 0x40080000: _iram_start at /Users/eugene/esp/esp-idf/components/freertos/xtensa_vectors.S:1685 entry 0x40080334 0x40080334: _KernelExceptionVector at ??:? I (29) boot: ESP-IDF v3.1-odroid-1-g08f2c8f26 2nd stage bootloader I (29) boot: compile time 21:04:48 I (35) boot: Enabling RNG early entropy source... I (35) boot: SPI Speed : 80MHz I (39) boot: SPI Mode : DIO I (43) boot: SPI Flash Size : 16MB I (47) boot: Partition Table: I (51) boot: ## Label Usage Type ST Offset Length I (58) boot: 0 nvs WiFi data 01 02 00009000 00004000 I (66) boot: 1 otadata OTA data 01 00 0000d000 00002000 I (73) boot: 2 phy_init RF data 01 01 0000f000 00001000 I (81) boot: 3 factory factory app 00 00 00010000 000f0000 I (88) boot: 4 storage Unknown data 01 82 00100000 00100000 I (96) boot: 5 app_0 OTA app 00 10 00200000 00100000 I (103) boot: 6 app_1 OTA app 00 11 00300000 00100000 I (111) boot: 7 app_2 OTA app 00 12 00400000 00100000 I (118) boot: 8 app_3 OTA app 00 13 00500000 00100000 I (126) boot: 9 data_0 unknown 40 00 00600000 00400000 I (133) boot: End of partition table I (138) esp_image: segment 0: paddr=0x00200020 vaddr=0x3f400020 size=0x2cd10 (183568) map I (200) esp_image: segment 1: paddr=0x0022cd38 vaddr=0x3ffb0000 size=0x0316c ( 12652) load I (204) esp_image: segment 2: paddr=0x0022feac vaddr=0x3ffb316c size=0x00000 ( 0) load I (207) esp_image: segment 3: paddr=0x0022feb4 vaddr=0x40080000 size=0x0015c ( 348) load 0x40080000: _iram_start at /Users/eugene/esp/esp-idf/components/freertos/xtensa_vectors.S:1685 I (216) esp_image: segment 4: paddr=0x00230018 vaddr=0x400d0018 size=0x29f64 (171876) map 0x400d0018: _flash_cache_start at ??:? I (274) esp_image: segment 5: paddr=0x00259f84 vaddr=0x4008015c size=0x002a4 ( 676) load 0x4008015c: _WindowUnderflow12 at /Users/eugene/esp/esp-idf/components/freertos/xtensa_vectors.S:1876 I (275) esp_image: segment 6: paddr=0x0025a230 vaddr=0x40080400 size=0x09a4c ( 39500) load I (295) esp_image: segment 7: paddr=0x00263c84 vaddr=0x400c0000 size=0x00000 ( 0) load I (296) esp_image: segment 8: paddr=0x00263c8c vaddr=0x50000000 size=0x00000 ( 0) load I (308) boot: Loaded app from partition at offset 0x200000 I (308) boot: Disabling RNG early entropy source... I (314) cpu_start: Pro cpu up. I (317) cpu_start: Starting app cpu, entry point is 0x40080fc8 0x40080fc8: Cache_Read_Enable at /Users/eugene/esp/esp-idf/components/esp32/include/rom/cache.h:181 (discriminator 1) (inlined by) call_start_cpu0 at /Users/eugene/esp/esp-idf/components/esp32/cpu_start.c:169 (discriminator 1) I (310) cpu_start: App cpu up. I (328) heap_init: Initializing. RAM available for dynamic allocation: I (335) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM I (341) heap_init: At 3FFC7E00 len 00018200 (96 KiB): DRAM I (347) heap_init: At 3FFE0440 len 00003BC0 (14 KiB): D/IRAM I (353) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM I (360) heap_init: At 40089E4C len 000161B4 (88 KiB): IRAM I (366) cpu_start: Pro cpu start user code I (160) cpu_start: Starting scheduler on PRO CPU. I (0) cpu_start: Starting scheduler on APP CPU. odroid start. odroid_input_gamepad_init done. app_main: Non deep sleep startup ili9341_init: line_buffer_put(0x3ffcd144) spi_task: Entered. ili9341_init: line_buffer_put(0x3ffcddc8) LCD: calling ili_init. LCD: calling backlight_init. LCD Initialized (40000000 Hz). ADC: Characterized using eFuse Vref odroid_sdcard_open() E (1021) spi_master: spi_bus_initialize(146): host already in use I (1021) gpio: GPIO[22]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 E (1071) sdmmc_cmd: sdmmc_card_init: send_if_cond (1) returned 0x108 E (1071) spi_master: spi_bus_free(256): not all CSses freed odroid_sdcard_open: esp_vfs_fat_sdmmc_mount failed (264) I (1071) I2S: DMA Malloc info, datalen=blocksize=2048, dma_buf_count=4 I (1081) I2S: PLL_D2: Req RATE: 16000, real rate: 1004.000, BITS: 16, CLKM: 83, BCK: 60, MCLK: 83.333, SCLK: 32128.000000, diva: 64, divb: 21 odroid_settings_RomFilePathGet: value='/sd/roms/nes/Blades of Steel (USA).nes' extension=nes resume - extension=nes, slot=0 I (1251) esp_image: segment 0: paddr=0x00300020 vaddr=0x3f400020 size=0x5b47c (373884) map I (1441) esp_image: segment 1: paddr=0x0035b4a4 vaddr=0x3ffb0000 size=0x03e88 ( 16008) I (1451) esp_image: segment 2: paddr=0x0035f334 vaddr=0x3ffb3e88 size=0x00000 ( 0) I (1451) esp_image: segment 3: paddr=0x0035f33c vaddr=0x40080000 size=0x00400 ( 1024) 0x40080000: _iram_start at /Users/eugene/esp/esp-idf/components/freertos/xtensa_vectors.S:1685 I (1451) esp_image: segment 4: paddr=0x0035f744 vaddr=0x40080400 size=0x008cc ( 2252) I (1461) esp_image: segment 5: paddr=0x00360018 vaddr=0x400d0018 size=0x39508 (234760) map 0x400d0018: _flash_cache_start at ??:? I (1581) esp_image: segment 6: paddr=0x00399528 vaddr=0x40080ccc size=0x097e4 ( 38884) I (1601) esp_image: segment 7: paddr=0x003a2d14 vaddr=0x400c0000 size=0x00064 ( 100) I (1601) esp_image: segment 8: paddr=0x003a2d80 vaddr=0x50000000 size=0x00000 ( 0) ets Jun 8 2016 00:22:57 rst:0xc (SW_CPU_RESET),boot:0x33 (SPI_FAST_FLASH_BOOT) configsip: 0, SPIWP:0xee clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 mode:DIO, clock div:1 load:0x3fff0018,len:4 load:0x3fff001c,len:5828 load:0x40078000,len:9020 load:0x40080000,len:6120 0x40080000: _iram_start at /Users/eugene/esp/esp-idf/components/freertos/xtensa_vectors.S:1685 entry 0x40080334 0x40080334: _KernelExceptionVector at ??:? I (29) boot: ESP-IDF v3.1-odroid-1-g08f2c8f26 2nd stage bootloader I (29) boot: compile time 21:04:48 I (35) boot: Enabling RNG early entropy source... I (35) boot: SPI Speed : 80MHz I (39) boot: SPI Mode : DIO I (43) boot: SPI Flash Size : 16MB I (47) boot: Partition Table: I (51) boot: ## Label Usage Type ST Offset Length I (58) boot: 0 nvs WiFi data 01 02 00009000 00004000 I (66) boot: 1 otadata OTA data 01 00 0000d000 00002000 I (73) boot: 2 phy_init RF data 01 01 0000f000 00001000 I (81) boot: 3 factory factory app 00 00 00010000 000f0000 I (88) boot: 4 storage Unknown data 01 82 00100000 00100000 I (96) boot: 5 app_0 OTA app 00 10 00200000 00100000 I (103) boot: 6 app_1 OTA app 00 11 00300000 00100000 I (111) boot: 7 app_2 OTA app 00 12 00400000 00100000 I (118) boot: 8 app_3 OTA app 00 13 00500000 00100000 I (126) boot: 9 data_0 unknown 40 00 00600000 00400000 I (133) boot: End of partition table I (138) esp_image: segment 0: paddr=0x00300020 vaddr=0x3f400020 size=0x5b47c (373884) map I (255) esp_image: segment 1: paddr=0x0035b4a4 vaddr=0x3ffb0000 size=0x03e88 ( 16008) load I (261) esp_image: segment 2: paddr=0x0035f334 vaddr=0x3ffb3e88 size=0x00000 ( 0) load I (262) esp_image: segment 3: paddr=0x0035f33c vaddr=0x40080000 size=0x00400 ( 1024) load 0x40080000: _iram_start at /Users/eugene/esp/esp-idf/components/freertos/xtensa_vectors.S:1685 I (271) esp_image: segment 4: paddr=0x0035f744 vaddr=0x40080400 size=0x008cc ( 2252) load I (281) esp_image: segment 5: paddr=0x00360018 vaddr=0x400d0018 size=0x39508 (234760) map 0x400d0018: _flash_cache_start at ??:? I (357) esp_image: segment 6: paddr=0x00399528 vaddr=0x40080ccc size=0x097e4 ( 38884) load I (371) esp_image: segment 7: paddr=0x003a2d14 vaddr=0x400c0000 size=0x00064 ( 100) load I (371) esp_image: segment 8: paddr=0x003a2d80 vaddr=0x50000000 size=0x00000 ( 0) load I (385) boot: Loaded app from partition at offset 0x300000 I (385) boot: Disabling RNG early entropy source... I (390) spiram: SPI RAM mode: flash 80m sram 80m I (395) spiram: PSRAM initialized, cache is in low/high (2-core) mode. I (402) cpu_start: Pro cpu up. I (406) cpu_start: Starting app cpu, entry point is 0x40081260 0x40081260: esp_dport_access_int_resume at /Users/eugene/esp/esp-idf/components/esp32/dport_access.c:213 I (398) cpu_start: App cpu up. I (416) heap_init: Initializing. RAM available for dynamic allocation: I (423) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM I (429) heap_init: At 3FFD6F80 len 00009080 (36 KiB): DRAM I (435) heap_init: At 3FFE0440 len 00003BC0 (14 KiB): D/IRAM I (442) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM I (448) heap_init: At 4008A4B0 len 00015B50 (86 KiB): IRAM I (454) cpu_start: Pro cpu start user code I (24) cpu_start: Starting scheduler on PRO CPU. I (0) cpu_start: Starting scheduler on APP CPU. nesemu (20190523-b9b623f43e). odroid_settings_RomFilePathGet: value='/sd/roms/nes/Blades of Steel (USA).nes' A HEAP:0x239a0 ili9341_init: line_buffer_put(0x3ffdc8fc) spi_task: Entered. ili9341_init: line_buffer_put(0x3ffdd580) LCD: calling ili_init. LCD: calling backlight_init. LCD Initialized (40000000 Hz). odroid_input_gamepad_init done. ADC: Characterized using eFuse Vref app_main: Unexpected deep sleep reset odroid_settings_RomFilePathGet: value='/sd/roms/nes/Blades of Steel (USA).nes' osd_getromdata: Reading from sdcard. E (929) spi_master: spi_bus_initialize(146): host already in use I (939) gpio: GPIO[22]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 E (949) sdmmc_cmd: sdmmc_card_init: sdio_reset: unexpected return: 0x109 E (949) spi_master: spi_bus_free(256): not all CSses freed odroid_sdcard_open: esp_vfs_fat_sdmmc_mount failed (265) abort() was called at PC 0x400d3e4d on core 0 0x400d3e4d: ili9341_write_frame_rectangleLE at /Users/eugene/Desktop/github/GabozeExpress/Public/Software/odroid-go-firmware/main/odroid_display.c:389 Backtrace: 0x40088243:0x3ffda040 0x4008839b:0x3ffda060 0x400d3e4d:0x3ffda080 0x400d1ff0:0x3ffda0b0 0x400d3e4d: ili9341_write_frame_rectangleLE at /Users/eugene/Desktop/github/GabozeExpress/Public/Software/odroid-go-firmware/main/odroid_display.c:389 0x400d1ff0: esp_task_wdt_init at /Users/eugene/esp/esp-idf/components/esp32/task_wdt.c:236 Entering gdb stub now. $T0b#e6GNU gdb (crosstool-NG crosstool-ng-1.22.0-80-g6c4433a) 7.10 Copyright (C) 2015 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "--host=x86_64-build_apple-darwin16.3.0 --target=xtensa-esp32-elf". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from /Users/eugene/Desktop/github/GabozeExpress/Public/Software/odroid-go-firmware/build/odroid-go-firmware.elf...done. Remote debugging using /dev/cu.SLAB_USBtoUART 0x40088243 in ?? () ```

Reboot

After (START+SELECT) Runs 'Blades Of Steel' in this example Still Selected and NES Emulator Auto Fires

Click to Expand

```shell MONITOR --- idf_monitor on /dev/cu.SLAB_USBtoUART 115200 --- --- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H --- ected deep sleep reset odroid_settings_RomFilePathGet: value='/sd/roms/nes/Blades of Steel (USA).nes' osd_getromdata: Reading from sdcard. E (928) spi_master: spi_bus_initialize(146): host already in use I (938) gpio: GPIO[22]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 app_main: fileSize=131088 E (1368) spi_master: spi_bus_free(256): not all CSses freed NoFrendo start! odroid_audio_init: sink=0, sample_rate=32000 I (1368) I2S: DMA Malloc info, datalen=blocksize=2048, dma_buf_count=6 I (1378) I2S: PLL_D2: Req RATE: 32000, real rate: 2032.000, BITS: 16, CLKM: 41, BCK: 60, MCLK: 41.667, SCLK: 65024.000000, diva: 64, divb: 42 vid_init done bmp_create: width=256, height=240, overdraw=8 Initialized. ROM@0x3f800000 rom_load: rominfo->filename='Blades of Steel (USA).nes' Head: 0x3f800000 (4e 45 53 1a) setting up mapper 2 map2_init. last_bank=7 bmp_create: width=256, height=224, overdraw=0 setting up mapper 2 map2_init. last_bank=7 setting up mapper 2 map2_init. last_bank=7 odroid_settings_RomFilePathGet: value='/sd/roms/nes/Blades of Steel (USA).nes' E (1558) spi_master: spi_bus_initialize(146): host already in use I (1558) gpio: GPIO[22]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 odroid_sdcard_create_savefile_path: savefile_path='/sd/odroid/data/nes/Blades of Steel (USA).nes.sav' state_load: fn='/sd/odroid/data/nes/Blades of Steel (USA).nes.sav' state_load: snssFile->headerBlock.numberOfBlocks=4 load_baseblock load_vramblock load_soundblock load_mapperblock State 0 restoredE (1668) spi_master: spi_bus_free(256): not all CSses freed HEAP:0x13010, FPS:64.195847, BATTERY:783 [-388] HEAP:0x13010, FPS:60.519363, BATTERY:777 [-388] HEAP:0x13010, FPS:59.550903, BATTERY:772 [-389] HEAP:0x13010, FPS:60.513264, BATTERY:772 [-389] HEAP:0x13010, FPS:59.553017, BATTERY:772 [-389] HEAP:0x13010, FPS:60.513290, BATTERY:769 [-390] HEAP:0x13010, FPS:59.550980, BATTERY:769 [-390] HEAP:0x13010, FPS:60.511826, BATTERY:768 [-390] HEAP:0x13010, FPS:59.553616, BATTERY:762 [-391] HEAP:0x13010, FPS:60.513950, BATTERY:762 [-391] HEAP:0x13010, FPS:59.553635, BATTERY:762 [-391] HEAP:0x13010, FPS:60.511757, BATTERY:758 [-391] HEAP:0x13010, FPS:60.513367, BATTERY:759 [-391] HEAP:0x13010, FPS:59.552803, BATTERY:757 [-391] HEAP:0x13010, FPS:60.513218, BATTERY:754 [-392] HEAP:0x13010, FPS:59.552471, BATTERY:756 [-391] HEAP:0x13010, FPS:60.511509, BATTERY:753 [-392] HEAP:0x13010, FPS:59.551620, BATTERY:754 [-392] HEAP:0x13010, FPS:60.513882, BATTERY:748 [-393] HEAP:0x13010, FPS:59.552876, BATTERY:752 [-392] HEAP:0x13010, FPS:60.514568, BATTERY:749 [-392] HEAP:0x13010, FPS:59.553707, BATTERY:753 [-392] HEAP:0x13010, FPS:60.513496, BATTERY:750 [-392] HEAP:0x13010, FPS:59.553791, BATTERY:749 [-392] HEAP:0x13010, FPS:60.511795, BATTERY:749 [-392] HEAP:0x13010, FPS:60.513443, BATTERY:748 [-393] ets Jun 8 2016 00:22:57 rst:0x1 (POWERON_RESET),boot:0x33 (SPI_FAST_FLASH_BOOT) configsip: 0, SPIWP:0xee clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 mode:DIO, clock div:1 load:0x3fff0018,len:4 load:0x3fff001c,len:5828 load:0x40078000,len:9020 load:0x40080000,len:6120 0x40080000: _iram_start at /Users/eugene/esp/esp-idf/components/freertos/xtensa_vectors.S:1685 entry 0x40080334 0x40080334: _KernelExceptionVector at ??:? I (28) boot: ESP-IDF v3.1-odroid-1-g08f2c8f26 2nd stage bootloader I (28) boot: compile time 21:04:48 I (34) boot: Enabling RNG early entropy source... I (34) boot: SPI Speed : 80MHz I (38) boot: SPI Mode : DIO I (42) boot: SPI Flash Size : 16MB I (47) boot: Partition Table: I (50) boot: ## Label Usage Type ST Offset Length I (57) boot: 0 nvs WiFi data 01 02 00009000 00004000 I (65) boot: 1 otadata OTA data 01 00 0000d000 00002000 I (72) boot: 2 phy_init RF data 01 01 0000f000 00001000 I (80) boot: 3 factory factory app 00 00 00010000 000f0000 I (87) boot: 4 storage Unknown data 01 82 00100000 00100000 I (95) boot: 5 app_0 OTA app 00 10 00200000 00100000 I (102) boot: 6 app_1 OTA app 00 11 00300000 00100000 I (110) boot: 7 app_2 OTA app 00 12 00400000 00100000 I (117) boot: 8 app_3 OTA app 00 13 00500000 00100000 I (125) boot: 9 data_0 unknown 40 00 00600000 00400000 I (132) boot: End of partition table I (137) esp_image: segment 0: paddr=0x00300020 vaddr=0x3f400020 size=0x5b47c (373884) map I (254) esp_image: segment 1: paddr=0x0035b4a4 vaddr=0x3ffb0000 size=0x03e88 ( 16008) load I (260) esp_image: segment 2: paddr=0x0035f334 vaddr=0x3ffb3e88 size=0x00000 ( 0) load I (261) esp_image: segment 3: paddr=0x0035f33c vaddr=0x40080000 size=0x00400 ( 1024) load 0x40080000: _iram_start at /Users/eugene/esp/esp-idf/components/freertos/xtensa_vectors.S:1685 I (271) esp_image: segment 4: paddr=0x0035f744 vaddr=0x40080400 size=0x008cc ( 2252) load I (280) esp_image: segment 5: paddr=0x00360018 vaddr=0x400d0018 size=0x39508 (234760) map 0x400d0018: _flash_cache_start at ??:? I (356) esp_image: segment 6: paddr=0x00399528 vaddr=0x40080ccc size=0x097e4 ( 38884) load I (370) esp_image: segment 7: paddr=0x003a2d14 vaddr=0x400c0000 size=0x00064 ( 100) load I (371) esp_image: segment 8: paddr=0x003a2d80 vaddr=0x50000000 size=0x00000 ( 0) load I (384) boot: Loaded app from partition at offset 0x300000 I (384) boot: Disabling RNG early entropy source... I (390) spiram: SPI RAM mode: flash 80m sram 80m I (394) spiram: PSRAM initialized, cache is in low/high (2-core) mode. I (401) cpu_start: Pro cpu up. I (405) cpu_start: Starting app cpu, entry point is 0x40081260 0x40081260: esp_dport_access_int_resume at /Users/eugene/esp/esp-idf/components/esp32/dport_access.c:213 I (0) cpu_start: App cpu up. I (415) heap_init: Initializing. RAM available for dynamic allocation: I (422) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM I (428) heap_init: At 3FFD6F80 len 00009080 (36 KiB): DRAM I (434) heap_init: At 3FFE0440 len 00003BC0 (14 KiB): D/IRAM I (441) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM I (447) heap_init: At 4008A4B0 len 00015B50 (86 KiB): IRAM I (453) cpu_start: Pro cpu start user code I (23) cpu_start: Starting scheduler on PRO CPU. I (0) cpu_start: Starting scheduler on APP CPU. nesemu (20190523-b9b623f43e). odroid_settings_RomFilePathGet: value='/sd/roms/nes/Blades of Steel (USA).nes' A HEAP:0x239a0 ili9341_init: line_buffer_put(0x3ffdc8fc) spi_task: Entered. ili9341_init: line_buffer_put(0x3ffdd580) LCD: calling ili_init. LCD: calling backlight_init. LCD Initialized (40000000 Hz). odroid_input_gamepad_init done. ADC: Characterized using eFuse Vref app_main: Unexpected deep sleep reset odroid_settings_RomFilePathGet: value='/sd/roms/nes/Blades of Steel (USA).nes' osd_getromdata: Reading from sdcard. E (928) spi_master: spi_bus_initialize(146): host already in use I (938) gpio: GPIO[22]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 app_main: fileSize=131088 E (1188) spi_master: spi_bus_free(256): not all CSses freed NoFrendo start! odroid_audio_init: sink=0, sample_rate=32000 I (1188) I2S: DMA Malloc info, datalen=blocksize=2048, dma_buf_count=6 I (1198) I2S: PLL_D2: Req RATE: 32000, real rate: 2032.000, BITS: 16, CLKM: 41, BCK: 60, MCLK: 41.667, SCLK: 65024.000000, diva: 64, divb: 42 vid_init done bmp_create: width=256, height=240, overdraw=8 Initialized. ROM@0x3f800000 rom_load: rominfo->filename='Blades of Steel (USA).nes' Head: 0x3f800000 (4e 45 53 1a) setting up mapper 2 map2_init. last_bank=7 bmp_create: width=256, height=224, overdraw=0 setting up mapper 2 map2_init. last_bank=7 setting up mapper 2 map2_init. last_bank=7 odroid_settings_RomFilePathGet: value='/sd/roms/nes/Blades of Steel (USA).nes' E (1378) spi_master: spi_bus_initialize(146): host already in use I (1378) gpio: GPIO[22]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 odroid_sdcard_create_savefile_path: savefile_path='/sd/odroid/data/nes/Blades of Steel (USA).nes.sav' state_load: fn='/sd/odroid/data/nes/Blades of Steel (USA).nes.sav' state_load: snssFile->headerBlock.numberOfBlocks=4 load_baseblock load_vramblock load_soundblock load_mapperblock State 0 restoredE (1488) spi_master: spi_bus_free(256): not all CSses freed HEAP:0x13010, FPS:63.919769, BATTERY:743 [-393] HEAP:0x13010, FPS:60.518799, BATTERY:743 [-393] HEAP:0x13010, FPS:59.551395, BATTERY:741 [-394] HEAP:0x13010, FPS:60.513176, BATTERY:744 [-393] HEAP:0x13010, FPS:59.553108, BATTERY:743 [-393] Stopping video queue. Saving state. odroid_settings_RomFilePathGet: value='/sd/roms/nes/Blades of Steel (USA).nes' E (7098) spi_master: spi_bus_initialize(146): host already in use I (7098) gpio: GPIO[22]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 odroid_sdcard_create_savefile_path: savefile_path='/sd/odroid/data/nes/Blades of Steel (USA).nes.sav' state_save: fn='/sd/odroid/data/nes/Blades of Steel (USA).nes.sav' state_save: SNSS_OpenFile OK save_baseblock state_save: save_baseblock OK save_vramblock state_save: save_vramblock OK save_sramblock save_srambloc: false == written state_save: save_sramblock OK save_soundblock state_save: save_soundblock OK save_mapperblock state_save: save_mapperblock OK State 0 savedE (7238) spi_master: spi_bus_free(256): not all CSses freed Saving state OK. I (7238) esp_image: segment 0: paddr=0x00200020 vaddr=0x3f400020 size=0x2cd10 (183568) map I (7308) esp_image: segment 1: paddr=0x0022cd38 vaddr=0x3ffb0000 size=0x0316c ( 12652) I (7308) esp_image: segment 2: paddr=0x0022feac vaddr=0x3ffb316c size=0x00000 ( 0) I (7318) esp_image: segment 3: paddr=0x0022feb4 vaddr=0x40080000 size=0x0015c ( 348) 0x40080000: _iram_start at /Users/eugene/esp/esp-idf/components/freertos/xtensa_vectors.S:1685 I (7318) esp_image: segment 4: paddr=0x00230018 vaddr=0x400d0018 size=0x29f64 (171876) map 0x400d0018: _flash_cache_start at ??:? I (7388) esp_image: segment 5: paddr=0x00259f84 vaddr=0x4008015c size=0x002a4 ( 676) 0x4008015c: _WindowUnderflow12 at /Users/eugene/esp/esp-idf/components/freertos/xtensa_vectors.S:1876 I (7388) esp_image: segment 6: paddr=0x0025a230 vaddr=0x40080400 size=0x09a4c ( 39500) I (7398) esp_image: segment 7: paddr=0x00263c84 vaddr=0x400c0000 size=0x00000 ( 0) I (7408) esp_image: segment 8: paddr=0x00263c8c vaddr=0x50000000 size=0x00000 ( 0) ets Jun 8 2016 00:22:57 rst:0xc (SW_CPU_RESET),boot:0x33 (SPI_FAST_FLASH_BOOT) configsip: 0, SPIWP:0xee clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 mode:DIO, clock div:1 load:0x3fff0018,len:4 load:0x3fff001c,len:5828 load:0x40078000,len:9020 load:0x40080000,len:6120 0x40080000: _iram_start at /Users/eugene/esp/esp-idf/components/freertos/xtensa_vectors.S:1685 entry 0x40080334 0x40080334: _KernelExceptionVector at ??:? I (29) boot: ESP-IDF v3.1-odroid-1-g08f2c8f26 2nd stage bootloader I (29) boot: compile time 21:04:48 I (35) boot: Enabling RNG early entropy source... I (35) boot: SPI Speed : 80MHz I (39) boot: SPI Mode : DIO I (43) boot: SPI Flash Size : 16MB I (47) boot: Partition Table: I (51) boot: ## Label Usage Type ST Offset Length I (58) boot: 0 nvs WiFi data 01 02 00009000 00004000 I (66) boot: 1 otadata OTA data 01 00 0000d000 00002000 I (73) boot: 2 phy_init RF data 01 01 0000f000 00001000 I (81) boot: 3 factory factory app 00 00 00010000 000f0000 I (88) boot: 4 storage Unknown data 01 82 00100000 00100000 I (96) boot: 5 app_0 OTA app 00 10 00200000 00100000 I (103) boot: 6 app_1 OTA app 00 11 00300000 00100000 I (111) boot: 7 app_2 OTA app 00 12 00400000 00100000 I (118) boot: 8 app_3 OTA app 00 13 00500000 00100000 I (126) boot: 9 data_0 unknown 40 00 00600000 00400000 I (133) boot: End of partition table I (138) esp_image: segment 0: paddr=0x00200020 vaddr=0x3f400020 size=0x2cd10 (183568) map I (200) esp_image: segment 1: paddr=0x0022cd38 vaddr=0x3ffb0000 size=0x0316c ( 12652) load I (204) esp_image: segment 2: paddr=0x0022feac vaddr=0x3ffb316c size=0x00000 ( 0) load I (207) esp_image: segment 3: paddr=0x0022feb4 vaddr=0x40080000 size=0x0015c ( 348) load 0x40080000: _iram_start at /Users/eugene/esp/esp-idf/components/freertos/xtensa_vectors.S:1685 I (216) esp_image: segment 4: paddr=0x00230018 vaddr=0x400d0018 size=0x29f64 (171876) map 0x400d0018: _flash_cache_start at ??:? I (274) esp_image: segment 5: paddr=0x00259f84 vaddr=0x4008015c size=0x002a4 ( 676) load 0x4008015c: _WindowUnderflow12 at /Users/eugene/esp/esp-idf/components/freertos/xtensa_vectors.S:1876 I (275) esp_image: segment 6: paddr=0x0025a230 vaddr=0x40080400 size=0x09a4c ( 39500) load I (295) esp_image: segment 7: paddr=0x00263c84 vaddr=0x400c0000 size=0x00000 ( 0) load I (296) esp_image: segment 8: paddr=0x00263c8c vaddr=0x50000000 size=0x00000 ( 0) load I (308) boot: Loaded app from partition at offset 0x200000 I (308) boot: Disabling RNG early entropy source... I (314) cpu_start: Pro cpu up. I (317) cpu_start: Starting app cpu, entry point is 0x40080fc8 0x40080fc8: Cache_Read_Enable at /Users/eugene/esp/esp-idf/components/esp32/include/rom/cache.h:181 (discriminator 1) (inlined by) call_start_cpu0 at /Users/eugene/esp/esp-idf/components/esp32/cpu_start.c:169 (discriminator 1) I (310) cpu_start: App cpu up. I (328) heap_init: Initializing. RAM available for dynamic allocation: I (335) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM I (341) heap_init: At 3FFC7E00 len 00018200 (96 KiB): DRAM I (347) heap_init: At 3FFE0440 len 00003BC0 (14 KiB): D/IRAM I (353) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM I (360) heap_init: At 40089E4C len 000161B4 (88 KiB): IRAM I (366) cpu_start: Pro cpu start user code I (160) cpu_start: Starting scheduler on PRO CPU. I (0) cpu_start: Starting scheduler on APP CPU. odroid start. odroid_input_gamepad_init done. app_main: Non deep sleep startup ili9341_init: line_buffer_put(0x3ffcd144) spi_task: Entered. ili9341_init: line_buffer_put(0x3ffcddc8) LCD: calling ili_init. LCD: calling backlight_init. LCD Initialized (40000000 Hz). ADC: Characterized using eFuse Vref odroid_sdcard_open() E (1021) spi_master: spi_bus_initialize(146): host already in use I (1021) gpio: GPIO[22]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 E (1071) sdmmc_cmd: sdmmc_card_init: send_if_cond (1) returned 0x108 E (1071) spi_master: spi_bus_free(256): not all CSses freed odroid_sdcard_open: esp_vfs_fat_sdmmc_mount failed (264) I (1071) I2S: DMA Malloc info, datalen=blocksize=2048, dma_buf_count=4 I (1081) I2S: PLL_D2: Req RATE: 16000, real rate: 1004.000, BITS: 16, CLKM: 83, BCK: 60, MCLK: 83.333, SCLK: 32128.000000, diva: 64, divb: 21 odroid_settings_RomFilePathGet: value='/sd/roms/nes/Blades of Steel (USA).nes' extension=nes resume - extension=nes, slot=0 I (1251) esp_image: segment 0: paddr=0x00300020 vaddr=0x3f400020 size=0x5b47c (373884) map I (1441) esp_image: segment 1: paddr=0x0035b4a4 vaddr=0x3ffb0000 size=0x03e88 ( 16008) I (1451) esp_image: segment 2: paddr=0x0035f334 vaddr=0x3ffb3e88 size=0x00000 ( 0) I (1451) esp_image: segment 3: paddr=0x0035f33c vaddr=0x40080000 size=0x00400 ( 1024) 0x40080000: _iram_start at /Users/eugene/esp/esp-idf/components/freertos/xtensa_vectors.S:1685 I (1451) esp_image: segment 4: paddr=0x0035f744 vaddr=0x40080400 size=0x008cc ( 2252) I (1461) esp_image: segment 5: paddr=0x00360018 vaddr=0x400d0018 size=0x39508 (234760) map 0x400d0018: _flash_cache_start at ??:? I (1581) esp_image: segment 6: paddr=0x00399528 vaddr=0x40080ccc size=0x097e4 ( 38884) I (1601) esp_image: segment 7: paddr=0x003a2d14 vaddr=0x400c0000 size=0x00064 ( 100) I (1601) esp_image: segment 8: paddr=0x003a2d80 vaddr=0x50000000 size=0x00000 ( 0) ets Jun 8 2016 00:22:57 rst:0xc (SW_CPU_RESET),boot:0x33 (SPI_FAST_FLASH_BOOT) configsip: 0, SPIWP:0xee clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 mode:DIO, clock div:1 load:0x3fff0018,len:4 load:0x3fff001c,len:5828 load:0x40078000,len:9020 load:0x40080000,len:6120 0x40080000: _iram_start at /Users/eugene/esp/esp-idf/components/freertos/xtensa_vectors.S:1685 entry 0x40080334 0x40080334: _KernelExceptionVector at ??:? I (29) boot: ESP-IDF v3.1-odroid-1-g08f2c8f26 2nd stage bootloader I (29) boot: compile time 21:04:48 I (35) boot: Enabling RNG early entropy source... I (35) boot: SPI Speed : 80MHz I (39) boot: SPI Mode : DIO I (43) boot: SPI Flash Size : 16MB I (47) boot: Partition Table: I (51) boot: ## Label Usage Type ST Offset Length I (58) boot: 0 nvs WiFi data 01 02 00009000 00004000 I (66) boot: 1 otadata OTA data 01 00 0000d000 00002000 I (73) boot: 2 phy_init RF data 01 01 0000f000 00001000 I (81) boot: 3 factory factory app 00 00 00010000 000f0000 I (88) boot: 4 storage Unknown data 01 82 00100000 00100000 I (96) boot: 5 app_0 OTA app 00 10 00200000 00100000 I (103) boot: 6 app_1 OTA app 00 11 00300000 00100000 I (111) boot: 7 app_2 OTA app 00 12 00400000 00100000 I (118) boot: 8 app_3 OTA app 00 13 00500000 00100000 I (126) boot: 9 data_0 unknown 40 00 00600000 00400000 I (133) boot: End of partition table I (138) esp_image: segment 0: paddr=0x00300020 vaddr=0x3f400020 size=0x5b47c (373884) map I (255) esp_image: segment 1: paddr=0x0035b4a4 vaddr=0x3ffb0000 size=0x03e88 ( 16008) load I (261) esp_image: segment 2: paddr=0x0035f334 vaddr=0x3ffb3e88 size=0x00000 ( 0) load I (262) esp_image: segment 3: paddr=0x0035f33c vaddr=0x40080000 size=0x00400 ( 1024) load 0x40080000: _iram_start at /Users/eugene/esp/esp-idf/components/freertos/xtensa_vectors.S:1685 I (271) esp_image: segment 4: paddr=0x0035f744 vaddr=0x40080400 size=0x008cc ( 2252) load I (281) esp_image: segment 5: paddr=0x00360018 vaddr=0x400d0018 size=0x39508 (234760) map 0x400d0018: _flash_cache_start at ??:? I (357) esp_image: segment 6: paddr=0x00399528 vaddr=0x40080ccc size=0x097e4 ( 38884) load I (371) esp_image: segment 7: paddr=0x003a2d14 vaddr=0x400c0000 size=0x00064 ( 100) load I (371) esp_image: segment 8: paddr=0x003a2d80 vaddr=0x50000000 size=0x00000 ( 0) load I (385) boot: Loaded app from partition at offset 0x300000 I (385) boot: Disabling RNG early entropy source... I (390) spiram: SPI RAM mode: flash 80m sram 80m I (395) spiram: PSRAM initialized, cache is in low/high (2-core) mode. I (402) cpu_start: Pro cpu up. I (406) cpu_start: Starting app cpu, entry point is 0x40081260 0x40081260: esp_dport_access_int_resume at /Users/eugene/esp/esp-idf/components/esp32/dport_access.c:213 I (398) cpu_start: App cpu up. I (416) heap_init: Initializing. RAM available for dynamic allocation: I (423) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM I (429) heap_init: At 3FFD6F80 len 00009080 (36 KiB): DRAM I (435) heap_init: At 3FFE0440 len 00003BC0 (14 KiB): D/IRAM I (442) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM I (448) heap_init: At 4008A4B0 len 00015B50 (86 KiB): IRAM I (454) cpu_start: Pro cpu start user code I (24) cpu_start: Starting scheduler on PRO CPU. I (0) cpu_start: Starting scheduler on APP CPU. nesemu (20190523-b9b623f43e). odroid_settings_RomFilePathGet: value='/sd/roms/nes/Blades of Steel (USA).nes' A HEAP:0x239a0 ili9341_init: line_buffer_put(0x3ffdc8fc) spi_task: Entered. ili9341_init: line_buffer_put(0x3ffdd580) LCD: calling ili_init. LCD: calling backlight_init. LCD Initialized (40000000 Hz). odroid_input_gamepad_init done. ADC: Characterized using eFuse Vref app_main: Unexpected deep sleep reset odroid_settings_RomFilePathGet: value='/sd/roms/nes/Blades of Steel (USA).nes' osd_getromdata: Reading from sdcard. E (929) spi_master: spi_bus_initialize(146): host already in use I (939) gpio: GPIO[22]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 E (949) sdmmc_cmd: sdmmc_card_init: sdio_reset: unexpected return: 0x109 E (949) spi_master: spi_bus_free(256): not all CSses freed odroid_sdcard_open: esp_vfs_fat_sdmmc_mount failed (265) abort() was called at PC 0x400d3e4d on core 0 0x400d3e4d: ili9341_write_frame_rectangleLE at /Users/eugene/Desktop/github/GabozeExpress/Public/Software/odroid-go-firmware/main/odroid_display.c:389 Backtrace: 0x40088243:0x3ffda040 0x4008839b:0x3ffda060 0x400d3e4d:0x3ffda080 0x400d1ff0:0x3ffda0b0 0x400d3e4d: ili9341_write_frame_rectangleLE at /Users/eugene/Desktop/github/GabozeExpress/Public/Software/odroid-go-firmware/main/odroid_display.c:389 0x400d1ff0: esp_task_wdt_init at /Users/eugene/esp/esp-idf/components/esp32/task_wdt.c:236 Entering gdb stub now. $T0b#e6GNU gdb (crosstool-NG crosstool-ng-1.22.0-80-g6c4433a) 7.10 Copyright (C) 2015 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "--host=x86_64-build_apple-darwin16.3.0 --target=xtensa-esp32-elf". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from /Users/eugene/Desktop/github/GabozeExpress/Public/Software/odroid-go-firmware/build/odroid-go-firmware.elf...done. Remote debugging using /dev/cu.SLAB_USBtoUART 0x40088243 in ?? () (gdb) ```

32teeth commented 5 years ago

@pebri86 @gabozepocaio

32GB SD Card Ultra Speed

After Firmware Load Device Resets to Factory and Returns to FW List

Click to Expand

```shell rst:0xc (SW_CPU_RESET),boot:0x33 (SPI_FAST_FLASH_BOOT) configsip: 0, SPIWP:0xee clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 mode:DIO, clock div:1 load:0x3fff0018,len:4 load:0x3fff001c,len:7156 load:0x40078000,len:10320 load:0x40080400,len:7060 entry 0x40080754 I (29) boot: ESP-IDF v3.2-dev-1706-g24e4887c7-dirty 2nd stage bootloader I (29) boot: compile time 17:39:53 I (40) boot: Enabling RNG early entropy source... I (40) qio_mode: Enabling QIO for flash chip GD I (41) boot: SPI Speed : 80MHz I (45) boot: SPI Mode : QIO I (49) boot: SPI Flash Size : 16MB I (53) boot: Partition Table: I (57) boot: ## Label Usage Type ST Offset Length I (64) boot: 0 nvs WiFi data 01 02 00009000 00004000 I (72) boot: 1 otadata OTA data 01 00 0000d000 00002000 I (79) boot: 2 phy_init RF data 01 01 0000f000 00001000 I (86) boot: 3 firmware factory app 00 00 00010000 000f0000 I (94) boot: 4 gogo OTA app 00 10 00100000 00100000 I (101) boot: 5 nesemu-go OTA app 00 11 00200000 00100000 I (109) boot: 6 gnuboy-go OTA app 00 12 00300000 00100000 I (116) boot: 7 smsplusgx-go OTA app 00 13 00400000 00200000 I (124) boot: End of partition table I (2128) boot: Detect a condition of the factory reset I (2128) boot: Data partitions to erase: nvs I (2128) boot_comm: ## Label Usage Offset Length Cleaned I (2266) boot_comm: 0 nvs data 00009000 00004000 [yes] I (2358) boot_comm: 1 otadata data 0000d000 00002000 [yes] I (2358) boot_comm: 2 phy_init data 0000f000 00001000 [no] I (2361) boot: Defaulting to factory image I (2365) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x0f8dc ( 63708) map I (2391) esp_image: segment 1: paddr=0x0001f904 vaddr=0x3ff80000 size=0x00000 ( 0) load I (2391) esp_image: segment 2: paddr=0x0001f90c vaddr=0x3ff80000 size=0x00000 ( 0) load I (2398) esp_image: segment 3: paddr=0x0001f914 vaddr=0x3ffb0000 size=0x006fc ( 1788) load I (2407) esp_image: segment 4: paddr=0x00020018 vaddr=0x400d0018 size=0x23ec8 (147144) map 0x400d0018: _flash_cache_start at ??:? ```