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.

TMS320F28379D: TMS320F28379D

Part Number: TMS320F28379D
Other Parts Discussed in Thread: C2000WARE

fatal error #1965: cannot open source file "inc/hw_memmap.h"

how do i  solve the issue ? on previous replies to the post the launchpads are different . how do i remove this error

  • Hi,

    This error indicates that the header file is not found , probably due to an incorrect or missing include path in the project settings.

    Please let me know the C2000Ware version that you are using.

    Also, are you trying to build an example provided within C2000Ware or a custom example. 

    Best Regards

    Siddharth 

  • hi ,

    im using the 4_03_000 version . also , this is a custom example . however when i load the same code in an example file there is another warning  that i am facing 


    #include "driverlib.h"
    #include "device.h"
    #include "F2837xD_device.h"
    #include "board.h"
    #include <stdio.h>
    #include <string.h>
    #include <stdlib.h>
    #include <math.h>
    #include "can.h"
    #include "gpio.h"


    #define TX_MSG_OBJ_ID 1
    #define MSG_DATA_LENGTH 8

    #define DEVICE_GPIO_CFG_CANTXB GPIO_17_CANTXB
    #define DEVICE_GPIO_CFG_CANTXB GPIO_12_CANTXB


    uint16_t txMsgData_1[8]={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08};


    void main(void)
    {
    Device_init();

    Device_initGPIO();
    GPIO_setPinConfig(DEVICE_GPIO_CFG_CANTXB);
    GPIO_setPinConfig(DEVICE_GPIO_CFG_CANRXB);

    CAN_initModule(CANB_BASE);


    CAN_setBitRate(CANB_BASE, DEVICE_SYSCLK_FREQ, 500000, 16);
    CAN_setupMessageObject(CANB_BASE, TX_MSG_OBJ_ID, 0x18FB47FF,
    CAN_MSG_FRAME_EXT, CAN_MSG_OBJ_TYPE_TX, 0,
    CAN_MSG_OBJ_NO_FLAGS, MSG_DATA_LENGTH);
    EINT;
    while(1)
    {
    CAN_sendMessage(CANB_BASE, TX_MSG_OBJ_ID, MSG_DATA_LENGTH, txMsgData_1);
    while(((HWREGH(CANB_BASE + CAN_O_ES) & CAN_ES_TXOK)) == CAN_ES_TXOK)
    {

    }

    DEVICE_DELAY_US(1000000);
    }


    }

    #48-D incompatible redefinition of macro "DEVICE_GPIO_CFG_CANTXB" (declared at line 106 of "C:/Users/joshu/workspace_v12/can_ex1_loopback/device/device.h"   

    i get this warning for the declaration of gpio pins 

  • Hi, 

    This warning is displayed since DEVICE_GPIO_CFG_CANTXB is already defined in device.h and you are redefining it in this code. 

    Regarding the other error, pls check if the include path in your project has this path "C:\ti\c2000\C2000Ware_4_03_00_00\driverlib\f2837xd\driverlib" added.

    Best Regards

    Siddharth