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.

[参考译文] TMS570LC4357:DMM GPIO 在 FreeRTOS 任务中不工作

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1479923/tms570lc4357-dmm-gpio-not-working-in-freertos-task

器件型号:TMS570LC4357

工具与软件:

在 main.c 中、我会将 DMM 的一个引脚初始化为输出、并按如下方式对其进行设置:

#define dmmREG (( dmmbase_t *) 0xFFFFF700U )

UINT32引脚屏蔽= 0;

dmmREG->GLBCTRL = 0x5;//在 GLBCTRL 中、开/关= 0101
pinMask |=( 1U <<12 );
dmmREG->PC0 &=~pinMask;//设置为 GIO
dmmREG->PC1 |=( 1U << 12 );//设置方向
dmmREG->PC4 =(1U << 12);//将引脚12设置为高原子性

而且它是有效的!!

我的问题是、当我尝试通过定期 FreeRTOS 任务设置相同的引脚时、会出现内存访问保护故障:
DataEntry
b 数据入口

我可以得到一些帮助吗?