Hi
I was experimenting with the RCC register and I wanted to set system clock to 16MHz using the external clock.
here is my code
SYSCTL->RCC &= 0xF02FF80F;
SYSCTL->RCC |= 0x080E2D41;
SYSCTL->RCC |= 0xFFFFFFFE;
while((SYSCTL->RIS & 0x00000100) != 0x00000100)
{
//wait until frequency is stable
}
SYSCTL->MISC |= 0x00000100;
I called this function in the beginning of main and then afterwards, every single time I program my Launchpad, I get an error and it would not program. I could not figure out what I did wrong. Please help
Thanks
AJ