Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenOCD config results in error #10

Open
slyons opened this issue May 13, 2020 · 3 comments
Open

OpenOCD config results in error #10

slyons opened this issue May 13, 2020 · 3 comments

Comments

@slyons
Copy link

slyons commented May 13, 2020

Using the openocd.cfg/openocd.gdb in the repo I get the following error:

Open On-Chip Debugger 0.10.0
Licensed under GNU GPL v2
For bug reports, read
	http://openocd.org/doc/doxygen/bugs.html
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
none separate
srst_only separate srst_nogate srst_open_drain connect_deassert_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'

Tried multiple board resets and only reverting it back to the original cortex example (modified for the f40x) restored the connection.

Open On-Chip Debugger 0.10.0
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
adapter speed: 2000 kHz
adapter_nsrst_delay: 100
none separate
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
Info : STLINK v2 JTAG v25 API v2 SWIM v14 VID 0x0483 PID 0x374B
Info : using stlink api v2
Info : Target voltage: 2.883677
Info : stm32f4x.cpu: hardware has 6 breakpoints, 4 watchpoints
@therealprof
Copy link
Member

No idea, sorry. I've been using OpenOCD only for flashing but even that is obsolete now.

@arkap Any idea?

@arkap
Copy link
Contributor

arkap commented May 15, 2020

Sorry, I don't know either. The config works fine on my machine.

@therealprof Out of curiosity: What are you using instead of OpenOCD to flash and debug?

@therealprof
Copy link
Member

For flashing I use cargo-flash from the probe-rs project: https://probe.rs/

I don't do debugging but in theory that should work with probe-rs, too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants