NesCat not accepting ROM

Hi. I'm trying to get NesCat to work on my ESP32-WROVER and I keep getting this:

ROM loaded 4kB:1

FLASH SIZE: 8192

Mapping 300000 (+2000)

mmap_res: handle=3 ptr=0x3f420000

[NES ROM MAPPED ON FLASH!]

Inserting cartridge.

Head: 0 5 22 7

ROM is not a valid NES image

ROMLOAD FAIL.

I tried 3 different ROMs with each failing. What is the issue?

Here's my code:

NesCat.ino (177.2 KB)

(Note that the code was modified to work with my ILI9341)

More information and an annotated schematic would help. I assume the schematic will show all connections, power, ground and power sources.

There are hundreds of different ROMs (Read Only Memory) devices, which one(s) are you trying to read?

Sorry your link is causing a re-direct in my browser. Post the code using code tags.

I will make the schematic when I can, but for now, I will just answer the others. I don't know if i can use code tags for the ~5800 lines of code I need to share, and also, I'm using Super Mario Bros. for all of them but each from different websites.

It's copy/paste.

I mean like is it possible to paste thousands of lines of code?