HI,
I'm working on a university school project and am very new to PCB design. We've began to create a custom PCB and are attempting to debug the custom board with an XDS100v2 emulator. From what we can tell we have our pinouts correct. There are 10k pullups on the TDI and TDO lines. When we first began debugging the controller with the JTAG we did get it to download and break on main. However after we stopped the debug session (we didn't step at all in CCS) we can no longer establish the JTAG connection.
We always get the following error no matter how we connect including in UNIFLASH.
"Error connecting to the target:
(Error -121 @0x0)
A bad controller has been given to a function, either before attempting to open the controller, or after having opened the controller and ignored its error status. Valid controller handles are generated when attempts to open the controller return a clean error status. (Emulation package 5.1.507.0)"
I'm worried that the first line of code in our test program may have cause the controller to switch to a crystal configuration that doesn't work. The first line of the program is:
SysCtlClockFreqSet((SYSCTL_XTAL_25MHZ | SYSCTL_OSC_MAIN | SYSCTL_USE_PLL | SYSCTL_CFG_VCO_480), 120000000);
Is there any way I can erase the program externally and maybe get back to the state of a blank controller where we could debug in the first place?
Any insight will be helpful here.
Thanks!