ROM-Reader for Super Nintendo / Super Famicom Game Cartridges

sanni:
Try to replace the erase command block with this, basically just adding the " << 1":
// Erase flash
writeByte_GB(0x555 << 1, 0xaa);
writeByte_GB(0x2aa << 1, 0x55);
writeByte_GB(0x555 << 1, 0x80);
writeByte_GB(0x555 << 1, 0xaa);
writeByte_GB(0x2aa << 1, 0x55);
writeByte_GB(0x555 << 1, 0x10);

Then check if it gets erased now.

No change, and the erase happens very quick, which to me suggests nothing is actually happening. I emailed BennVenn to see if he had any thoughts and he stated that the standard WE pin on the cart edge is for bank control and whatnot, but any flash commands to be issued are using the Audio pin. To me it seemed the code that had the PH5 portions were only about issuing the flash commands, but is that not the case (ie does changing from the WR pin to the Audio pin in those sections also change what pin is used for bank control)?

Edit: He also suggested that using both pins at the same time wouldn’t upset the IC and thus might be an option, if bank control and the write commands are tied to the same pin in your code