Du nutzt PortC. Da fällt mir erstmal die Standardfrage ein: JTAG ist Disabled?