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.

[参考译文] LP-AM263:mCAN_EXTERNAL_READ_WRITE 问题、卡在 SemaphoreP_PEND 中

Guru**** 1831610 points
Other Parts Discussed in Thread: LP-AM263
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1248588/lp-am263-problem-with-mcan_external_read_write-stuck-in-semaphorep_pend

器件型号:LP-AM263

大家好、我的板是 LP-AM263

当我尝试 mcan_external_read_write 示例时、我卡住了  "SemaphoreP_pend (&gMcanTxDoneSem、SystemP_WAIT_FOREVER);"

SDK:mcu_plus_sdk_am263x_08_06_00_34

MCAN_writeMsgRam(gMcanBaseAddr, MCAN_MEM_TYPE_BUF, bufNum, &txMsg);

        /* Add request for transmission, This function will trigger transmission */
        status = MCAN_txBufAddReq(gMcanBaseAddr, bufNum);
        DebugP_assert(status == CSL_PASS);
        DebugP_log("TX send\r\n");

        /* Wait for Tx completion */
        SemaphoreP_pend(&gMcanTxDoneSem, SystemP_WAIT_FOREVER);
        DebugP_log("pass\r\n");

控制台输出

我也不会在其他设备上收到任何 CAN 消息