cancel
Showing results for 
Search instead for 
Did you mean: 

CAN PROBLEMS

robosoft
Associate II
Posted on October 08, 2008 at 08:08

CAN PROBLEMS

4 REPLIES 4
robosoft
Associate II
Posted on May 17, 2011 at 09:56

I have a microntoller (PIC) sending every 100mS a 8 bytes long message.

On STR912 side, I have defined a msgobject to receive this message.

The message I receive is sometimes (1 on 1000) corrupted.

It is always the same byte has the same incorrect bit.

Bitrate is on both sides 500K and is correct. I changed bitrate to 100KB with no result.

I am sure that the message on the CANbus itself is correct. I capture the CAN message with a PC with CAN card.

To receive message I use the CAN_Receivemessage() function of the ST-library (no interrupt is used).

Any idea what I could try ?

Is it necessary to call CAN_Releaseobject each time I call CAN_Receivemessage() ?

Luc

robosoft
Associate II
Posted on May 17, 2011 at 09:56

I decreased the PCLK to 48MHz. Problem seems to be solved...

Another item in the errata list ?

jonathan2
Associate II
Posted on May 17, 2011 at 09:56

Check out the datasheet. It clearly states the maximum frequency of PCLK is 48MHz in the electrical specifications section.

I know there's missing parts and ambiguities, but you should familiarise yourself with what is there.

robosoft
Associate II
Posted on May 17, 2011 at 09:56

shame on me !