Other Parts Discussed in Thread: LMFLASHPROGRAMMER, EK-TM4C1294XL
Hi,
Iam using TM4C1294XL Launchpad and ICDI for debugging purpose.
I am suppose to write SysCtlClockFreqSet() function and 25MHz crystal freq. but I wrote SysCtlClockSet() function and 16Mhz crystal freq.
Below are the function calls -
SysCtlClockSet(SYSCTL_SYSDIV_5 |SYSCTL_USE_PLL |SYSCTL_XTAL_16MHZ | SYSCTL_OSC_MAIN); // Wrong instruction
SysCtlClockFreqSet((SYSCTL_XTAL_25MHZ |SYSCTL_OSC_MAIN | SYSCTL_USE_PLL | SYSCTL_CFG_VCO_480), 120000000); //Correct instruction
Now after loading the code with wrong instruction, board is not allowing to load any other code. Showing "CORTEX_M$_0: Flash Programmer: Erasing all of the flash contents failed !" this error while debugging.
How to resolve this problem?