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.
Hi TI ,
I wanted to know if you had any way of artificially recreating the following error scenarios mentioned in MCAN_IR ?
Thanks
Abhishek
Abhishek,
Please find my answers below:
Regards,
Praveen
Hi Praveen ,
Thanks for your suggestions , i have few more doubts
Thanks
Abhishek
Abhishek,
Please find my answers below:
Transmission Cancellation Finished , On Writes to MCAN_REGS.MCAN_TXBCR would in cancellation of pending bits in MCAN_TXBRP register but bit would not result in setting of TCF bit in MCAN_IR.TCF register.
Have you enabled the corresponding bit in MCAN_TXBCIE register? For the MCAN_IR to be set, this register has to be enabled
Protocol Error in Data Phase , On not connecting any receiving node i am observing Arbitration Protocol error but not Protocol Error in Data Phase anything that i can try for Protocol Error in Data Phase ?
Generating an error in the data phase is not very straight forward. However you can refer to this App note. This was built for DCAN, but can be used for MCAN as well while operating in classic mode.
I will get back to you on the other two questions tomorrow.
Regards,
Praveen
Bit Error Uncorrected , Do you have an sample code for accessing MCANERR_CTRL through MCANERR_VECTOR as what values to be written into ECC_VECTOR field, together with the RD_SVBUS trigger and RD_SVBUS_ADDRESS is not clear to me from the TRM.
Please follow the below steps to generate an ECC error:
You can use the MCAN_eccConfig function in the driverlib to enable/disable ECC.