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.

[参考译文] MSP432P401R:如何更改 SPI 驱动程序(在 project_zero 中将 UART 通信更改为 SPI 通信)

Guru**** 2540720 points
Other Parts Discussed in Thread: LAUNCHXL-CC2650, CC2650

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1030681/msp432p401r-how-to-change-spi-driver-change-uart-communication-to-spi-communication-in-project_zero

器件型号:MSP432P401R
主题中讨论的其他器件:LAUNCHXL-CC2650CC2650

你好。

首先、硬件如下所示:
MSP-EXP432P401R (MSP432 LaunchPad)
LAUNCHXL-CC2650 (SimpleLink CC2650 BoosterPack)

我们希望将 PROJECT_ZERO 中的 NPI 从 UART 更改为 SPI 并检查 BLE 操作。
CC2650侧已更改为支持 SPI。 (基于 E2E 支持论坛中的答案)
2.I 还将 MSP432侧从 UART 更改为 SPI。 (根据 E2E 支持论坛中的答案)
(1) PROJECT_ZERO 的源代码可在下面找到。
C:\ti\simplelink_sdk_ble_plugin_3_20_00_24\examples\rtos\MSP_EXP432P401R\Bluetooth\project_zero
(2)国家采购政策的来源见下文。
C:\ti\simplelink_sdk_ble_plugin_3_20_00_24\source\ti\npi
如果修改了 NPI 相关源、则会重建库。
(3)下面提供了 SPI 驱动器。
C:\ti\simplelink_msp432p4_sdk_3_20_00_06\source\ti\drivers
我正在使用 CCS 进行调试。

我想更改 SPI 驱动程序。
如果我更改 SPI 驱动程序、在使用 CCS 进行调试时、需要执行哪些操作来启用更改后的 SPI 驱动程序?

此致。

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

    您好!

    我想您可以检查是否需要在项目属性->构建-> MSP430编译器->包含选项中添加驱动程序路径。 然后在代码中添加#include "SPI driver.h"。

    此致、

    现金 Hao