Debug for M4 in imx8

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

Debug for M4 in imx8

跳至解决方案
1,009 次查看
Txaflin
Contributor II

I need to "debug" an application for the M4 on an imX8. Is this possible? Can it be done using an IDE, such as MCUXpresso?

0 项奖励
回复
1 解答
956 次查看
Dhruvit
NXP TechSupport
NXP TechSupport

Hi @Txaflin,

I hope you are doing well.

Yes, It is possible to debug without IDE.

One can use J-Link GDB Server application to debug M4 core in i.MX8MM in the command line interface.

One can download it from https://www.segger.com/downloads/jlink/.

Please refer to 5.1 Linux OS host in Getting Started with MCUXpresso SDK for EVK-MIMX8 (Provided with SDK) to install the gcc toolchain, build, run & debug M4 core application.

Thanks & Regards,
Dhruvit Vasavada

在原帖中查看解决方案

0 项奖励
回复
5 回复数
974 次查看
_angelo_
Contributor III

M4 app can be written with all open tools, mainly gcc for cortex M and the ide you prefer, compiling by a simple makefile.
For startup .S files and linker scripts you can use those provided from the sdk, or write your own.

Also, i would not setup all jtag debugging if not really needed. Use some printf here and there to debug through the M4 uart console.

 

 

0 项奖励
回复
980 次查看
Txaflin
Contributor II

Thank you,

I'm using the i.mx8MM and I need to deploy an application for M4 Core.

The problem is that it is not possible for me to use IAR since I do not have a license.

Is it possible to configure any other IDE without a license?

0 项奖励
回复
957 次查看
Dhruvit
NXP TechSupport
NXP TechSupport

Hi @Txaflin,

I hope you are doing well.

Yes, It is possible to debug without IDE.

One can use J-Link GDB Server application to debug M4 core in i.MX8MM in the command line interface.

One can download it from https://www.segger.com/downloads/jlink/.

Please refer to 5.1 Linux OS host in Getting Started with MCUXpresso SDK for EVK-MIMX8 (Provided with SDK) to install the gcc toolchain, build, run & debug M4 core application.

Thanks & Regards,
Dhruvit Vasavada

0 项奖励
回复
952 次查看
Txaflin
Contributor II

Thanks!

I'll read and test this solution.

0 项奖励
回复
985 次查看
Dhruvit
NXP TechSupport
NXP TechSupport

Hi @Txaflin,

I hope you are doing well.

Yes, It is possible to debug i.MX8 using J-Link Plus.

One can use IAR Embedded Workbench ® for Arm and SEGGER J-Link software.

The IAR Embedded Workbench is an IDE
integrated with editor, compiler, debugger, and other components. The SEGGER J-Link software provides the driver for the J-Link Plus debugger probe and supports the device to attach, debug, and download.

Please specify the exact processor used for further info.

Thanks & Regards,
Dhruvit Vasavada

0 项奖励
回复