Hi,
I'm using TM4C123GH6PZ Controller in CCS 6.0.
When i run my code it is going to fault isr.
i have enabled peripherals as follows
SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOA); SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOB); SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOC); SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOD); SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOE); SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOF); SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOG); SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOH); SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOK);
GPIOPinTypeGPIOOutput(GPIO_PORTA_BASE,GPIO_PIN_0 | GPIO_PIN_2 | GPIO_PIN_3 | GPIO_PIN_4); GPIOPinTypeGPIOInput(GPIO_PORTA_BASE,GPIO_PIN_1| GPIO_PIN_6);
in a common.c file and included this file in my main file.
when i run my code its going into fault isr.
i followed http://www.ti.com/lit/an/spma043/spma043.pdf document and found that i'm getting "Hard Fault" for GPIO Port.
When i reinitialize port in main file the statement is passing in debug mode, otherwise it is going to faultisr.
please let me know where i'm going wrong.
Thank You.