cancel
Showing results for 
Search instead for 
Did you mean: 

SPC574 CAN Problem

huang yiwei
Associate
Posted on March 07, 2018 at 09:14

I'm using SPC574K72E5 for CAN application, so I create a demo project SPC574Kxx_RLA CAN Test Application for Discovery and get nothing on CAN output. I have already choose the NO_LOOPBACK mode and select RX/TX pin in the pin map but the programe have problem at

returnvalue = can_lld_transmit(&CAND2, CAN_ANY_TXBUFFER, &txf);

returnvalue is always CAN_MSG_WAIT.

4 REPLIES 4
Erwan YVIN
ST Employee
Posted on March 07, 2018 at 14:47

Hello Huang ,

This message means that there is no txbuffer available.

 /*if txbuffer value is not assigned No tx buffer available */
 if (txbuffer == 0xFFU) {
 return CAN_MSG_WAIT;
 }�?�?�?�?

Have you configured correctly the CAN drivers ?

Check the TX Buffer

Best regards

Erwan

Posted on March 09, 2018 at 08:33

I use the Demo Project, the configuration should be right. And 

can_lld_transmit function can be excuted once, the next time it returns 

CAN_MSG_WAIT.

270284440
Associate III
Posted on March 21, 2018 at 04:24

did u add delay between CAN transmit? is there any receiver CAN node on bus.

Posted on April 04, 2018 at 06:18

I found the same issue, I guess it is a bug.

I add received node on bus ,not data show on CAN buss.

another question is:

SPC5Studio 5.7.2 dont support k2 CAN FD ,(8 bytes or 64 bytes)