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: cannot open source file "hw_memmap.h"

Part Number: LAUNCHXL-F28379D
Other Parts Discussed in Thread: C2000WARE

Greettings.

Currently I'm trying to build a basic project using CCS V10.4 for the LAUNCHXL-F28379D.

The code in the main.c file is so far is just:

#include <F28x_Project.h>

int main(void)
{
    InitSysCtrl();


    return 0;
}

When building, I get this error: cannot open source file "hw_memmap.h".

Can you point me to where this header is located? I've looked trough the files in my C2000Ware \device_support\f2837xd\ folders, but I couldn't find it there.

  • Hi ,

    Are you planning to use bitfield or driverlib APIs for the example?

    For bitfield , the file "hw_memmap.h" is located at C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2837xd\common\deprecated\inc

    For driverlib, the header file "hw_memmap.h" is located at C:\ti\c2000\C2000Ware_3_04_00_00\driverlib\f2837xd\driverlib\inc folder.

    Best Regards

    Siddharth

  • Hello Siddharth.

    Im mostly used to the bitfield API, but wouldnt mind migrating to driverlib if it makes code easier to write.

    I tried including the path you mentioned, but now I get many errors:identifier "Uint16" is undefined. One for each variable defined in the added headers.
    This happens wether I add the bitfield or driverlib path to the include options of the project. It does the same if I directly add the file hw_memmap.h into the project folder.

  • Hi, 

    Please try adding the following include path: C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2837xd\headers\include\ 

    And include the file "F2837xD_device.h" in your C source file

    There are empty projects provided for both driverlib and bitfield that you can use to get started. 

    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

    Best Regards

    Siddharth