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: Trouble receiving CAN messages

Part Number: TMS320F28379D


Tool/software:

Hello I am new to TI's MCUs and I am trying to receive a CAN message being sent from a MCP 2515 using the program below. I was sure to define the _LAUNCHXL_F28379D to my predefined symbols and I have attached relevant code and a copy of my .syscfg file below. I have tried looking at the debugging tips provided in sprace5a; however, I have not been able to find anything that may resolve my issue. Help would be greatly appreciated.

//
// Included Files
//
#include "board.h"
#include "c2000ware_libraries.h"


volatile unsigned int recievedData = 0;

//
// Main
//
void main(void)
{

    //
    // Initialize device clock and peripherals
    //
    Device_init();

    //
    // Disable pin locks and enable internal pull-ups.
    //
    Device_initGPIO();

    //
    // Initialize PIE and clear PIE registers. Disables CPU interrupts.
    //
    Interrupt_initModule();

    //
    // Initialize the PIE vector table with pointers to the shell Interrupt
    // Service Routines (ISR).
    //
    Interrupt_initVectorTable();

    //
    // PinMux and Peripheral Initialization
    //
    Board_init();

    //
    // C2000Ware Library initialization
    //
    C2000Ware_libraries_init();

    //
    // Enable Global Interrupt (INTM) and real time interrupt (DBGM)
    //
    EINT;
    ERTM;

    CAN_startModule(myCAN0_BASE);
    uint16_t rxMsgData[8];

    while(1)
    {
        if (CAN_readMessage(myCAN0_BASE, 2, rxMsgData))
            recievedData = 1;
    }
}

//
// End of File
//