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