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.

[参考译文] 编译器/TM4C123BE6PZ:HardFault_Handler

Guru**** 2330830 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/593717/compiler-tm4c123be6pz-hardfault_handler

器件型号:TM4C123BE6PZ

工具/软件:TI C/C++编译器


在 UART6通信中进行实验并使用 Keil 软件进行仿真。
我的单步运行到时
 GPIOPinTypeUART (GPIO_PORTD_base、GPIO_PIN_4|GPIO_PIN_5);
并输入到中
 GPIODirModeSet (uint32_t ui32Port、uint8_t ui8引脚、uint32_t ui32PinIO);
然后、程序被占用
 HWREG (ui32Port + GPIO_DIR)=((ui32PinIO 和1)?(HWREG (ui32Port + GPIO_DIR)|ui8引脚):(HWREG (ui32Port + GPIO_DIR)&~(ui8Pins))));
并输入到中
HardFault_Handler。

问题的原因是什么?

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    第一:这不是您的最后一个硬件故障。 您需要了解如何处理这些问题、本文档将帮助您:
    www.ti.com/.../spma043.pdf
    (起初很刺耳,但要勇敢和理解,答案就在那里)。
    在您的特定情况下、您很可能没有为 GPIO 端口 D 启用硬件