2021-04-22 04:00 AM
In a Debug session, I pressed the 'Disconnect' button - and this happened:
This is on Win10-Pro, and using the ST-Link (converted to J-Link) on a B-L027Z-LRWAN1.
Is this a known deficiency, or should it work ?
What is (or should be) the difference between 'Disconnect' and 'Terminate' ?
2021-04-23 12:33 AM
Hello!
This is a known issue but it's not tracked in the known issue list in our release note since it can't be fixed from our side. It stems from J-Link not supporting this command. We will contact SEGGER to ask them to look into this and if they add support in a future version we might be able to fix it in an update.
2021-04-23 09:15 AM
Thanks.
Do you mean the J-Link-converted-from-ST-Link doesn't support this command?
Or j-Links in general do not support it?
It certainly is possible to disconnect from a running target using a "normal" J-Link with Segger Embedded Studio - maybe they just use a different command to achieve the same end?
2021-05-03 01:03 AM
We are in contact with SEGGER regarding this. The standard Eclipse button "Disconnect" sends a 'D' command to the GDB server which then need to disconnect in a proper way. They have confirmed that they don't support the 'D' packet (in either converted nor in general) so we are making a feature request to them at the moment.
I'm not sure what other command they might be using in order to get the same result. But if they have a similar functionality then perhaps we can make a special case while debugging with J-Link. I'm sure it will be brought up during our discussions if that's the case.