Other Parts Discussed in Thread: LMFLASHPROGRAMMER, , TM4C1294NCPDT, TPS2052B
I am in the process of debugging some PWM code, see here -
I added the code below to the PWM code above, as the last line of code -
/************************************************************************************************************************************/ /** @fcn void divsclk_init(void) * * @section Source * e2e.ti.com/.../1249830 * * @section Current Result * PQ4 toggles at T=6.235us for 174us, then the system hangs and PQ4/PF2/PF3 stop * This occurrence repeats at a period of about 21ms * * T=6.235us, N=100 * Tclk = 6.235/100 -> 62.35ns * Fclk = 16MHz * * I observe this to mean I have the wrong clock selected as the internal 16 MHz oscillator? */ /************************************************************************************************************************************/ void divsclk_init(void) { SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOQ); GPIOPadConfigSet(GPIO_PORTQ_BASE, GPIO_PIN_4, GPIO_STRENGTH_2MA, GPIO_PIN_TYPE_STD); GPIOPinConfigure(GPIO_PQ4_DIVSCLK); GPIODirModeSet(GPIO_PORTQ_BASE, GPIO_PIN_4, GPIO_DIR_MODE_HW); SysCtlClockOutConfig(SYSCTL_CLKOUT_EN | SYSCTL_CLKOUT_SYSCLK, 100); /* Divide by 100 */ return; }
Now my Launchpad hangs, and both Code Composer and LM Flash both cannot access the Launchpad!
- CCS Report: "Error connecting to the target. Frequency is out of range"
- LM Flash Report: "**ERROR**: Unable to find a target!
Questions
- How can I correct this, and resume debugging and programming of my Launchpad??
- Errr, what the heck is occuring here? What did I do to cause this and how can I correct it, while still outputting DIVSCLK to PQ4?
Didn't expect that one, sheesh! :(
