Skip to content

Commit

Permalink
Add NXP LinkServer definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
jld01 committed Aug 8, 2023
1 parent 9448058 commit a19a723
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: org.eclipse.cdt.debug.gdbjtag.core;singleton:=true
Bundle-Version: 10.7.0.qualifier
Bundle-Version: 10.8.0.qualifier
Bundle-Activator: org.eclipse.cdt.debug.gdbjtag.core.Activator
Bundle-Localization: plugin
Require-Bundle: org.eclipse.core.runtime,
Expand Down
2 changes: 2 additions & 0 deletions jtag/org.eclipse.cdt.debug.gdbjtag.core/plugin.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
# John Dallaway - ST-LINK extension, bug 558266
# John Dallaway - PyOCD extension, bug 574928
# John Dallaway - Black Magic Probe extension, bug 535143
# John Dallaway - NXP LinkServer extension (#496)
###############################################################################
launchConfig.name=GDB Hardware Debugging
pluginName=Eclipse GDB Hardware Debug Core Plug-in
Expand All @@ -28,6 +29,7 @@ AbatronBDI2000.name=Abatron BDI2000
BlackMagicProbe.name=Black Magic Probe
MacraigorUsb2Demon.name=Macraigor USB2Demon
GenericSerial.name=Generic Serial
NXPLinkServer.name=NXP LinkServer
OpenOCDPipe.name=OpenOCD (via pipe)
OpenOCDSocket.name=OpenOCD (via socket)
PEMicro.name=PEmicro
Expand Down
7 changes: 7 additions & 0 deletions jtag/org.eclipse.cdt.debug.gdbjtag.core/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,13 @@
name="%GenericSerial.name"
protocols="remote,extended-remote">
</device>
<device
class="org.eclipse.cdt.debug.gdbjtag.core.jtagdevice.NXPLinkServer"
default_connection="localhost:3333"
id="org.eclipse.cdt.debug.gdbjtag.core.jtagdevice.NXPLinkServer"
name="%NXPLinkServer.name"
protocols="remote">
</device>
<device
class="org.eclipse.cdt.debug.gdbjtag.core.jtagdevice.OpenOCDPipe"
default_connection="| openocd --pipe"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
/*******************************************************************************
* Copyright (c) 2008, 2023 QNX Software Systems and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* QNX Software Systems - Initial API and implementation
* John Dallaway - NXP LinkServer extension (#496)
*******************************************************************************/
package org.eclipse.cdt.debug.gdbjtag.core.jtagdevice;

import java.util.Collection;

/**
* @since 10.8
*/
public class NXPLinkServer extends DefaultGDBJtagConnectionImpl {

@Override
public void doHalt(Collection<String> commands) {
/* not supported */
}

@Override
public void doReset(Collection<String> commands) {
doResetAndHalt(commands);
doContinue(commands);
}

@Override
public void doResetAndHalt(Collection<String> commands) {
addCmd(commands, "monitor reset"); //$NON-NLS-1$
}

}

0 comments on commit a19a723

Please sign in to comment.