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.

AM2634: MCAL driver on Eval Board (CanApp Example )

Part Number: AM2634

Hello,

I try to integrate the mcal driver. When I execute the CanApp driver I cannot see any messages on the bus. I just disabled the loopback test and let run the code. On the Port cfg file there are 47 ports configurated but there is no can related pins; also, the standby pin for receiver is not configurated.

Do you have the same issue?

Do I have to care another issue? I just want to run the CanApp code. 

Thanks

  • Hi

    Are you trying to use normal can use case instead of loop back method that is present in the MCAL package by default?? Is that what you're query is about?

    Thanks

  • I try to send can messages wits using external loopback.

     

    Fullscreen
    1
    2
    3
    4
    /* Enable loopback mode in CAN */
    Can_TestLoopBackModeEnable(Can_ConfigPtr->
    CanControllerList[cntr_cnt]->ControllerId,
    0U);
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    Here is enabled an internal loopback test. If this function is changed like this:

    Fullscreen
    1
    2
    3
    4
    /* Enable loopback mode in CAN */
    Can_TestLoopBackModeEnable(Can_ConfigPtr->
    CanControllerList[cntr_cnt]->ControllerId,
    1U);
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    then the test must be external loop test. this is not working. 

    On the other hand, I also tried the default CanExample_ExternalTest.I just executed the binary from the library.   And this is the output:

    CAN_TEST:MCAN Selected - CAN_CONTROLLER_INSTANCE_MCAN2 (cntr_cnt=1)
    CAN_TEST: Select one of the Mode
    CAN_TEST: i - for interrupt mode
    CAN_TEST: p - for polling mode
    CAN_TEST:Interrupt mode selected
    CAN_TEST: Can Controller:MCAN2 (cntr_cnt=1)
    CAN_TEST: Status: 1
    CAN_TEST: Enter one of the following
    CAN_TEST: t - to transmit data
    CAN_TEST: r - to receive data
    CAN_TEST: q - to quit the application

    CAN_TEST: e - for extended format
    CAN_TEST: s - for standard format
    sending message with standard ID

    This test never ends with test passed. 

    With an example code from Ti wichis made with SysCfg, I got the can messages on the can viewer:

    best regards

  • After setting the missing port setting in the port_PbCfg.c file;all the external can app tests are working