Another debug launch and target program/erase failure......
I cannot get the debug or target-program/erase working, despite reading the many threads here on this subject.
Using a Nucleo F401 as a target (with built in ST-link), this can be accessed by the st-link util and Co-ide no problem.
Using system workbench I get.....
Error in final launch sequence
Failed to execute MI command:
-target-select remote localhost:3333
Error message from debugger back end:
localhost:3333: The system tried to join a drive to a directory on a joined drive.
localhost:3333: The system tried to join a drive to a directory on a joined drive.
For debug configuration I have tried the default script (lists it as nucleo_f401re.cfg), manual spec selecting ST-LinkV2 and ST-LinkV2-1 and manual script with the following:
source find interface/stlink-v2.cfg
set WORKAREASIZE 0x18000
transport select “hla_swd”
source find target/stm32f4x_stlink.cfg
reset_config none
All give the same error.
if I try a target->erase.....
I get the following error:
10:59:38 **** Erasing chip ****
“C:\Ac6\SystemWorkbench\plugins\fr.ac6.mcu.externaltools.openocd.win32_1.10.0.201607261143\tools\openocd\bin\openocd.exe” -f nucleo_f401re.cfg -s “C:\Ac6\SystemWorkbench\plugins\fr.ac6.mcu.debug_1.10.0.201607251855\resources\openocd\scripts\st_board” -s “C:\Ac6\SystemWorkbench\plugins\fr.ac6.mcu.debug_1.10.0.201607251855\resources\openocd\scripts” -c init -c “reset halt” -c “flash erase_sector 0 0 last” -c exit
Open On-Chip Debugger 0.10.0-dev-00270-g7ec9836 (2016-05-18-14:26)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Info : auto-selecting first available session transport “hla_swd”. To override use ‘transport select ‘.
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
adapter speed: 2000 kHz
adapter_nsrst_delay: 100
srst_only separate srst_nogate srst_open_drain connect_assert_srst
srst_only separate srst_nogate srst_open_drain connect_assert_srst
Info : Unable to match requested speed 2000 kHz, using 1800 kHz
Info : Unable to match requested speed 2000 kHz, using 1800 kHz
Info : clock speed 1800 kHz
Error: open failed
in procedure ‘init’
in procedure ‘ocd_bouncer’
10:59:38 Build Finished (took 291ms)...page...
I have noticed that every time I do this it creates a new debug script with a default script but the config script says “SCRIPT NOT FOUND”.
Any ideas? I am trying to migrate from Co-ide but so far this a show stopper...:(
ps. how do you block quote on this forum? It would make my post much easier to read......
EDIT: forgot to say, win7 with a clean, up to date installation as of yesterday.