Skip to main content
Iyoon.1
Associate
Apr 15, 2021 7:33 AM UTC
Solved

stm32cubef3 v1.11 build error in IAR IDE

I compiled the stemwin example of stm32cubef3 v1.11.0 with IAR v9.10. If the optimizations of the c/c++ compiler is high (size), there is no problem, but if it is None or Low, the following error occurs.

 stm32f3xx_hal_rcc.c  

 Tool Internal Error:  

 Internal Error: [AsmLine - OgAsm]: Error: Invalid shift amount    LSRS   R6,R6,#+0     

 Internal Error: [AsmLine - OgAsm]: Error: Invalid shift amount    LSRS   R6,R6,#+0     

How do I fix the error?

This topic has been closed for replies.
Andrew Neil
Andrew NeilBest answer
Super User
Apr 27, 2021 4:32 PM UTC

It's their error message - so they would be the best placed to understand what, exactly, would cause it to say that.

And you say there is no error when using an earlier IAR version - so you should at least be asking IAR what they've changed...?

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.

7 replies

Khouloud OTHMAN
Associate
Apr 22, 2021 10:57 PM UTC

Hi @Iyoon.1​ ,

First let me welcome you to the STM32 Community :smiling_face_with_smiling_eyes:

Thanks for posting your feedback. I doubt that this issue is related to the STM32CubeMX tool since you're using  stemwin example available in the STM32Cube firmware examples for STM32F3 Series. Please correct me if I have misunderstood.

Other topics has been added to this post, in order to increase its chance to be reviewed by our experts.

Hi @Imen DAHMEN​ , @Amel NASRI​ ,

Can you please help @Iyoon.1​  and provide a status on this reported issue.

Khouloud.

ST Technical Moderator
Apr 26, 2021 9:45 AM UTC

Hello @Iyoon.1​ ,

I cannot reproduce this error using IAR v8.50 when running the STemWin example with STM32CubeF3 v1.11.2:

STM32Cube_FW_F3_V1.11.2\Projects\STM32303C_EVAL\Applications\STemWin\STemWin_HelloWorld\EWARM

Which example are using ?

Can you please try to use previous version of EWARM, then keep me informed about your update.

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
Iyoon.1
Iyoon.1Author
Associate
Apr 26, 2021 11:09 PM UTC

No problem using IAR v8.50, but I 'm using IAR v9.10.

Andrew Neil
Super User
Apr 26, 2021 10:29 AM UTC

Have you contacted IAR about this?

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
Iyoon.1
Iyoon.1Author
Associate
Apr 26, 2021 11:12 PM UTC

The IAR has not been contacted yet because an error occurred in "stm32f3xx hal rcc.c".

Andrew Neil
Andrew NeilBest answer
Super User
Apr 27, 2021 4:32 PM UTC

It's their error message - so they would be the best placed to understand what, exactly, would cause it to say that.

And you say there is no error when using an earlier IAR version - so you should at least be asking IAR what they've changed...?

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.