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?