Skip to main content
nooshin_1382
Associate III
August 4, 2015
Question

Bug On SPC560B50L5 UART Mode in SPC Studio

  • August 4, 2015
  • 1 reply
  • 585 views
Posted on August 04, 2015 at 17:40

Hi

I Want to Use LINFELX2 in uart mode in SPC560B50L5 but in HAL Driver Component Have 2 LINFLEX (LINFLEX0 and LINFLEX1) there is not exist LINFLEX2 OR 3 !!!!

Are Those driver's not supported or i can not use this Port ?

the other problem is i want to use LINFLEX0 with diffrent baud rate.

Ex: LINFLEX0 baud rate = 9600

And LINFLEX2 =115200

can i set 2 baudrate for every lin flex or not all linflex have same baudrate?

thanks

Best Regards

Nazerian Vanima
    This topic has been closed for replies.

    1 reply

    Erwan YVIN
    ST Employee
    August 5, 2015
    Posted on August 05, 2015 at 17:38

    Hello Vanima ,

    Yes , there is a bug in BCxx platform component

    i have create a Error report.

    the driver should handle Linflex 2 and Linflex 3.

    for the baudrate , you should define your own configuration :

    Example below : LINFLEX0 baud rate = 9600

    And LINFLEX2 =115200(NULL means default configuration)

    /**

    * @brief Driver default configuration.

    */

    static

    const

    SerialConfig your_config = {

    9600

    ,

    SD_MODE_8BITS_PARITY_NONE

    };

    /*

    * Activates the serial driver 1 using the driver default configuration.

    */

    sdStart(&SD1,&your_config);

    Best Regards

    Erwan