Fwiw, all the quotes look in order in that Makefile, and if I proceed to lib/stm32/?? and type make there, it works just fine. I can then go back to following the tutorial, but upon the incantation of openocd -f interface/stlink-v2.cfg -f target/stm32f1x.cfg, this happens:
Open On-Chip Debugger 0.11.0+dev-00062-g6405d35f3 (2021-04-04-21:32)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
DEPRECATED! use 'adapter driver' not 'interface'
Info : auto-selecting first available session transport "hla_swd". To override use 'transport select <transport>'.
DEPRECATED! use 'swj_newdap' not 'hla newtap'
[repeats about a hundred times]
embedded:startup.tcl:265: Error: Infinite eval recursion
in procedure 'script'
at file "embedded:startup.tcl", line 26
in procedure 'swj_newdap' called at file "target/stm32f1x.cfg", line 38
in procedure 'hla' called at file "target/swj-dp.tcl", line 28
[repeats about 300 times]
at file "embedded:startup.tcl", line 265
Still exhibits the same problem. Is it possible that some of the software on my laptop is too new? Trying outside of the openocd/scripts directory then:
$ openocd -f interface/stlink.cfg -f target/stm32f1x.cfg
Open On-Chip Debugger 0.11.0+dev-00062-g6405d35f3 (2021-04-04-21:32)
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 <transport>'.
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
Info : DEPRECATED target event trace-config
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Info : clock speed 1000 kHz
Info : STLINK V6J56S32 (API v0) VID:PID 0483:3748
Warn : target stm32f1x.cpu examination failed
Error: jtag status contains invalid mode value - communication failure
Polling target stm32f1x.cpu failed, trying to reexamine
Examination failed, GDB will be halted. Polling again in 100ms
Still no dice. Have I got a hardware problem then perhaps? But the STLink is working fine and the connection to the module seems good, too... SWDIO on the bottom row, far right, SWDCLK to its left, GND in the middle, right?
Hi, could somebody help me get through this?
Line 64 of libopencm3/Makefile reads
Fwiw, all the quotes look in order in that Makefile, and if I proceed to lib/stm32/?? and type
make
there, it works just fine. I can then go back to following the tutorial, but upon the incantation ofopenocd -f interface/stlink-v2.cfg -f target/stm32f1x.cfg
, this happens:Unfortunately:
Still exhibits the same problem. Is it possible that some of the software on my laptop is too new? Trying outside of the openocd/scripts directory then:
Still no dice. Have I got a hardware problem then perhaps? But the STLink is working fine and the connection to the module seems good, too... SWDIO on the bottom row, far right, SWDCLK to its left, GND in the middle, right?