mcuXpresso Jlink programmer for generic cortex-m4 project

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

mcuXpresso Jlink programmer for generic cortex-m4 project

Jump to solution
2,843 Views
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 Kudos
1 Solution
2,810 Views
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

View solution in original post

0 Kudos
6 Replies
2,811 Views
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 Kudos
2,430 Views
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 Kudos
2,835 Views
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 Kudos
2,821 Views
akbar123
Contributor III

Hi ErichS,

Yes, I did, but that did not help

0 Kudos
2,818 Views
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 Kudos
2,812 Views
akbar123
Contributor III

Hi,

I said the errors in my question post in red

0 Kudos