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.

TMS320F28388S: Unavailable to Initialize RAM for mcan

Part Number: TMS320F28388S
Other Parts Discussed in Thread: C2000WARE

Hello Slight smile

i cannot Initialize RAM for mcan,

my initialize code is..

SysCtl_setMCANClk(SYSCTL_MCANCLK_DIV_5);
SysCtl_enablePeripheral(SYSCTL_PERIPH_CLK_MCANA);


for(;i<200; i++)
__asm (" nop");


GPIO_setPinConfig(GPIO_30_MCAN_RX);
GPIO_setPinConfig(GPIO_31_MCAN_TX);

//
// Get MCANSS Revision ID.
//
MCAN_getRevisionId(MCANA_BASE, &revId);

//
// Wait for Memory initialization to be completed.
//
while(FALSE == MCAN_isMemInitDone(MCANA_BASE));

and then code stuck in while loop.

i can't see why this doesn't work :(

please do help.

and what's the difference between MCAN0 and MCANA?

it's really, really confusing

  • Are you running the C2000ware example "as is"? It is working fine for me. Which CPU are you trying to run the example from? M4 or CPU1? 

    Before running any code on the M4 processor, the file cm_common_config_c28x.c should first be executed. Did you do this?

    what's the difference between MCAN0 and MCANA?

    They are the same.