Who can support the CAN sample code to me? I don't find them in EK-TM4C129X.
In Tivaware, only CAN sample in EK-TM4C123G, but I build it on TM4C129X, it can't works good.
Thanks!
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.
Who can support the CAN sample code to me? I don't find them in EK-TM4C129X.
In Tivaware, only CAN sample in EK-TM4C123G, but I build it on TM4C129X, it can't works good.
Thanks!
@Tan,
What is not working good in the example? Does it not compile or data path is not working?
Amit
Amit,
Code can worked.
When code run and send data through CAN, will jump into “FaultISR(void)”. Read register by ICDI, “bus-off” was set, and “Transmit Error Counter” was full,” Last Error Code”=0x5.
A CAN analyzer connected to TM4C129X board by CAN wire, but can’t get any data.
@Tan,
Based on what I get from your post
1. The test code jumps to FaultISR
2. The Read of CAN register indicates that the line is always 0
Is that correct?
Now coming to the part of why CAN Analyser is not seeing any data on the TM4C129X. Have you checked if the correct IO's have been configured for CAN? Please note that Pin Mapping of TM4C123 and TM4c129 is different. So when you have taken the example code from TM4C123, please do make sure that the Pin Mapping is correct.
Also to add, there is a change in the configuration of system clock function. The new improved function replaces the older function of SysCtlClockSet. This is documented in the StellarisWare to TIVAWare documentation as well. Though this may not affect the code directly, but it may have a significant impact for proper execution. So you may want to correct this as well
Amit
Amit Ashara said:Also to add, there is a change in the configuration of system clock function. The new improved function replaces the older function of SysCtlClockSet. This is documented in the StellarisWare to TIVAWare documentation as well. Though this may not affect the code directly, but it may have a significant impact for proper execution. So you may want to correct this as well
Stellarisware? Is not TIVA and TIVAWARE the ek-tm4c123???
@Roberto
It is, but some code posts still use StellarisWare codes. It is important to change them to TIVAWare to make sure they remain usable going forward.
Amit