Skip to main content
Angle
Associate III
July 27, 2022
Question

undeclared identifier error

  • July 27, 2022
  • 1 reply
  • 740 views

Hi, can i know how to solved this error?

0693W00000QMEeIQAX.png

    This topic has been closed for replies.

    1 reply

    ODOUV.1
    ST Employee
    August 2, 2022

    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