I just replaced the "-O0" in my makefile with "-O3", and as soon as the code ran the JTAG debugger stopped working -- it reports "all ones" on the JTAG chain when it tries to connect.
Gnu tool chain.
Has anyone had this happen? Any clues on how to get functionality back? I suspect that I just need to replace the chip -- but that's a pain in the backside, and I don't want to do it too many times!! I'm going to put an escape hatch in the software, probably to come on before anything else at all is alive, but better ideas are welcome.