This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

8MHz (16MHz ok!?) cystal to a tm4c123gh6pz get "Bricked" => impossible to connect with XDS200 nor J-link

Other Parts Discussed in Thread: TM4C123GH6PZ

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