Skip to main content
Visitor II
October 8, 2008
Question

CAN PROBLEMS

  • October 8, 2008
  • 4 replies
  • 1106 views
Posted on October 08, 2008 at 08:08

CAN PROBLEMS

    This topic has been closed for replies.

    4 replies

    robosoftAuthor
    Visitor II
    May 17, 2011
    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

    robosoftAuthor
    Visitor II
    May 17, 2011
    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 ?

    Visitor II
    May 17, 2011
    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.

    robosoftAuthor
    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 09:56

    shame on me !