2021-08-21 07:57 PM
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.
2021-08-22 11:36 PM
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.
2021-08-23 01:51 AM
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?