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.

[参考译文] AM263P4-Q1:有关使用 AM263P MCAL 10.01的 SPI 通信的问题

Guru**** 2452700 points


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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1498059/am263p4-q1-question-about-spi-comuniction-using-am263p-mcal-10-01

器件型号:AM263P4-Q1

工具/软件:

当使用 AM263PX MCAL 10.01中的 SPI 代码时、在调用该 Spi_SetupEB 函数后、程序将进入错误处理例程、如图所示。 为什么会发生这种情况? 可以在不修改上层代码的情况下解决此问题吗? (相同的代码在 Infineon TC377的 MCAL 环境下正常工作。)

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

    您好:

    您的 SrcDataBufferPtr 或 DesDataBufferPtr 不是32位对齐的。 请将其设置为32位对齐。

    谢谢、
    Gunjan

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

    您好:

    根据 AUTOSAR_SWS_SPIHandlerDriver.pdf、 数据缓冲区 必须与32位对齐。

    谢谢、
    Gunjan