cancel
Showing results for 
Search instead for 
Did you mean: 

LIN use in spc560b60L3

souha
Associate II
Posted on June 01, 2015 at 17:08

Hello

I am using the spc560B60L3 100 pin package. For my application , I need to use 4 LINflex interfaces.

In the data sheet, it is mentioned that it supports 4 LINs.Can we use LIN4 and LIN5 or it only supports LIN0 up to LIN3?

Regards,
This discussion has been locked for participation. If you have a question, please start a new topic in order to ask your question
5 REPLIES 5
Erwan YVIN
ST Employee
Posted on June 02, 2015 at 15:42

Hello Souha ,

Yes , you can use LIN4 and LIN5 on LQFP100

To configure it ,

you have to set the PADSEL associated Table

cf screenshot on Pinmap Wizard

Best regards

Erwan

________________

Attachments :

2015-06-02_154111.png : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006qWct&d=%2Fa%2F0X0000000boR%2FhkrWYt4GfM1H5pOo8NwFGewvS7aMv1.dBP7oh_UiKRA&asPdf=false
souha
Associate II
Posted on June 02, 2015 at 16:59

Hello Erwan,

Thanks  for your response. Can I use LIN5 and LIN4 in serial mode? IN spc5studio when I activate this function it generates an error saying that it is not supported in spc560B60L3.

Regards,

Erwan YVIN
ST Employee
Posted on June 05, 2015 at 09:57

Hello Souha ,

You are right ;) There is a bug in SPC56BXX HAL Drivers you can update the file spc560b_registry.h to solve the issue :

#elif defined(_SPC560B60L3_)
#define SPC5_NUM_DSPI 3
#define SPC5_NUM_LINFLEX 6
#define SPC5_NUM_GPIO 77

We have submitted an error report for HAL drivers. it will be corrected asap on the official update site. Best regards Erwan
souha
Associate II
Posted on June 10, 2015 at 16:18

Hello Erwan,

 

By this update,only avoid errors in spc5 studio when LIN4 or LIN5 is activated. But it cannot be used as SCI. I tried to start serial communicaton (sdStart(&SD5,NULL)) after enabling linflex4 in serial mode, the code crashes. This is not the case when I use LIN0 up to LIN3.

Erwan YVIN
ST Employee
Posted on June 10, 2015 at 17:14 Hello Souha , There is a bug in spc5_linflex.h (SPC5-HAL) you should have :

#if SPC5_HAS_LINFLEX4 || defined(__DOXYGEN__)
#define SPC5_LINFLEX4 (*(struct spc5_linflex *)0xFFE50000UL)
#endif

it corrects the DATA ABORT. we will correct it in the next version of SPC5-HAL. Best regards Erwan