mcuXpresso Jlink programmer for generic cortex-m4 project

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

mcuXpresso Jlink programmer for generic cortex-m4 project

跳至解决方案
2,981 次查看
akbar123
Contributor III

Hi,

As described here, I could successfully program Cortex-M4 core of iMX8mq with segger JLink programmer via Jtag. This scenario was done in command line and now I want to do the same thing in mcuXpresso IDE.

I have created a generic Cortex-M4 project and have built it as the toolchain is arm-none-eabi-*. Now I want to create a debug configuration but it says:

"unable to find matching SEGGER J-Link device for "Generic-M4". please edit the launch configuration to add an appropriate device from the list of available devices"

When I click on OK, It says:

The launch configuration 'test Debug' is incompatible with this version of MCUXpresso IDE. Migrate the launch configuration to the supported format?

I click on yes, and it says:

Deprecated launch configuration attributes will not be migrated to the new attributes; the new attributes will be set to their default values.

After all these steps, when I want to debug project by click on the debug configuration, it says:

The launch configuration "test Debug" could not be migrated and it should be deleted

 

My question is that:

How to create a debug configuration for a generic Cortex-M4 project in MCUXpresso IDE? The debugger is SEGGER J-Link and I want to do the same thing described here in command line form BUT in MCUXpresso IDE with graphical features

 

Thanks in advance for your help

0 项奖励
1 解答
2,948 次查看
akbar123
Contributor III

I changed my approach and switched to eclipse IDE for C/C++ and installed embedded plugins like jlink programmer.

Creating a generic C project configured to work with cross compiler and jlink programmer was my solution, But with a different approach

在原帖中查看解决方案

0 项奖励
6 回复数
2,949 次查看
akbar123
Contributor III

I changed my approach and switched to eclipse IDE for C/C++ and installed embedded plugins like jlink programmer.

Creating a generic C project configured to work with cross compiler and jlink programmer was my solution, But with a different approach

0 项奖励
2,568 次查看
martindenion
Contributor II

Hi!
I am also trying to program the Cortex-M4 of an i.MX8M Mini.
From the J-Flash software, I'm able to connect in JTAG via a SEGGER probe but my debug configuration doesn't work. My goal is the same as you : debugging on the Cortex-M4 from MCUXpresso IDE (or from any other Eclipse IDE). Can you send me your configuration please ?Capture.PNG

0 项奖励
2,973 次查看
ErichStyger
Senior Contributor V

Hi @akbar123 ,

if you just pass just 'Generic M4' to the J-Link, it has no other important details about the core, things like memory mapping and the like.

Instead 'generic', have you tried passing MIMX8MQ6_M4 to the J-Link launch configuration here:

ErichS_0-1626596013983.png

 

?

I hope this helps,

Erich

0 项奖励
2,959 次查看
akbar123
Contributor III

Hi ErichS,

Yes, I did, but that did not help

0 项奖励
2,956 次查看
ErichStyger
Senior Contributor V

Hi @akbar123 ,

what kind of error message did you get? Can you post the output of the console view?

Erich

0 项奖励
2,950 次查看
akbar123
Contributor III

Hi,

I said the errors in my question post in red

0 项奖励