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.

[参考译文] LAUNCHXL-F28379D:无法打开源文件"hw_memmap.h"

Guru**** 2538950 points
Other Parts Discussed in Thread: LAUNCHXL-F28379D, C2000WARE

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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1033913/launchxl-f28379d-cannot-open-source-file-hw_memmap-h

器件型号:LAUNCHXL-F28379D
主题中讨论的其他器件: C2000WARE

格雷廷斯。

目前、我正在尝试使用 CCS V10.4为 LAUNCHXL-F28379D 构建一个基本项目。

main.c 文件中的代码到目前为止仅为:

#include <F28x_Project.h>

int main(void)
{
    InitSysCtrl();


    return 0;
}

构建时、我遇到以下错误:无法打开源文件"hw_memmap.h"。

您能告诉我此页眉所在的位置吗? 我已经浏览了 C2000Ware \device_support\f2837xd\文件夹中的文件、但在那里找不到它。

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

    您好,

    您是否计划在该示例中使用 bitfield 或 driverlib API?

    对于 bitfield、文件"HW_memmap.h"位于 C:\ti\c2000Ware_3_04_00_00\device_support\f2837xd\con\弃 用\inc

    对于 driverlib、头文件"hw_memmap.h"位于 C:\ti\c2000Ware_3_04_00_00\driverlib\f2837xd\driverlib\inc 文件夹中。

    此致

    Siddharth

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

    您好 Siddharth。

    IM 主要用于位字段 API、但如果它使代码更易于编写、则不介意迁移到 driverlib。

    我尝试包括您提到的路径、但现在我遇到了许多错误:标识符"UINT16"未定义。 一个用于添加的头文件中定义的每个变量。
    如果我将 bitfield 或 driverlib 路径添加到工程的 include 选项、就会发生这种情况。 如果我直接将文件 hw_memmap.h 添加到工程文件夹中、也会执行相同的操作。

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

    您好!  

    请尝试添加以下包含路径:C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2837xd\headers\include\  

    并在 C 源文件中包含文件"F2837xD_DEVICE.h"

    为 driverlib 和 bitfield 提供了空项目、您可以使用这些项目开始开发。  

    位字段: C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2837xd\examples\cpu1\empty_bitfield_driverlib

    Driverlib: C:\ti\c2000\C2000Ware_3_04_00_00\driverlib\f2837xd\examples\cpu1\empty_projects

    此致

    Siddharth