Flashing TNROM Hangs on erasing
When trying to flash a TNROM it seems to get stuck on the erasing phase. I have let it sit there for several min. I was able to flash two SNROM based boards using the same methodology, so I am not sure if this is a bug or if I need to specify something additional for a TNROM board...
C:\INL-retro-progdump-master - flash\host>inlretro.exe -s scripts/inlretro2.lua -c NES -m mmc3 -x 512 -y 0 -p games\finalfantasy3.bin
Successfully found and connected to INL retro-prog
Device firmware version: 2.3.x
attempting to detect NES/FC mapper via mirroring...
vertical mirroring sensed
Testing MMC3
attempting to detect NES/FC mapper via mirroring...
vertical mirroring sensed
attempting to detect NES/FC mapper via mirroring...
horizontal mirroring sensed
MMC3 mirror test passed
detected RAM @ PPU $ 1000
EXP0 pull-up test: 6
reading PRG-ROM manf ID
attempted read PRG-ROM manf ID: BF
attempted read PRG-ROM prod ID: B7
reading CHR-ROM manf ID
attempted read CHR-ROM manf ID: 2A
attempted read CHR-ROM prod ID: 6
erasing MMC3
erasing PRG-ROM
98 naks, done erasing prg.
erasing CHR-ROM
_
If I modify the mmc3.lua and remark out lines 634 through 645, it will complete without errors.
--TODO erase CHR-ROM only if present
--init_mapper()
--print("erasing CHR-ROM");
--dict.nes("NES_PPU_WR", 0x1555, 0xAA)
--dict.nes("NES_PPU_WR", 0x1AAA, 0x55)
--dict.nes("NES_PPU_WR", 0x1555, 0x80)
--dict.nes("NES_PPU_WR", 0x1555, 0xAA)
--dict.nes("NES_PPU_WR", 0x1AAA, 0x55)
--dict.nes("NES_PPU_WR", 0x1555, 0x10)
--rv = dict.nes("NES_PPU_RD", 0x0000)
--local i = 0
Edited by SuperSirLink