cancel
Showing results for 
Search instead for 
Did you mean: 

CAN Bus real world example?

gbigden
Associate III
Posted on February 09, 2016 at 14:29

Has anyone got any? Both under interrupt and polled?

All I can find are trivial examples that don't look for or handle errors

#stm32 #can
4 REPLIES 4
Amel NASRI
ST Employee
Posted on February 09, 2016 at 17:36

Hi bigden.gary,

What examples did you checked?

Depending on the product you use, you may find some examples on its STM32Cube FW package.

Ex: STM32Cube_FW_F4_V1.11.0\Projects\STM324xG_EVAL\Examples\CAN.

-Mayla-

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

Posted on February 10, 2016 at 00:17

No, I think he's looking for something a little more involved.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
gbigden
Associate III
Posted on February 10, 2016 at 10:27

As far as I can tell, I am doing everything right using the STM Peripheral Library when it comes to using CAN. However, unless I put ''magic number delay'' into the transmit status testing I am overwriting the Tx buffer and losing packets. I posted my code in a previous thread.

world04
Associate II
Posted on February 14, 2016 at 23:38

Well, i guess that nobody would send you his handler or code of the can bus handling. In most cases that this is a secret of the developer.