eclipse-plugins icon indicating copy to clipboard operation
eclipse-plugins copied to clipboard

Disconnecting J-Link after the run session is successfully initiated

Open bremenpl opened this issue 9 years ago • 12 comments

Hello there, I am happy to see the project migrated to github, the new site is great as well :)!

I would like to bring up front the case with automatic disconnect feature after successful run again. I am working heavilly with you plugin now and I notice that this feature would be really usefull and would improve work a lot (at least in my opinion). I was wondering either it would be possible for you to add a checkbox in the debug configuration maybe so that after checking it, after a run configuration is used, JLINK would automatically disconnect from target?

The plugin is great at this point, so thank you anyways :).

bremenpl avatar Oct 08 '15 06:10 bremenpl

Thank you for the suggestion.

You mean to disconnect from the target, and leave it running? I thought that, if the target is running, it will remain running, and this should already be implemented. I don't know what should happen if the target is halted, I'm not sure it should continue or not.

ilg-ul avatar Oct 08 '15 07:10 ilg-ul

At the moment when you use run configuration (not debug) the target is being programmed but jlink remains connected. If I want to run another run session I need to disconnect first, it doesnt disconnect automatically- thats what I mean.

bremenpl avatar Oct 08 '15 07:10 bremenpl

Ah, ok, that's a bit different, I'll investigate.

ilg-ul avatar Oct 08 '15 07:10 ilg-ul

Thank you :). I really think this is an usefull feature.

bremenpl avatar Oct 08 '15 07:10 bremenpl

This is a screenshot of what I mean:

scrn

I have to disconnect manually at the bottom and also adress 0x0 tab is being opened (not always but mostly yes).

bremenpl avatar Oct 08 '15 07:10 bremenpl

I tried to find a solution for this, but things are quite complicated, I'm afraid I have no time now for it.

ilg-ul avatar Oct 27 '15 22:10 ilg-ul

I understand. Too bad but thank you for the efford :).

bremenpl avatar Oct 28 '15 07:10 bremenpl

I have a question though- have you thought maybe about looking at the problem from a bit different angle? Wouldnt it be esier at every point, if run configuration would not connect at all? What if run configuration would simply program the target and reset it? Couldnt run configuration use a flasher script to program the target? All problems regarding disconnecting and killing processes would dissapear. And the most importantly, the functionality of a run config would stay the same.

bremenpl avatar Oct 28 '15 08:10 bremenpl

implementing the Run configuration was just a quick and dirty kludge, it uses exactly the same infrastructure as the Debug configuration, just that it disables breakpoints, so it cannot stop.

of course better solutions are available, but they definitely require more time to implement.

if you provide functional pull requests, I can consider integrating them.

ilg-ul avatar Oct 28 '15 08:10 ilg-ul

I was considering it really, but all Ive ever written in java is hello world :p.

bremenpl avatar Oct 28 '15 08:10 bremenpl

Java itself is not a big problem, Eclipse helps a lot when developing Java code; much more difficult is to understand the Eclipse framework, even more complicated is CDT, and much more difficult is DSF, the debug framework.

ilg-ul avatar Oct 28 '15 09:10 ilg-ul

In that case its even more not me... Anyways, I really apreciate you help and feedback. Im gratefull for the way it works now :). For the time being, before you find the time ill just add mysalge an external tool script.

bremenpl avatar Oct 28 '15 09:10 bremenpl