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.

SW-DK-TM4C123G: GPIOPinTypeGPIOInput triggers FaultISR

Part Number: SW-DK-TM4C123G

Hi:

I am writing a very simple piece of code to enable the GPIO on pin 4 of Port M. The code is below. To make sure, I created a new program that ONLY has the code below. The issue I am having is that the GPIOPinTypeGPIOInput function causes the FaultISR to be triggered and the program hangs in there

 GPIOIntRegister(GPIO_PORTM_BASE, PortMIntHandler);
 GPIOPinTypeGPIOInput(GPIO_PORTM_BASE, 0x10);
 GPIODirModeSet(GPIO_PORTM_BASE, GPIO_PIN_4, GPIO_DIR_MODE_IN);
 GPIOPadConfigSet(GPIO_PORTM_BASE, GPIO_PIN_4, GPIO_STRENGTH_2MA, GPIO_PIN_TYPE_STD_WPU);

Any ideas as to what am I missing here?

Thanks

Asad