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.

[参考译文] RM46L852:预编译 SPI 代码?

Guru**** 2391415 points
Other Parts Discussed in Thread: RM46L852, HALCOGEN

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1019998/rm46l852-prebuilt-spi-code

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

大家好、我知道这可能是一个非常愚蠢的问题。 我目前担任实习生、我的上司一直在尝试让 SPI 协议在 RM46L852处理器上工作。 我想知道是否有任何预编译的代码? 谢谢!

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

    您好!

    RM46上的串行通信支持常规 SPI 和多缓冲 SPI。 我建议您使用 HalCoGen 生成 SPI 驱动程序。 HalCoGen 是用于 Hercules 器件的代码生成工具:

    https://www.ti.com/tool/HALCOGEN

    HalCoGen 的帮助有一些示例。 在 TMS570LS12x_12x 文件夹中、您将找到一个示例:Example_SPI_master_slave.c 您可以将代码复制到 main()而不进行任何更改。