Error: JTAG scan chain interrogation failed: all zeroes |
// disconnect/disable SCB_PLLCON = 0x0; SCB_PLLFEED = 0xaa; SCB_PLLFEED = 0x55; // configure CLKSRCSEL = 1; // Switch to main oscillator input (12 MHz) SCB_PLLCFG = (0x2 << 9) | 0x19; // Fcco=2*10*12/2=120 MHz SCB_PLLFEED = 0xaa; SCB_PLLFEED = 0x55; // enable SCB_PLLCON = 0x1; SCB_PLLFEED = 0xaa; SCB_PLLFEED = 0x55; // wait for lock while (!(SCB_PLLSTAT & (1 << 26))); // connect SCB_PLLCON = 0x3; SCB_PLLFEED = 0xaa; SCB_PLLFEED = 0x55; // set CPU clock to 120/6 = 20 MHz CCLKCFG = 5; |