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.

TM4C123GH6PGE: Question on Blinky example project on DK-TM4C123G launcher pad

Part Number: TM4C123GH6PGE

Hi all, I am running a strange problem by running blinky example code on DK-TM4C123G launcher pad. First of all, to avoid confusion,  the original example code runs fine on this launcher pad board without any problem, the problem occurs when I changed the GPIO pin to PD7, the my code has a FaultISR error. Can anyone explain what is causing it? Here is my code (without minor alteration on the example project):

"

#include <stdint.h>
#include <stdbool.h>
#include "inc/hw_memmap.h"
#include "driverlib/gpio.h"
#include "driverlib/sysctl.h"

#define TEST_GPIO_PORT GPIO_PORTD_BASE
#define TEST_GPIO_PIN GPIO_PIN_7

//*****************************************************************************
//
//! \addtogroup example_list
//! <h1>Blinky (blinky)</h1>
//!
//! A very simple example that blinks the on-board LED.
//
//*****************************************************************************

//*****************************************************************************
//
// Blink the on-board LED.
//
//*****************************************************************************
int
main(void)
{
volatile uint32_t ui32Loop;

//
// Enable the GPIO port that is used for the on-board LED.
//
SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOG);

//
// Check if the peripheral access is enabled.
//
while(!SysCtlPeripheralReady(SYSCTL_PERIPH_GPIOG))
{
}

//
// Enable the GPIO pin for the LED (PG2). Set the direction as output, and
// enable the GPIO pin for digital function.
//
GPIOPinTypeGPIOOutput(TEST_GPIO_PORT, TEST_GPIO_PIN);

//
// Loop forever.
//
while(1)
{
//
// Turn on the LED.
//
GPIOPinWrite(TEST_GPIO_PORT, TEST_GPIO_PIN, TEST_GPIO_PIN);

//
// Delay for a bit.
//
for(ui32Loop = 0; ui32Loop < 200000; ui32Loop++)
{
}

//
// Turn off the LED.
//
GPIOPinWrite(TEST_GPIO_PORT, TEST_GPIO_PIN, 0);

//
// Delay for a bit.
//
for(ui32Loop = 0; ui32Loop < 200000; ui32Loop++)
{
}
}
}

"

Thanks!

Richard