Hello,
I use TMS570LS20216 USB Kit and Halcogen3.05 test DCAN, there is my Halcogen configuration:
Here is my main code:
canInit();
while(1)
{
if(canIsTxMessagePending(canREG1, 1) == 0)
{
for(i = 0; i < 8; i++)
{
g_ucCanTxData[i] += 1;
}
canTransmit(canREG1, 1, &g_ucCanTxData[0]);
}
for(i = 0; i < delay; i++)
;
if(canIsRxMessageArrived(canREG1, 2) != 0)
{
canGetData(canREG1, 2, &g_ucCanRxData[0]);
}
for(i = 0; i < delay; i++)
;
}
But when i use a CAN device to watch it's transmit data, the data ID is 2 and it is not a data frame but remorte frame.Also, it can't receive any data.
I don't kow the reason, am i use the function(canTransmit and canGetData) or configuration incorrect ?
Please help.
Thank you.
Regards
Node