I got my esp32 dev board and got a ili9341 display and have it all working fine with adafruit librarys.
Now i rewired it for working with the esp32 nes emulator code and all is fine.
But my problem is when i upload the code,
I get this in serial console:
Code: Select all
Rebooting...
ets Jun 8 2016 00:22:57
rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0x00
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0008,len:8
load:0x3fff0010,len:3416
load:0x40078000,len:10388
load:0x40080000,len:252
entry 0x40080034
[0;32mI (703) cpu_start: Pro cpu up.[0m
[0;32mI (703) cpu_start: Starting app cpu, entry point is 0x40080d90[0m
[0;32mI (0) cpu_start: App cpu up.[0m
[0;32mI (712) heap_alloc_caps: Initializing. RAM available for dynamic allocation:[0m
[0;32mI (734) heap_alloc_caps: At 3FFAE2A0 len 00001D60 (7 KiB): DRAM[0m
[0;32mI (755) heap_alloc_caps: At 3FFBB770 len 00024890 (146 KiB): DRAM[0m
[0;32mI (775) heap_alloc_caps: At 3FFE0440 len 00003BC0 (14 KiB): D/IRAM[0m
[0;32mI (796) heap_alloc_caps: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM[0m
[0;32mI (818) heap_alloc_caps: At 40092DB0 len 0000D250 (52 KiB): IRAM[0m
[0;32mI (838) cpu_start: Pro cpu start user code[0m
[0;32mI (896) cpu_start: Starting scheduler on PRO CPU.[0m
NoFrendo start!
[0;32mI (202) cpu_start: Starting scheduler on APP CsUpi[0mn mux init ...
lcd spi signal init
Hspi config
[0;32mI (944) gpio: GPIO[2]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 [0m
[0;32mI (944) gpio: GPIO[14]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 [0m
[0;32mI (951) gpio: GPIO[16]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 [0m
[0;32mI (961) gpio: GPIO[27]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 [0m
No PSX/PS2 controller detected (0xFF). You will not be able to control the game.
Malloc: 916 at C:/msys32/esp-idf/examples/esp32-nesemu-master/components/nofrendo/bitmap.c:47
video driver: Simple DirectMedia Layer at 256x224
vid_init done
vid_init done
Malloc: 4 at C:/msys32/esp-idf/examples/esp32-nesemu-master/components/nofrendo/nofrendo.c:243
Malloc: 4 at C:/msys32/esp-idf/examples/esp32-nesemu-master/components/nofrendo/nofrendo.c:152
system type unknown, playing nofrendo NES intro.
Malloc: 4 at C:/msys32/esp-idf/examples/esp32-nesemu-master/components/nofrendo/nofrendo.c:152
Malloc: 824 at C:/msys32/esp-idf/examples/esp32-nesemu-master/components/nofrendo/nes/nes.c:511
Malloc: 65283 at C:/msys32/esp-idf/examples/esp32-nesemu-master/components/nofrendo/bitmap.c:84
Malloc: 980 at C:/msys32/esp-idf/examples/esp32-nesemu-master/components/nofrendo/bitmap.c:47
Malloc: 92 at C:/msys32/esp-idf/examples/esp32-nesemu-master/components/nofrendo/nes/nes.c:526
Malloc: 2048 at C:/msys32/esp-idf/examples/esp32-nesemu-master/components/nofrendo/nes/nes.c:533
Malloc: 368 at C:/msys32/esp-idf/examples/esp32-nesemu-master/components/nofrendo/sndhrdw/nes_apu.c:1002
Malloc: 7608 at C:/msys32/esp-idf/examples/esp32-nesemu-master/components/nofrendo/nes/nes_ppu.c:128
Initialized. ROM@0x3f410000
Malloc: 1068 at C:/msys32/esp-idf/examples/esp32-nesemu-master/components/nofrendo/nes/nes_rom.c:444
Head: 0x3f410000 (4e 45 53 1a)
Malloc: 8192 at C:/msys32/esp-idf/examples/esp32-nesemu-master/components/nofrendo/nes/nes_rom.c:135
GUI: ROM loaded: [4] 256k/128k H
Malloc: 8 at C:/msys32/esp-idf/examples/esp32-nesemu-master/components/nofrendo/nes/nes_mmc.c:241
created memory mapper: MMC3
setting up mapper 4
reset memory mapper
GUI: NES powered on
Malloc: 57347 at C:/msys32/esp-idf/examples/esp32-nesemu-master/components/nofrendo/bitmap.c:84
ASSERT: line 269 of C:/msys32/esp-idf/examples/esp32-nesemu-master/components/nofrendo/memguard.c, malloc: out of memory at line 84 of C:/msys32/esp-idf/examples/esp32-nesemu-master/components/nofrendo/bitmap.c. block size: 57347
Guru Meditation Error: Core 0 panic'ed (Unhandled debug exception)
Debug exception reason: BREAKN instr
Register dump:
PC : 0x400f835e PS : 0x00060f36 A0 : 0x80083049 A1 : 0x3ffbec40
A2 : 0x00000000 A3 : 0x0000010d A4 : 0x3f406b60 A5 : 0x3ffbec60
A6 : 0x0000e003 A7 : 0x00000000 A8 : 0x800f8380 A9 : 0x3ffbebf0
A10 : 0x00000000 A11 : 0x3ffb5fc4 A12 : 0x3f406b60 A13 : 0x3ffbec60
A14 : 0x3ffbeaa0 A15 : 0x00000003 SAR : 0x00000004 EXCCAUSE: 0x00000001
EXCVADDR: 0x00000000 LBEG : 0x400014fd LEND : 0x4000150d LCOUNT : 0xffffffc5
Backtrace: 0x400f835e:0x3ffbec40 0x40083049:0x3ffbec60 0x400fa221:0x3ffbed80 0x400f82cb:0x3ffbeda0 0x400f6d11:0x3ffbedc0 0x400f6d41:0x3ffbede0 0x400f6e3c:0x3ffbee00 0x401088a5:0x3ffbee30 0x400f6ddc:0x3ffbee50 0x400f51aa:0x3ffbee70 0x400d1085:0x3ffbee90
Now as stated in the code i think it is out of memory and i dont know how to resolve it.
All i did was:
Code: Select all
Make automenu
and change the com port and then save it.
then i did:
Code: Select all
make
Code: Select all
make flash
then i used the script to write a rom(super mario bros 3) and that went ok too and as you can see in the log it detects it.
But then it gets a segmentation error.
I dont know how to resolve it.
Can anyone help me out?
I hope to hear soon from you,
Thanks