cancel
Showing results for 
Search instead for 
Did you mean: 

undeclared identifier error

Angle
Associate II

Hi, can i know how to solved this error?

0693W00000QMEeIQAX.png

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
ODOUV.1
ST Employee

Hello,

this SD1 is the first instance of serial driver corresponding to the first HW instance Linflex0 configured in serial:

0693W00000QMiMiQAL.png 

if you chose another HW instance in your application, your code must use another Driver instance too.

Look at the begining of serial_lld.c:

#if (SPC5_LINFLEX0_SETTING == SPC5_LINFLEX_MODE_SERIAL) || defined(__DOXYGEN__)

SerialDriver SD1;

#endif

#if (SPC5_LINFLEX1_SETTING == SPC5_LINFLEX_MODE_SERIAL) || defined(__DOXYGEN__)

SerialDriver SD2;

#endif

Best regards