cancel
Showing results for 
Search instead for 
Did you mean: 

The same application code , Copared to IAR, I have malfuncion after compiled by Stm32CueIDE.

ydong.1
Associate

I have a project, we have two sites working on it. One site using stm32cubeIDE, I use IAR.

Currently we met a problem, when compiled by IAR, program runs all fine. But using stm32CubeIDE to compile and downlod to run, some functions of the program failed

For example, the stepper motor, in IAR it can run smoothly without problems. But in Stm32CubeIDE, stepper motor can not run smoothly, can see obvioously stuck when running.

I can not find any clue about this, can anybody help to prompt to find a way to solv it.

2 REPLIES 2
TDK
Guru

It's going to be hard to diagnose what's going on with that amount of information. The two IDEs use different compilers, which can behave differently. The startup code will generally be different. Optimizations can have an effect.

If you want to debug it, focus on the non-working project and debug as normal. Look at signals coming out that are driving the motor and see how they are different from expectations. The IAR code could very well also have a debug even though it's working fine.

If you feel a post has answered your question, please click "Accept as Solution".
Markus GIRDLAND
ST Employee

I'm not an expert on the MCSDK stuff but like @TDK​ mentioned, it could be due to optimization. At least some files required -Ofast to run well. @Claire OKU​, do you have an idea of what this could be?