Using ERASE button as PIO on Due

Thanks for that, but that’s what I’m already doing, and as I said it (not the SYSIO12 part, of course) works for PC1.

Except I don’t disable pullup on all the PC pins (PIOC->PIO_PUDR = ~0UL;) - is it necessary?

Where does the 5 minutes come from? This might be the explanation for my troubles.