I am trying to use some unused pins on the EKS-LM4F232 eval kit. See the code below for specifics. I have two questions:
1) There is not much on PortK in the UG. What am I doing wrong?
2) The comments in FaultISR indicate that by looking at the system state, I can deduce what the fault was. How do you do that? The UG references [HMBU]FAULTSTAT, but I am not finding them in the register window.
I also get while loading:
CORTEX_M4_0: Trouble Reading Memory Block at 0x400ff000 on Page 0 of Length 0x4: Debug Port error occurred. Is it possible the memory map is incorrect?
-----------------------------------------------------------------------------------------
// Enable the port and enable PK0-3 as outputs
SYSCTL_GPIOHBCTL_R = 0x20;
GPIO_PORTK_DIR_R = 0x0F;
GPIO_PORTK_DEN_R = 0x0F;
// this last line jumps to
startup_css.c:
//*****************************************************************************
//
// This is the code that gets called when the processor receives a fault
// interrupt. This simply enters an infinite loop, preserving the system state
// for examination by a debugger.
//
//*****************************************************************************
static void
FaultISR
(void)
{
//
// Enter an infinite loop.
//
while(1)
{
}
}