Help with esp32 NesCat

This is the first time i use the forum.
Im having troubles making my esp32 nescat works on generic esp32 module,it can utilize display and sd card fine but when i try to play a game it crashes with this error:
(i dont know how to write markdown and box thing sry)
ROM loaded 4kB:17
FLASH SIZE: 69776
Mapping 300000 (+11090)
mmap_res: handle=3 ptr=0x3f420000
[NES ROM MAPPED ON FLASH!]
Inserting cartridge.
Head: 78 69 83 26
ROMLOAD SUCCESS.
Inserting Cartridge…
Guru Meditation Error: Core 1 panic’ed (LoadProhibited). Exception was unhandled.

Core 1 register dump:
PC : 0x400dbb9b PS : 0x00060830 A0 : 0x800e1291 A1 : 0x3ffda6e0
A2 : 0x3ffed188 A3 : 0x3ffd56cc A4 : 0x3ffd6f1c A5 : 0x3ffc3a70
A6 : 0x3ffed188 A7 : 0x00000000 A8 : 0x00000000 A9 : 0x3ffda6c0
A10 : 0x3ffed18c A11 : 0x00000000 A12 : 0x00000180 A13 : 0x3ffed18c
A14 : 0x00000003 A15 : 0x00000002 SAR : 0x00000020 EXCCAUSE: 0x0000001c
EXCVADDR: 0x00000118 LBEG : 0x40087dd5 LEND : 0x40087de5 LCOUNT : 0xffffffff

1 Like

Welcome Ngoc,

Do you have a guide that you are following? It looks like all of the code in this project is quite old and a bit scattered.

Which microcontroller are you using?

im not following a guide and i use esp32 dev kit v1

Can you provide any resources at all? Like pictures, datasheets, product pages, code?
We have a pretty solid community but we might need a bit of help getting onboarded with this problem.

For reference
src: Fatal Errors - ESP32 - — ESP-IDF Programming Guide v5.2.1 documentation

"… LoadProhibited, StoreProhibited

These CPU exceptions happen when an application attempts to read from or write to an invalid memory location. The address which has been written/read is found in the EXCVADDR register in the register dump. If this address is zero, it usually means that the application has attempted to dereference a NULL pointer. If this address is close to zero, it usually means that the application has attempted to access a member of a structure, but the pointer to the structure is NULL. If this address is something else (garbage value, not in 0x3fxxxxxx - 0x6xxxxxxx range), it likely means that the pointer used to access the data is either not initialized or has been corrupted…"

I follows the pinout in the code and i modify it a bit so it work with my st7789,imma provide it when im home. Btw can u provide me a guide for good answers? Sry my englisg is bad

NesCat.zip (4.1 MB)
here is the code,sorry for late reply

Hello

Can you provide information on the ROM you are loading on to this one? Is it possible it is having difficulty based on its flash memory?

Cheers,
Blayden

the nes file? i use random nes file from https://www.nesfiles.com/

Hi,

I think a guide like this is mostly what you are after. There is both pinouts and code in here that will help you get this up and running. We’re more than happy to help out if there’s any hiccups along the way.