Ah. Thanks for that info, interesting stuff!
Might be doing electrical engineering soon, so hopefully this stuff will become easy!
A microcontroller isn't fast enough to arbitrate access to the RAM, you would have to use logic in addition. 32M of SRAM isn't cheap either (at least $20) or really available off the shelf (you'd have to order production). Since games writeback to the Flash, that'd have to be emulated in the logic too...
Just imagine performing a read through a MCU lol:
interrupt on /ce
read r/w strobes and decode
read cpu_address_low
write ram_address_low
read cpu_address_mid
write ram_address_mid
read cpu_address_high
write ram_address_high
read ram_data
write cpu_data (really you'd need a MCU with a slave parallel port)
All that within 150ns or less
Even if you had the best case scenario (50mhz microcontroller, with one instruction per cycle (ha! not likely)) each instruction will take 20ns. This means the above sequence consumes 300ns. A more likely scenario is that each instruction takes 3-4 cycles. Then you are looking at around 1000ns. Ouch.
This is where programmable logic shines. CPLD will probably do it for you here.
Is there any existing flash cart we can modify to work?
maybe we should ask krizz to make a flasher/dumper? i gues it would be REALLY cheap to be made and lovely to homebrewers too
Yes but other unlock codes could be changed too, like for erasing. The CPLD doesn't have an oscillator so it can't be TOO complex.
Very little chance it isn't protected, and even if it weren't you wouldn't be able to do anything with the fusemap but make a clone using the same discontinued part. It couldn't really be analyzed.
Yeah, I'd still like to see this come to fruition.
So, do you reckon we can re-flash retail carts, or are we back to building a flash cart? If it means purchasing a Bung Linker to examine next time one shows up, that can be done.
I could do sitting down with a bung linker to confirm the logic i have sketched out, it would be nice to confirm that the CPLD isn't doing more than just patching in the correct manufacturer id.
As for the hardware, still waiting on a set of 16MB flash chips to arrive from the US. 4 weeks and counting.