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.

[参考译文] AM5728:延迟计时器回调函数的 Sempaphore 发布

Guru**** 2465890 points
Other Parts Discussed in Thread: AM5728

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

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1474127/am5728-sempaphore-post-from-timer-call-back-function-being-delayed

器件型号:AM5728

工具与软件:

您好!  

我工作的是 AM5728 (C66x DSP 内核)上的应用。 我有一个任务在20us 计时器上运行。 这意味着、当计时器每20us 中断一次时、回调函数会发布一个信标。 任务在信号量上挂起、其所有功能在20us 内完成。

随机地、观察到计时器回调函数中的信标在大约27-30us 后发布、而不是20us。  

如下面的快照所示、查看显示信标发布的红色迹线、在突出显示的粉色框中、一个信标发布在~30us 处、下面的一个正确出现在~10us 后(因为前一个信标延迟了10us)。 任何指向为何信标延迟近50%时间的指针? 应用中没有其他高优先级中断可能会阻止要处理的计时器回调函数。

谢谢

凹痕