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.

MCU-PLUS-SDK-AM273X: MCAN ISR doesn't work

Part Number: MCU-PLUS-SDK-AM273X


Hi,

About MCAN, I tried to porting MCAN driver to mmw demo. (refernece source code: mcu_plus_sdk_am273x_08_02_00_26\examples\drivers\mcan)

When MCAN transmit is running, it always hang at "SemaphoreP_pend(&gMcanTxDoneSem, SystemP_WAIT_FOREVER);" to wait for Tx completion.

I think MCAN ISR may not work.

Is there anything else to check?

Thanks.

mcuplus SDK version: 04_02_00_03

related configurations:

=========================

void App_mcanInit(void)
{
    int32_t                 status = SystemP_SUCCESS;
    HwiP_Params             hwiPrms;

    /* Construct Tx/Rx Semaphore objects */
    status = SemaphoreP_constructBinary(&gMcanTxDoneSem, 0);
    DebugP_assert(SystemP_SUCCESS == status);
    status = SemaphoreP_constructBinary(&gMcanRxDoneSem, 0);
    DebugP_assert(SystemP_SUCCESS == status);

    /* Register interrupt */
    HwiP_Params_init(&hwiPrms);
    hwiPrms.intNum      = APP_MCAN_INTR_NUM;
    hwiPrms.callback    = &App_mcanIntrISR;
    status              = HwiP_construct(&gMcanHwiObject, &hwiPrms);
    DebugP_assert(status == SystemP_SUCCESS);

    /* Assign MCAN instance address */
    gMcanBaseAddr = (uint32_t) AddrTranslateP_getLocalAddr(APP_MCAN_BASE_ADDR);

    /* Configure MCAN module */
    App_mcanConfig();

    /* Enable Interrupts */
    App_mcanEnableIntr();
}
=========================