2018-01-28 09:57 AM
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 #stm322018-02-01 05:06 AM
What error message do you receive?
Are you using low-power modes?
2018-02-01 05:52 AM
But OP said the debugger is 'throwing an error' - not just getting out-of-step.
-Og would be better than -O0.
2018-02-02 01:24 AM
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.