Hi,
i am trying to create a demo application with the MCAL (01.04) to send a CAN signal and measure it on the CAN connector to the board for example with the oscilloscope.
In the mcal folder the is a example application ti\mcal_01_04_00_00\examples\Can\CanApp.c, i build it succesfully with the provided makefiles. The internal loopback test works fine, the output:
CanApp: Can Controller: DCAN1
CanApp: Test Passed
CanApp: Can Controller: MCAN1
CanApp: Test Passed
CAN Stack Usage: 3996 bytes
CAN Test Passed!!!
But i can't measure a signal on the connector, maybe because it's only an internal test?
If i set the macro APP_LOOPBACK_MODE to STD_OFF to start the external test only the following configuration works:
DCAN, polling mode, transmit, standard mode (extended mode works also)!
Interrupt/polling MCAN and DCAN in interrupt mode won't work, it stucks after printing "sending message with standard ID".
In debbuging mode (in polling mode) i can see, that it stucks in a while-loop ("poll Can_MainFunction_Write for TX confirmation").
In the Can_Mcan.c file it never enters the if-condition in line 1792-1797 to call the function CanIf_TxConfirmation(), so it stucks in the while-loop.
Is there any example based on MCAL to test and measure the CAN functionality of the board?
The Unit test of mmWave SDK works fine, i can measure a signal there, but we have to use MCAL to keep the automotive certification.
Switch S2 is enabled to CAN.
Thanks in advance.
Best Regards,
Sergej