mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 14:42:11 +02:00
Bug 558266: Add ST-LINK definitions
Change-Id: I01bb9b09af6bc9b2f38169acc3ce29b2d87ccc1e
This commit is contained in:
parent
a4b27b3638
commit
8bafed71ec
4 changed files with 60 additions and 2 deletions
|
@ -2,7 +2,7 @@ Manifest-Version: 1.0
|
||||||
Bundle-ManifestVersion: 2
|
Bundle-ManifestVersion: 2
|
||||||
Bundle-Name: %pluginName
|
Bundle-Name: %pluginName
|
||||||
Bundle-SymbolicName: org.eclipse.cdt.debug.gdbjtag.core;singleton:=true
|
Bundle-SymbolicName: org.eclipse.cdt.debug.gdbjtag.core;singleton:=true
|
||||||
Bundle-Version: 9.4.0.qualifier
|
Bundle-Version: 9.5.0.qualifier
|
||||||
Bundle-Activator: org.eclipse.cdt.debug.gdbjtag.core.Activator
|
Bundle-Activator: org.eclipse.cdt.debug.gdbjtag.core.Activator
|
||||||
Bundle-Localization: plugin
|
Bundle-Localization: plugin
|
||||||
Require-Bundle: org.eclipse.core.runtime,
|
Require-Bundle: org.eclipse.core.runtime,
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
###############################################################################
|
###############################################################################
|
||||||
# Copyright (c) 2007, 2019 QNX Software Systems and others
|
# Copyright (c) 2007, 2020 QNX Software Systems and others
|
||||||
#
|
#
|
||||||
# This program and the accompanying materials
|
# This program and the accompanying materials
|
||||||
# are made available under the terms of the Eclipse Public License 2.0
|
# are made available under the terms of the Eclipse Public License 2.0
|
||||||
|
@ -14,6 +14,7 @@
|
||||||
# John Dallaway - migrate device extensions to core plugin, bug 538282
|
# John Dallaway - migrate device extensions to core plugin, bug 538282
|
||||||
# John Dallaway - SEGGER J-Link extension, bug 548281
|
# John Dallaway - SEGGER J-Link extension, bug 548281
|
||||||
# John Dallaway - PEmicro extension, bug 552597
|
# John Dallaway - PEmicro extension, bug 552597
|
||||||
|
# John Dallaway - ST-LINK extension, bug 558266
|
||||||
###############################################################################
|
###############################################################################
|
||||||
launchConfig.name=GDB Hardware Debugging
|
launchConfig.name=GDB Hardware Debugging
|
||||||
pluginName=Eclipse GDB Hardware Debug Core Plug-in
|
pluginName=Eclipse GDB Hardware Debug Core Plug-in
|
||||||
|
@ -28,6 +29,7 @@ OpenOCDPipe.name=OpenOCD (via pipe)
|
||||||
OpenOCDSocket.name=OpenOCD (via socket)
|
OpenOCDSocket.name=OpenOCD (via socket)
|
||||||
PEMicro.name=PEmicro
|
PEMicro.name=PEmicro
|
||||||
SeggerJLink.name=SEGGER J-Link
|
SeggerJLink.name=SEGGER J-Link
|
||||||
|
STLink.name=ST-LINK
|
||||||
Generic.name=Generic TCP/IP
|
Generic.name=Generic TCP/IP
|
||||||
|
|
||||||
launchDelegate.jtag.name=Legacy GDB Hardware Debugging
|
launchDelegate.jtag.name=Legacy GDB Hardware Debugging
|
||||||
|
|
|
@ -67,5 +67,10 @@
|
||||||
id="org.eclipse.cdt.debug.gdbjtag.core.jtagdevice.SeggerJLink"
|
id="org.eclipse.cdt.debug.gdbjtag.core.jtagdevice.SeggerJLink"
|
||||||
name="%SeggerJLink.name">
|
name="%SeggerJLink.name">
|
||||||
</device>
|
</device>
|
||||||
|
<device
|
||||||
|
class="org.eclipse.cdt.debug.gdbjtag.core.jtagdevice.STLink"
|
||||||
|
id="org.eclipse.cdt.debug.gdbjtag.core.jtagdevice.STLink"
|
||||||
|
name="%STLink.name">
|
||||||
|
</device>
|
||||||
</extension>
|
</extension>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
|
@ -0,0 +1,51 @@
|
||||||
|
/*******************************************************************************
|
||||||
|
* Copyright (c) 2008, 2020 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
|
||||||
|
* Andy Jin - Hardware debugging UI improvements, bug 229946
|
||||||
|
* John Dallaway - ST-LINK extension, bug 558266
|
||||||
|
*******************************************************************************/
|
||||||
|
package org.eclipse.cdt.debug.gdbjtag.core.jtagdevice;
|
||||||
|
|
||||||
|
import java.util.Collection;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @since 9.5
|
||||||
|
*/
|
||||||
|
public class STLink extends DefaultGDBJtagDeviceImpl {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getDefaultPortNumber() {
|
||||||
|
return "61234"; //$NON-NLS-1$
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void doDelay(int delay, Collection<String> commands) {
|
||||||
|
/* not supported */
|
||||||
|
}
|
||||||
|
|
||||||
|
@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$
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue