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.

AWRL1432BOOST: xWRL1432 MMWAVE-L-SDK\Examples and Demos\MCAN External Read Write: PCAN has Bus warning after PC sent a CAN FD message to EVM

Part Number: AWRL1432BOOST
Other Parts Discussed in Thread: SYSCONFIG

Hi, TI Team,

I run the MCAN External Read Write example on my xWRL1432 evm following the instruction as the link below. But PCAN has Bus warning after PC sent a CAN FD message to EVM as the attached picture.

xWRL1432 MMWAVE-L-SDK: MCAN External Read Write (ti.com)

I found there are different timing setting between PCAN and TI sysconfig. I am not sure if their timing setting should be fine tuned or not. But I can't find a matched timing setting for both.

How to troubleshoot it?

  

  • Hey Nelson,

    Thanks for reaching out regarding your question! The sysconfig timing parameters for the MCAN external read/write example should match the timing parameters in PCAN-View. I'm not sure why those parameters have changed in your sysconfig as I just verified the sysconfig in my SDK 5.3.0.2 is correct. Did you change any files or can you think of anything that might've caused this change? Identifying the root of this issue may help us prevent it from occurring again in the future.

    As for solutions, I would recommend either reinstalling the SDK or replacing the MCAN external read/write sysconfig with the one from the MCAN loopback DMA LLD. Let me know if that works for you or if you have any other questions.

    Regards,

    Kristien

  • After the syscfg file is rollbacked to the original version, the question is the same. 

    I found John's question(as below link) was the similiar case although I didn't wait too long so I just see the UART message below:

    [MCAN] External read - write test, application started ...
    After transmitting the messages, it will wait to recieve ten messages for test to pass ...

    After analyzing it, I also found as John the hanging code is SemaphoreP_pend(&gMcanTxDoneSem, SystemP_WAIT_FOREVER);


    How to troubleshoot it?

    IWRL6432BOOST: MCAN external read write demo passes without sending/receiving anything - Sensors forum - Sensors - TI E2E support forums

  • Hey Nelson,

    For now, I would recommend following John's thread if you are experiencing the same exact issue - i.e., driver demo states that the tests started and passed all tests. It does seem like something may be wrong with how the MCAN interrupt is initialized that is preventing the transmit semaphore from being posted in  the ISR. If you are experiencing a different issue, then you may reply to this thread. Additionally, it may be best to hold off on posting anything here and keep discussion regarding this semaphore issue on John's thread until its resolved. Thank you for linking his post by the way. 

    Regards,

    Kristien