Skip to main content
Seonghwal Seo
Visitor II
June 30, 2017
Question

How can I solve the build error on demonstration project?

  • June 30, 2017
  • 4 replies
  • 984 views
Posted on June 30, 2017 at 10:46

When I try to build the demonstration project in C:\.....\STM32Cube_FW_F4_V1.16.0\Projects\STM32469I_EVAL\Demonstrations\EWARM,  the build error is appeared on the IAR EWARM v8.11.

The build error message is : Error[Li005]: no definition for '__iar_Sin' [referenced from pdm_filter.o(libPDMFilter_CM4_IAR.a)] 

How can I solve this problem?

Thanks.

    This topic has been closed for replies.

    4 replies

    ST Technical Moderator
    July 3, 2017
    Posted on July 03, 2017 at 16:27

    Hi

    Seo.Seonghwal

    ,

    I tested successfullythe Demo using

    IAR version 7.70 andSTM32Cube_FW_F4_V1.0.

    Try to test with an old

    IAR version (7.xx) this may resolve your problem.

    Regards

    Imen

    In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
    bbee
    Senior
    July 4, 2017
    Posted on July 04, 2017 at 08:20

    This also applies to any example project that uses precompiled libraries e.g. like STemWin because IAR changed its wchar_t size from 2 bytes to 4 bytes since IAR EWARM version 8.1x without any option to define the size in the project. Because of this one will get a lot of warnings because of different wchar_t sizes in object files.

    Adam BERLINGER
    ST Employee
    October 16, 2017
    Posted on October 16, 2017 at 13:12

    Hello,

    I had the same issue and this workaround worked for me:

    Go to 'Project' > 'Options' > 'Linker' > 'Extra options', check 'Use command line options' and add this to the command line options:

    --redirect __iar_Sin=sin�?

    This should basically replace __iar_Sin with sin function from standard library. But I don't know what exactly __iar_Sin is and why it was probably removed in new version of the IAR.

    Best regards,

    Adam