大家好、我的板是 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 消息