Hi
I have a boad with a tm4c123gh6pz that has a 8MHz crystal, when I have the code below with SYSCTL_XTAL_8MHZ;
SysCtlClockSet(SYSCTL_SYSDIV_5|SYSCTL_USE_PLL|SYSCTL_XTAL_8MHZ|SYSCTL_OSC_MAIN);
SysCtlPeripheralEnable(SYSCTL_PERIPH_TIMER0);
//
// Wait for the Timer0 module to be ready.
//
while(!SysCtlPeripheralReady(SYSCTL_PERIPH_TIMER0)) {
}
After downloading and running upto the SysCtlClockSet function the debugger connection is lost and I haven't been able to connect after this.
I get the following error message;
Error connecting to the target:
(Error -1170 @ 0x0)
Unable to access the DAP. Reset the device, and retry the operation. If error persists, confirm
configuration, power-cycle the board, and/or try more reliable JTAG settings (e.g. lower TCLK).
(Emulation package 6.0.228.0)
On another board I have changed the crystal to one with 16MHz and the code to
SysCtlClockSet(SYSCTL_SYSDIV_5|SYSCTL_USE_PLL|SYSCTL_XTAL_16MHZ|SYSCTL_OSC_MAIN);
Then it works perfectly,
What is happening with the board that has a 8MHz crystal and the SYSCTL_XTAL_8MHZ setting in the code, and how can I "un-brick" this MCU?
We really want to use the 8MHz crystal so I really would like to solve this problem.
Best regards,
Anders