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.

[参考译文] CCS/TMS320F28335:如何将 SPI 代码连接到主代码

Guru**** 2609465 points
Other Parts Discussed in Thread: TMS320F28335

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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/686688/ccs-tms320f28335-how-to-interface-spi-code-to-the-main-code

器件型号:TMS320F28335

工具/软件:Code Composer Studio

您好!

我在 TMS320F28335中有一个串行 DAC 的示例代码。 但我无法将 SPI 文件添加为标头。  

错误显示为  

'"unresolved symbol_InitSpiaGpio、first referenced in ./28335_examplplecode.obj。"  

有人能不能建议解决这个问题。

谢谢!

Priya

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

    您好、Priya、

     DSP2833x_SPI.c 文件中提供了 InitSpiaGpio 函数。 您需要在项目中包含此文件。

    我不太理解您的意思、"我无法将 SPI 文件添加为标头。 "。 这是一个需要包含在项目中的源文件、与项目中的其他 c 文件类似。 您只需将该文件拖放到 CCS 项目中即可

    此致、

    Veena