IAR Workbench Debug Externally Build S32K SW

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

IAR Workbench Debug Externally Build S32K SW

2,282 次查看
user8
Contributor I

I have S32K142 software that was written using Notepad++ and built into an .elf file using a makefile. I am able to use IAR Embedded Workbench for ARM 8.40 & pemicro multilink to flash the software. 

I imported the existing elf into IAR following these steps: Debugging an externally built executable file | IAR Systems

 

user8_0-1640198608560.png

 

I am able to "download and debug" the program using IAR and my PEmicro Multilink. The debugger initially stops at main() like I configured in the debugger options menu. I am able to resume and pause the debugger. The correct C file will pop up in the IDE with a line of code highlighted green. So the debugger is able to find the source files that are elsewhere in my PC that I used to build the elf file.

My question is how do I set breakpoints in the C code myself before I start the debugger? I have tried Project > Add Files and added the files I want to debug. However when I try to flash the HW, I get build errors from the newly added C files. I IAR is trying to build the C files added to the project.

Ideally I want to use Notepad++ and makefile to edit and build the source code. I just want to be able to set breakpoints and debug the code using IAR. Is my only option to create a new IAR project and import all the source files, linker, etc?

0 项奖励
回复
1 回复

2,268 次查看
Robin_Shen
NXP TechSupport
NXP TechSupport

Regarding how to use IAR, it is recommended to submit a Request technical support to IAR.
Sorry for not helping you.

Best Regards,
Robin

0 项奖励
回复