Thursday, October 19th 2017, 7:09am UTC+2

You are not logged in.

  • Login
  • Register

Dear visitor, welcome to SEGGER Forum. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

mbacha

Beginner

Date of registration: Jun 16th 2017

Posts: 3

1

Friday, June 16th 2017, 1:44pm

[ABANDONED] J link gdb server problem

Hello guys,
I try to load my program on my ECU using j link but it says that :


WARNING: CPU could not be halted
ERROR: Could not connect to target.
Target connection failed. GDBServer will be closed...Restoring target state and closing J-Link connection...
Shutting down...
Could not connect to target.
Please check power, connection and settings.

but i used the same configuration with a discovery and it works (I've upgraded the st link on the discovery to a j link).
and thank you for your time

SEGGER - Niklas

Super Moderator

Date of registration: Oct 6th 2014

Posts: 1,684

2

Friday, June 16th 2017, 2:51pm

Hi,

could you please give J-Link Commander a try?
J-Link commander is part of the J-Link software package, which is available free of charge here .

  • Start J-Link Commander (jlink.exe)
  • Type "connect" in order to start a debug session
  • Type in the target device name if asked (Or type "?" for a target selection Dialog)
  • Choose the correct target interface (JTAG/SWD/etc..)
  • Use a valid speed (Default: 4000kHz, try 100-500 if default does not work)
  • [JTAG only]JTAG conf can be default(most of the times)
  • You should now be successfully connected.
If anything fails, could you please post a screenshot of the complete session?

What target device do you use?


Best regards,
Niklas
Would you like to be added to the J-Link software update notification list, so you get informed automatically when a new version becomes available?
Just write me a PM or in case you want to subscribe to it yourself, please use this link: Link
Notification for J-Link, J-Link Debugger, SystemView & J-Scope: Link
Notification for Embedded Studio: Link

mbacha

Beginner

Date of registration: Jun 16th 2017

Posts: 3

3

Friday, June 16th 2017, 3:38pm

This is what I got
mbacha has attached the following image:
  • Sans titre.png

SEGGER - Niklas

Super Moderator

Date of registration: Oct 6th 2014

Posts: 1,684

4

Friday, June 16th 2017, 6:16pm

Hi,


Version V5.10u is quite old.
Could you please give the current version of the J-Link software & documentation pack a try?
Please provide us with a screenshot of the session if the issue persists.


Best regards,
Niklas
Would you like to be added to the J-Link software update notification list, so you get informed automatically when a new version becomes available?
Just write me a PM or in case you want to subscribe to it yourself, please use this link: Link
Notification for J-Link, J-Link Debugger, SystemView & J-Scope: Link
Notification for Embedded Studio: Link

mbacha

Beginner

Date of registration: Jun 16th 2017

Posts: 3

5

Thursday, June 22nd 2017, 11:07am

It couldn't even launch j flash !!!
when i try to connect to my target the j flash didn't respond

SEGGER - Niklas

Super Moderator

Date of registration: Oct 6th 2014

Posts: 1,684

6

Friday, June 23rd 2017, 6:58pm

Hi,


as mentioned before, could you please give the most recent J-Link software & documentation pack a try and provide us with a screenshot of J-Link Commander and log files if anything fails?

Log output can be enabled like as follows:
  • Open a connection to J-Link, e.g start J-Link Commander
  • In J-Link Control Panel: (Click the J-Link symbol located in the notification / tray area in order to open J-Link Control panel)
  • Open the tab "Settings"
  • Next to the field "Log file" check "Override" and click "..." in order to choose a log file path.

This is also described in UM8001 Chapter 5 "Working with J-Link and J-Trace", Section 5.7 "J-Link control panel" .
This will enable the logfile permantly, also for feature sessions, regardless which programm uses the J-link DLL.


Best regards,
Niklas
Would you like to be added to the J-Link software update notification list, so you get informed automatically when a new version becomes available?
Just write me a PM or in case you want to subscribe to it yourself, please use this link: Link
Notification for J-Link, J-Link Debugger, SystemView & J-Scope: Link
Notification for Embedded Studio: Link