cancel
Showing results for 
Search instead for 
Did you mean: 

Porting code from IAR to TrueStudio

allantommathew
Associate II
Posted on January 28, 2018 at 18:57

Hi,

I had been using IAR Embedded Workbench for programming and burning codes on STM32F7. Since the release of TrueStudio 9, I thought it would be wise to switch to a free version ahich has no code size limitations. Hence I installed and set up TrueStudio, created a new project, made initialization code with CubeMX (just like what I had done with IAR Embedded workbench) and copy-pasted my old code (the functional part) into the new project. After some editing I was able to compile the code and burn it. (I found the debugger not as smooth as the IAR one). The disappointment was when I discovered that the code, which was compiled and burned by IAR, works fine, but the one compiled and burned by TrueStudio, to the same hardware, doesn't work. (Note that the code and the hardware is the same).

Did I do something wrong? I have not worked with eclipse before. (To be honest, I was never successful in setting up the environment in eclipse). It would be good if someone could shed some light into this issue.

#workbench #truestudio-9.0 #truestudio-9 #truestudio #embedded #stm32f7 #stm #iar #stm32
12 REPLIES 12
Mattias Norlander1
Associate II
Posted on February 01, 2018 at 14:06

What error message do you receive?

Are you using low-power modes?

Posted on February 01, 2018 at 13:52

But OP said the debugger is 'throwing an error' - not just getting out-of-step.

-Og would be better than -O0.

AvaTar
Lead
Posted on February 02, 2018 at 10:24

I often got strange results when simply rebuilding a project containing separately build sub-projects (libraries).

A symptom of this issues is when the debugger seemingly executes empty lines, or comment lines in the source.

A clear + rebuild of all projects helped.