After updating KDS, KDS can not connect Segger J-Link

cancel
Showing results for 
Search instead for 
Did you mean: 

After updating KDS, KDS can not connect Segger J-Link

1,099 Views
Contributor II

I uses KDS 3.0.0, KSDK 1.2.0, and Windows 10.

After I updated KDS 3.0.0 by "check for update", the updated KDS can not connect to J-link. KDS popped up an connection error with J-link.

When I re-installed KDS 3.0.0, it works with J-Link.

At that time, I updated as following:

- Component Development Environment

- Component Development Environment Documentation

- GNU ARM C/C++ Cross Compiler

- GNU ARM C/C++ J-Link Debugging

- GNU ARM C/C++ OpenOCD Debugging

- GNU ARM PEMicro Interface Debugging Support

Attached is a picture of an update list.

Labels (1)
14 Replies

119 Views
NXP Employee
NXP Employee

Hi Jan,

I believe the issue comes from the J-Link probe itself. Do you know what firmware version is on your J-Link?

If it is this, it should ask you to update the firmware on the probe.

If not: you might need to update the firmware with the jlinkconfig executable (it is part of the J-Link package).

I hope this helps,

Erich

0 Kudos

119 Views
NXP Employee
NXP Employee

Hi Jan,

with 'updated' I thinkn you did install the 3.2 into its own folder/location, right?

Erich

0 Kudos

119 Views
Contributor V

Erich,

Well, I downloaded the .deb package and then typed `dpkg -i` to install it. Not sure what other ways there are to install it.

As for the J-Link firmware version, like I said, I'm not using a standalone J-Link. I have a FRDM-K22F loaded with JLink_OpenSDA_V2_1_2015-10-13.bin. Do you think that firmware version could pose a problem?

thanks,

--J.

0 Kudos

119 Views
NXP Employee
NXP Employee

Hi Jan,

I think that K22F firmware should not be a problem.

And that firmware is the latest one according to SEGGER - The Embedded Experts - OpenSDA / OpenSDA V2

I'm running out of ideas :-(

Erich

0 Kudos

119 Views
Contributor V

Eric, thanks for your help anyway.

For what it's worth, I just installed KDS 3.2.0 on Mac OS X, plugged in the FRDM-K22F with the same JLink_OpenSDA_V2_1_2015-10-13.bin firmware, and got the same error:

J-Link GDB Server failed:

Unknown error. Please use J-Link software v4.96f or later.

For more details, see the JLinkGDBServerCL console.

This Mac never had KDS installed, so this isn't about leftover files.

Has anybody actually tested this configuration? Is this a supported combination?

On a more general note — I use Kinetis processors in my designs, but there is an increasingly troublesome "Kinetis tax". Every couple of months I'm spending considerable time updating KDS or its components, updating the KSDK, learning about the changes, reading the release notes, trying to follow the (sometimes strange) instructions on fixing problems, encountering problems like the one described above, searching the net for solutions, asking questions, detailing configurations, trying out various combinations of files and versions. This engineering time lost is beginning to be noticeable as a considerable cost of using the NXP/Freescale Kinetis line.

119 Views
NXP Employee
NXP Employee

Hi Jan,

I just tried debugging FRDM K22F with mentioned Segger firmware on Mac 10.11.4 with clean installed KDS 3.2.0 and everything works fine. I tried project generated by NPW for KSDK 2.x. Could please specify your set up in more detail? Thank you.

Michal

119 Views
Contributor V

That's intriguing — my Mac setup is fresh (just installed KDS for the first time ever, I used to work in Linux under VMware) and should be the default.

I use Mac OS 10.11.4, a freshly installed KDS 3.2, and a FRDM-K22F with JLink_OpenSDA_V2_1_2015-10-13.bin.

Here's what I get and the options I use (I haven't changed any, so these are what KDS 3.2 sets up as defaults in a newly created project):

2016-04-07 at 10.10.png

2016-04-07 at 10.11.png

2016-04-07 at 10.11.png

It could be significant that I get exactly the same error message under Linux.

As another data point, I've just connected a FRDM-KL03Z and successfully ran a debug session using Segger/OpenSDA.

0 Kudos

119 Views
NXP Employee
NXP Employee

And have you tried windows? I mean do you have the option? Thanks

0 Kudos

119 Views
Contributor V

Not easily. But I did find a Windows machine, downloaded and installed KDS 3.2.0, connected the board, created a test project targeted for the FRDM-K22F (KSDK 1.x, because I didn't want to additionally go through the hoops of configuring and downloading KSDK) and tried running a program. The error message is different (error code 255), but the result is the same: can't debug FRDM-K22F using Segger/OpenSDA.

I hope you won't ask me for Windows screenshots…

0 Kudos

119 Views
NXP Employee
NXP Employee

Don't worry mate, I won't :smileyhappy: this whole problem is very strange... Is this reproducible only with Segger?

0 Kudos

119 Views
Contributor V

Well, at least P&E mode seems to work. I can use that for now, but I'm worried that later on my real J-Link won't work with production boards. Segger support in KDS seems to be on the flaky side, this is not the first time I'm seeing these kinds of problems (apparently others do too).

0 Kudos

119 Views
NXP Employee
NXP Employee

Hi Frank,

There is a long thread on this subject here: Unable to Debug after KDS Update

The issue comes with an incompatible update of the GNU ARM Eclipse plugins.

The best way is to have KDS V3.2 installed (see New Kinetis Design Studio v3.2.0 available ).

I hope this helps,

Erich

0 Kudos

119 Views
Contributor V

I'm in a similar situation. I updated KDS to 3.2.0 (Linux), connected a FRDM-K22F loaded with JLink_OpenSDA_V2_1_2015-10-13.bin and launched the default Segger debug configuration. This is what I get:

2016-03-31 at 15.36.png

0 Kudos

119 Views
NXP Employee
NXP Employee

Hi Frank,

I'd recommend to use KDS 3.2. It already contains updated version of Segger.

Regards

Marek

0 Kudos