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.

[参考译文] TMS320F28377D:尝试启用 DAC

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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1515096/tms320f28377d-trying-to-enable-dac

器件型号:TMS320F28377D
主题:C2000WARE 中讨论的其他器件

工具/软件:

你(们)好  

我尝试使用示例代码"buffdac_ex1_enable"并将 DAC 使能代码复制到我的原始工程、该工程也是一个 TI 示例:"adc_soc_epwm_tempsensor_cpu01"

在 "adc_soc_ePWM_tempsensor_cpu01"工程   中、我在"adc_soc_epwsensor_cpu01.c"中添加了#include "driverlib.h"和#include "device.h"。  

但只要我这样做,我看到这个错误:  

"C:/ti/C2000Ware_5_04_00_00/device_support/f2837xd/common/include/driverlib.h、第45行:致命错误#1965:无法打开源文件"inc/hw_memmap.h""

是否需要更改一些设置。 我相信我需要这些头文件来访问 DAC 配置.  

如果有人知道这一点,请你帮我。  

Sumit  

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

    您好 Sumit、

    [引述 userid="648063" url="~/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1515096/tms320f28377d-trying-to-enable-dac

    "C:/ti/C2000Ware_5_04_00_00/device_support/f2837xd/common/include/driverlib.h、第45行:致命错误#1965:无法打开源文件"inc/hw_memmap.h""

    [/报价]

    最简单的解决方案可能是将 Code Composer Studio 和 C2000WARE 重新安装到默认位置。  

    此致、

    Ben Collier