Skip to main content
Mahesh Chamaraja
Associate II
January 25, 2017
Question

Based on FlexRay communication driver development for SPC564A80B4

  • January 25, 2017
  • 2 replies
  • 2221 views
Posted on January 25, 2017 at 14:58

Hello all,

We are facing some difficulties with FlexRay driver development for SPC564A80B4.

  • We can able to configure the Protocol Control Registers (PCR0~31) for FR configurations, so that ECU and FlexRay module successfully able to move to Normal Active state of Flexray communication.

  • Also message buffer configurations for Transmission and reception is also performed according to number slots.

  • Tool (CANalyser) is also configured with the same flexray configurations as ECU.

  • Now, when we are sending a frame from ECU in slot 64 (dynamic slot).

  • But we observed frame error/ SERR error in the CANlyser window, also payload length is observed as zero and slot ID is 64 is visible. (Please find the attached error snapshot SERR_error.jpg)

     

We would like to know what can be the possible reasons for this error.

Please let us know if any additional information is required.

Regards 

Mahesh C

#flexraycommunication-driver-development-for-spc564a80b4
    This topic has been closed for replies.

    2 replies

    Erwan YVIN
    ST Employee
    January 26, 2017
    Posted on January 26, 2017 at 16:05

    Hello Manesh ,

    According to the RM, in the chapter 33.4.2

    If the protocol engine is clocked by the internal PLL, the frequency of the PE clock source is

    system clock / 3. The system clock frequency has to be 120 MHz.

    Did you clock your protocol Engine Clock ? on-chip crytal simulator or PLL ?

    CLKSEL

    Protocol Engine Clock Source Select �? This bit is used to select the clock source for the protocol

    engine.

    0 PE clock source is generated by on-chip crystal oscillator

    1 PE clock source is generated by on-chip PLL

    Have you checked the different Status Register , Message Buffer Status Error and Channel A/B Status error?

        Best Regards

                           Erwan

    Mahesh Chamaraja
    Associate II
    January 27, 2017
    Posted on January 27, 2017 at 10:49

    Hello Erwan,

    We using ext-crystal osc of 40Mhz as a PE clock.

       0690X000006069wQAA.png0690X00000606A1QAI.png

    Erwan YVIN
    ST Employee
    February 1, 2017
    Posted on February 01, 2017 at 15:23

    Hello Mahesh ,

    it is often a question of configuration , timing settings.

    FlexRay is a difficult IP, with just bad timing setting , nothing can work.

    I am checking with experts.

       Best regards

                Erwan

    Erwan YVIN
    ST Employee
    February 2, 2017
    Posted on February 02, 2017 at 10:01

    Hello Mahesh ,

    Honestly , you should try to solve your clock configuration (loss of clock) first because a timing issue on Flexray ip could trigger some synchro issues.

    https://community.st.com/0D50X00009XkYOySAN

    Did you use official AutoSAR Flexray MCAL driver ?

    or it is your own driver ?

    Best regards

    Erwan

    Mahesh Chamaraja
    Associate II
    February 2, 2017
    Posted on February 02, 2017 at 13:48

    Hello Erwan,

    Our own driver

    Regards

    Mahesh