So still have not uncovered the holy Grail…Tried several changes to StLinkUpLd_script.py
from os import pathImport("env")
platform = env.PioPlatform()
env.Prepend(
UPLOADERFLAGS = ["-s", platform.get_package_dir("tool-openocd") or ""]
)
env.Append(
UPLOADERFLAGS = ["-c", "program {{$SOURCE}} verify reset; shutdown"]
)
env.Replace(
#vvv---Compiles & builds OK but generates: 'openocd' is not recognized as an internal or external command,... error
#UPLOADER = "openocd",
#vvv---This kills the build & generates long error msg: (See below)...
UPLOADER = path.join(platform.get_package_dir("tool-openocd"), "bin", "openocd"),
#vvvv-- These don't work either...
#UPLOADER = path.join("Users","EdAndrews",".platformio","packages","tool-openocd","bin","openocd.exe"),
#UPLOADER = path.join(path,"tool-openocd","bin","openocd"),
#^^^^^-- These don't work either...
UPLOADCMD = "$UPLOADER $UPLOADERFLAGS"
)
When I run the “path,join(…” variant I get this build abort output error mess:
> Executing task in folder Marlin-2.0.x: C:\Users\EdAndrews\.platformio\penv\Scripts\platformio.exe run --target upload <
Processing LPC1769 (platform: https://github.com/p3p/pio-nxplpc-arduino-lpc176x/archive/0.1.2.zip; board: nxp_lpc1769; framework: arduino)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
TypeError: expected str, bytes or os.PathLike object, not NoneType:
File "C:\Users\EdAndrews\.platformio\penv\lib\site-packages\platformio\builder\main.py", line 166:
env.SConscript(item, exports="env")
File "C:\Users\EdAndrews\.platformio\packages\tool-scons\script\..\engine\SCons\Script\SConscript.py", line 597:
return _SConscript(self.fs, *files, **subst_kw)
File "C:\Users\EdAndrews\.platformio\packages\tool-scons\script\..\engine\SCons\Script\SConscript.py", line 286:
exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
File "C:\Users\EdAndrews\Documents\3D_PRINTER\Marlin-2.0.x\Marlin-2.0.x\StLinkUpLd_script.py", line 16:
UPLOADER = path.join(platform.get_package_dir("tool-openocd"), "bin", "openocd"),
File "C:\Users\EdAndrews\.platformio\python37\lib\ntpath.py", line 76:
path = os.fspath(path)
====================================================================================== [FAILED] Took 1.44 seconds ======================================================================================
Environment Status Duration
------------------------ -------- ------------
mega2560 IGNORED
mega1280 IGNORED
rambo IGNORED
FYSETC_F6_13 IGNORED
FYSETC_F6_14 IGNORED
sanguino644p IGNORED
sanguino1284p IGNORED
melzi IGNORED
melzi_optiboot IGNORED
at90usb1286_cdc IGNORED
at90usb1286_dfu IGNORED
DUE IGNORED
DUE_USB IGNORED
DUE_debug IGNORED
LPC1768 IGNORED
LPC1769 FAILED 00:00:01.440
STM32F103RC IGNORED
STM32F103RC_fysetc IGNORED
STM32F103RC_btt IGNORED
STM32F103RC_btt_USB IGNORED
STM32F103RC_btt_512K IGNORED
STM32F103RC_btt_512K_USB IGNORED
STM32F103RE IGNORED
STM32F103RE_btt IGNORED
STM32F103RE_btt_USB IGNORED
STM32F4 IGNORED
STM32F7 IGNORED
ARMED IGNORED
STM32F103VE_GTM32 IGNORED
STM32F103VE_longer IGNORED
mks_robin_mini IGNORED
mks_robin_nano IGNORED
mks_robin IGNORED
mks_robin_pro IGNORED
mks_robin_lite IGNORED
mks_robin_lite3 IGNORED
jgaurora_a5s_a1 IGNORED
STM32F103CB_malyan IGNORED
chitu_f103 IGNORED
STM32F401VE_STEVAL IGNORED
FLYF407ZG IGNORED
FYSETC_S6 IGNORED
STM32F407VE_black IGNORED
BIGTREE_SKR_PRO IGNORED
BIGTREE_GTR_V1_0 IGNORED
BIGTREE_BTT002 IGNORED
teensy31 IGNORED
teensy35 IGNORED
esp32 IGNORED
linux_native IGNORED
SAMD51_grandcentral_m4 IGNORED
rumba32_f446ve IGNORED
rumba32_mks IGNORED
include_tree IGNORED
================================================================================= 1 failed, 0 succeeded in 00:00:01.440 =================================================================================
The terminal process terminated with exit code: 1
Terminal will be reused by tasks, press any key to close it.
Still searching…Any other thoughts?