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.

Compiler/TM4C123BE6PZ: HardFault_Handler

Part Number: TM4C123BE6PZ

Tool/software: TI C/C++ Compiler


Conducting an experiment in UART6 communication and using KEIL software for simulation.
when I single-step ran to
 GPIOPinTypeUART(GPIO_PORTD_BASE, GPIO_PIN_4|GPIO_PIN_5);
and entered into
 GPIODirModeSet(uint32_t ui32Port, uint8_t ui8Pins, uint32_t ui32PinIO);
then the program stucked at
 HWREG(ui32Port + GPIO_O_DIR) = ((ui32PinIO & 1) ?(HWREG(ui32Port + GPIO_O_DIR) |ui8Pins):(HWREG(ui32Port + GPIO_O_DIR) & ~(ui8Pins)));
and entered into
HardFault_Handler.

What causes the problem?