A question about the S32DS generation code

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

A question about the S32DS generation code

ソリューションへジャンプ
2,005件の閲覧回数
reboot_MCU
Contributor I

Snipaste_2022-11-16_14-52-41.png

In the red box is the one I want to create for(;;) loop, but I can't build him because of the auto-generated loop part below, unless it contains break; Please how can I do to create a for(;;) or while(1) without causing the auto-generated loop below to report an error?

0 件の賞賛
返信
1 解決策
1,956件の閲覧回数
mikedoidge
NXP Employee
NXP Employee

Hello,

I suspect when you say export to IAR compiler, what you are doing is exporting the project from S32 Design Studio IDE to the IAR EW IDE. The compiler is used by both IDEs. When you create the project by the method you described, where you select the IAR compiler, this is the best way to prepare the project for use in IAR EW. It minimizes the changes required to adapt it to the IAR EW as it is already setup to use the IAR compiler.

Best regards,

Mike

元の投稿で解決策を見る

0 件の賞賛
返信
5 返答(返信)
1,984件の閲覧回数
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

Could you provide which version of S32DS you are working with? As well as the SDK/RTD you are using.

Please, let us know, for us to continue improving our answer

0 件の賞賛
返信
1,983件の閲覧回数
reboot_MCU
Contributor I

SDK.pngversion.png

Maybe there is a problem with my settings, but I still don't know where the problem is, if you have a solution or idea, please let me know, thank you.

0 件の賞賛
返信
1,971件の閲覧回数
mikedoidge
NXP Employee
NXP Employee

What is the error that is being reported?

If you check the example projects, many of them have such for(;;) loop as you have done and there is no error. Most likely it is caused by some other issue.

0 件の賞賛
返信
1,967件の閲覧回数
reboot_MCU
Contributor I

toolchain.png

    First of all, thank you for your reply.

    When I create a new project, this error occurs if I select IAR's cross-compile tool, and if I export this project to the IAR compiler, this error is converted into a warning.

    If I had chosen other cross-compilation tools, this problem would not have arisen, and I suspect that the same should be true for instance projects. As for why this problem arises, I still need some time to figure it out.

    Finally, I would like to ask you again. If I don't choose IAR's cross-compile tool, will it make any difference when I port my project to the IAR compiler?

    Thank you

0 件の賞賛
返信
1,957件の閲覧回数
mikedoidge
NXP Employee
NXP Employee

Hello,

I suspect when you say export to IAR compiler, what you are doing is exporting the project from S32 Design Studio IDE to the IAR EW IDE. The compiler is used by both IDEs. When you create the project by the method you described, where you select the IAR compiler, this is the best way to prepare the project for use in IAR EW. It minimizes the changes required to adapt it to the IAR EW as it is already setup to use the IAR compiler.

Best regards,

Mike

0 件の賞賛
返信