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.

[参考译文] TMS570LS3137:如何在 halcogen 中配置 SPI、以便通过 tms570ls3137中的 SPI 接收100字节的数据作为10字节的数据包?

Guru**** 2604225 points
Other Parts Discussed in Thread: HALCOGEN

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/748652/tms570ls3137-how-to-configure-spi-in-halcogen-in-order-to-recieve-100-bytes-of-data-as-ten-packets-of-ten-bytes-through-spi-in-tms570ls3137

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

我是一名初学者、请详细解释。 我的要求是通过 SPI 接收10个字节数据包(总共100字节)、并通过 CAN 发送相同的数据包。

 如何在 halcogen 中和 CCS 中配置此项?

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    您好!
    由于我不知道您的确切硬件设置、时序和用例、因此很难具体化。
    MIBSPI 模块可在 SPI 兼容模式或 MIBSPI 模式下工作。 可以使用这两种模式。 可能是您应该使用 MIBSPI 模式并使用传输组接收数据。 然后、CAN 函数可以读取存储在缓冲区数据中的数据并进行传输。
    请参阅器件的 TRM 以了解 MIBSPI 模块模式。 可在以下位置找到 TRM: www.ti.com/.../TMS570LS3137
    与 MIBSPI 模块和 CAN 模块一起使用的 API 由 HALCoGen 生成。

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

    kottapalli 您好、
    此外、HALCoGen 安装文件夹(..\ti\Hercules \HALCoGen\v04.07.00\examples\)下也提供了示例。
    在 HALCoGen 的帮助主题菜单下、描述了所有示例。

    您可以在这里找到非常有用的培训电影:training.ti.com/safety-critical-design-and-programming-hercules-tm-safety-mcus

    此致、
    米罗