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:TMS570LC4357

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1284297/tms570lc4357-tms570lc4357

器件型号:TMS570LC4357
主题中讨论的其他器件:HALCOGEN

我们已经设置了一些 ADC 通道并使用 HALCoGen adcInit ()、adcEnableNotification ()和 adcStartConversion ()函数启用了这些通道。  这些工作符合预期。

然后,我们使用 HALCoGen rtiInit ()和 rtiEnableNotification ()函数设置了一些 RTI。  这些命令通常按预期工作。

当我们从一个 RTI 触发的函数中调用 HALCoGen HL_SPI.c 函数时、这些函数与 ADC 中断和转换同时进行时开始出现问题。  我们看到的是,当 HALCoGen 函数 spiTransmitAndReceiveData ()从由 spiTransmitAndReceiveData ()中的实时中断(RTI)回调( rtiNotification ())数据(如 blockSize 参数)调用的函数时,该函数会被损坏(即将值1传递给它, 但随后它会损坏、导致其最终为一个非常大的数字、例如0x26000000)。  如果我禁用 ADC 中断或转换(不要调用 adcEnableNotification ()或 adcStartConversion(),那么它运行正常。  如果我在 RTI (主循环)外部调用 spiTransmitAndRecieveData(),那么它就可以正常工作。

这是 TMS570LC4357的限制还是某些设置不正确?

谢谢。

大卫

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

    尊敬的 David:

    我从未看到过这样的问题、  

    您能否与您提到的问题共享任何示例项目、以便我可以重现并执行必要的调试?

    --
    谢谢。此致、
    Jagadish。