Skip to main content
zeke.huang
Associate II
May 28, 2019
Solved

Code wait and stay alway.

  • May 28, 2019
  • 1 reply
  • 917 views

Hi,

The demo I use is SPC560BCxx_RLA CAN Test Applicaiont

Debug LOOP Mode is OK.

In Normal Mode, when I use can_lld_transmit to send CAN messages, the status returned is always CAN_MSG_WAIT. Can you help me analyze this problem?

A preliminary confirmation is that can_lld_is_tx_empty returns FALSE causing the whole problem.

The configuration inside Demo is just to remove the FlexCAN Enable LoopBack.

0690X000008wTdOQAU.png0690X000008wTd4QAE.png

Below is SFR:0690X000008wTdTQAU.png

    This topic has been closed for replies.
    Best answer by prashanth.mohan22

    Did you check connecting it with a CAN network? As well, if you are using a discovery board, you might need CAN transceiver in order to get CANH & CANL signals.

    1 reply

    prashanth.mohan22
    Associate III
    May 28, 2019

    Did you check connecting it with a CAN network? As well, if you are using a discovery board, you might need CAN transceiver in order to get CANH & CANL signals.

    zeke.huang
    Associate II
    May 29, 2019

    ok, thanks, i will check the CAN transceiver.