Windows path check
This commit is contained in:
7
.vscode/setup.sh
vendored
7
.vscode/setup.sh
vendored
@@ -83,7 +83,8 @@ function setup_jlink_ps {
|
|||||||
if [ -z "$JLinkServerPath" ]; then
|
if [ -z "$JLinkServerPath" ]; then
|
||||||
export JLinkServerPath="c:/Program Files (x86)/SEGGER/JLink/JLinkGDBServerCL.exe"
|
export JLinkServerPath="c:/Program Files (x86)/SEGGER/JLink/JLinkGDBServerCL.exe"
|
||||||
fi
|
fi
|
||||||
if [ ! -x $(cygpath \"$JLinkServerPath\") ]; then
|
jlinkpath=$(cygpath "$JLinkServerPath")
|
||||||
|
if [ ! -x "$jlinkpath" ]; then
|
||||||
echo >&2 "[!!] JLinkGDBServerCL.exe not found, please set JLinkServerPath manually"
|
echo >&2 "[!!] JLinkGDBServerCL.exe not found, please set JLinkServerPath manually"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
@@ -107,10 +108,10 @@ function setup_linux {
|
|||||||
|
|
||||||
function setup_ps {
|
function setup_ps {
|
||||||
setup_serial_port
|
setup_serial_port
|
||||||
setup_gdb_ps
|
|
||||||
setup_jlink_ps
|
setup_jlink_ps
|
||||||
|
export DebuggerPath="Using ProxSpace gbd"
|
||||||
print_config
|
print_config
|
||||||
envsubst '${SerialPort} ${DebuggerPath} ${JLinkServerPath} ${DeviceMem}' <"$VSCODEPATH/templates/launch_ps.json" > "$VSCODEPATH/launch.json"
|
envsubst '${SerialPort} ${JLinkServerPath} ${DeviceMem}' <"$VSCODEPATH/templates/launch_ps.json" > "$VSCODEPATH/launch.json"
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ -f "$VSCODEPATH/launch.json" ]; then
|
if [ -f "$VSCODEPATH/launch.json" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user