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?
已解决! 转到解答。
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
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.
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
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