cancel
Showing results for 
Search instead for 
Did you mean: 

Bug On SPC560B50L5 UART Mode in SPC Studio

nooshin_1382
Associate II
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 discussion has been locked for participation. If you have a question, please start a new topic in order to ask your question
1 REPLY 1
Erwan YVIN
ST Employee
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