I have received some code which I have to maintain. To do this I will be using IAR embedded workbench. Since it is my first time I am watching some tutorials like Getting Started with IAR Embedded Workbench
Now if you look at minute 4.32, you can see that there are two green lines. One in the code area and one in the disassembly area. You can go between one and the other
In my case there is only one! green line (in the disassembly area) and no matter what you do you can not go to the code area. You can not set breakpoints either (well you can but when you run the program they are deactivated)
I don't think this can be find in the getting started guides so I am asking the help of someone experienced in IAR
Why would this be happening and how can I debug my program?
Thanks for any comment help or idea
-
Do you have optimizations on (compiler settings) and have you included debug information (linker settings)?user694733– user6947332016年10月20日 07:08:35 +00:00Commented Oct 20, 2016 at 7:08
-
I would suggest doing a clean and rebuild of your project. It sounds like IAR doesn't have the proper link between disassembly and your source files. I've seen this happen if projects are moved or copied to a new location without a clean and rebuild.rjp– rjp2016年10月20日 23:40:08 +00:00Commented Oct 20, 2016 at 23:40
-
This would happen if there is no debug info in the compiled code, or if the debugger fails to find the source files. Do you have any source code in the disassembly window?JesperE– JesperE2016年11月18日 09:05:31 +00:00Commented Nov 18, 2016 at 9:05
1 Answer 1
The following solved this issue for me after hours of searching myself:
Hope no one else gets stuck with this one