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.

CCS/TMS570LS0432: Accessing CAN RAM

Part Number: TMS570LS0432


Tool/software: Code Composer Studio

So I want to you use the arbitration values from the sender to classify the message into different types of messages on the receiving side.

Am I able to access the can ram to look at the message I just received and access the ID?

Can I get a small code example of access canRAM1 with an offset to the ID or something?

Thanks!

  • Hello Brett,

    1. You can direct access the CAN message RAM in test mode. During Direct Access Mode, the Message RAM cannot be accessed via the IFx register sets. Ths is an example to direct access the message RAM:

    ptr = (unsigned int*)0xff1c0000;

    canInit();

    canREG2->CTL |= (1 << 7);

    canREG2->TEST |= (1 << 9);

    for (i=0; i<1000; i++){

    *ptr = 0x5a5a5A5A;

    ptr++;

    }

    2. You don't have to direct access the message RAM to check the message ID. You can set the filter to check the ID of incoming message.