All,
I am working with a custom board with a TM4C1233H6PZ with an external clock at 16MHz. I am using CCS v5.4 with the Stellaris ICDI.
The issue I have is that the chip hard faults as soon as I set the System Clock above 20MHz. If I run the exact same code minus a pinout change on the TM4C123GH6PM eval board, I can run the clock all the way up to 80MHz.
I believe this is the root of another issue I was seeing where I couldn't get the USB to work properly unless the system clock was below 20MHz. (Yes, I know the datasheet says the system clock must be at or above 20MHz.)
I wrote a simple test program for the clock issue I was seeing. And have attached it. Does anyone have any ideas?
Thanks,
Jed
/* * main.c */ #include <stdbool.h> #include <stdint.h> #include <stdio.h> #include "inc/hw_memmap.h" #include "driverlib/pin_map.h" #include "driverlib/gpio.h" #include "driverlib/sysctl.h" int main(void) { uint32_t g_SystemClockValue; SysCtlClockSet(SYSCTL_SYSDIV_10 | SYSCTL_USE_PLL | SYSCTL_OSC_MAIN | SYSCTL_XTAL_16MHZ); g_SystemClockValue = SysCtlClockGet(); SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOB); GPIOPinTypeGPIOOutput (GPIO_PORTB_BASE, GPIO_PIN_0 | GPIO_PIN_1); GPIOPadConfigSet(GPIO_PORTB_BASE, GPIO_PIN_0 | GPIO_PIN_1, GPIO_STRENGTH_8MA, GPIO_PIN_TYPE_STD); while(1) { GPIOPinWrite(GPIO_PORTB_BASE, GPIO_PIN_0, GPIO_PIN_0); SysCtlDelay(g_SystemClockValue/4); GPIOPinWrite(GPIO_PORTB_BASE, GPIO_PIN_0, 0); SysCtlDelay(g_SystemClockValue/4); } return 0; }