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.

[参考译文] TM4C129 GPIO 提交问题

Guru**** 2394305 points


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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1084516/tm4c129-gpio-commit-problem

我在启用 PortD 上的 GPIO 下拉功能时遇到问题。 代码如下所示...

#ifdef 下拉菜单
   GPIO _Porte _AHB_LOCK _R = 0x4C4F434B;
   GPIO _Porte _AHB_PDR_= 0x3F;           //在 PE0-PE5上启动下拉功能
   GPIO _Porte _AHB_CR_R = 0x3F;

   GPIO _PORTD_AHB_LOCK_R = 0x4C4F434B;
   GPIO _PORTD_AHB_PDR_R = 0xF0;           // PD4-7上已激活下拉功能
   GPIO _PORTD_AHB_CR_R = 0xF0;
#endif

Porte 的代码有效,但当 PortD 引导程序到达最后一行时,它会关闭至 FaultISR()。 我错过了什么?

该代码正在 CCS 版本10.2.0.00009上使用 tivAware _c_series_2_1_4_178开发。 我知道有一个较新的版本,但我只能找到一个 exe,我的计算机是 Mac。

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

    你好,Andy,

    FaultISR 让我认为您在 尝试之前没有调用 SystlPeripheralEnable(sysctl_Periph_GPIOD)。 你可以检查一下吗?

    此致,

    拉尔夫·雅各比

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

    就是这样。 谢谢你。 我不能相信我错过了这一点。