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.

[参考译文] LP-AM243:读取GPIO时出现故障

Guru**** 2524460 points
Other Parts Discussed in Thread: AM2434, LP-AM243, SYSCONFIG

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1088774/lp-am243-trouble-with-reading-gpio

部件号:LP-AM243
主题中讨论的其它部件:AM2434,sysconfig

您好,

我是AM2434的新手,尝试获取在LP-AM243上运行的GPIO读取演示 -

演示尝试:

//Using J4.10 - GPIO1_2 (BP.31)

//Pin Def
uint32_t gpioBaseAddr = (uint32_t) AddrTranslateP_getLocalAddr(CSL_GPIO1_BASE);
uint32_t pinNum       = 2;

//Setup
GPIO_setDirMode(gpioBaseAddr, pinNum, GPIO_DIRECTION_INPUT);

//Read
uint32_t val = GPIO_pinRead(gpioBaseAddr, pinNum);

这不起作用,当我应用0V或3.3V时,我总是得到'0'的val。

如何使GPIO读取例程正常工作?