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.

[参考译文] LP-CC2652R7:CCS 主应用程序如何读取 SCS 读取的 ADC 值?

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

https://e2e.ti.com/support/wireless-connectivity/zigbee-thread-group/zigbee-and-thread/f/zigbee-thread-forum/1388571/lp-cc2652r7-how-can-the-ccs-main-application-read-the-adc-value-read-by-scs

器件型号:LP-CC2652R7

工具与软件:

我将这两行代码添加到 SCS 导出代码、它们​​在调试时具有值。

==================

volatile uint16_t sensorDataBuffer[buffer_size];
易失性 uint8_t writeIndex = 0;

==================

然后我在 CCS 的主应用程序中添加了这两行、但它们没有任何价值。

==================

extern volatile uint16_t sensorDataBuffer[buffer_size];
外部易失性 uint8_t writeIndex;

==================

我已确保 SCS 和 CCS 的代码都可以正常工作。

我只想知道如何在 SCS 中读取 ADC 值。

谢谢!

Gasen

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

    尊敬的 Gasen:

    您可能正在尝试将 SCS 项目资源添加到一个非 SC 集成的示例。  在 SCS GUI 中、转到"Code Generator"->"View output directory"并选择 scif_how_to_use.html 文档。  这将打开说明、说明如何添加将 SC 代码集成到现有 CCS 项目所需的所有 SCS 资源。  您还可以 从 SCS 文档中阅读固件框架说明。

    此致、
    Ryan