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

Error: Debug adapter doesn't support 'swim' transport #1

Closed
MarrekNozka opened this issue Jun 5, 2020 · 5 comments
Closed

Error: Debug adapter doesn't support 'swim' transport #1

MarrekNozka opened this issue Jun 5, 2020 · 5 comments

Comments

@MarrekNozka
Copy link

I begin with stm8 (I have nucleo STM8S208RB). I use your HowTo. Thank you very much.

But I have problem with openocd. I compiled openocd from git repository.

I run:

openocd -f interface/stlink.cfg -f target/stm8s105.cfg -c "init" -c "reset halt"

I get this:

Open On-Chip Debugger 0.10.0+dev-01267-g4c364b45-dirty (2020-06-05-08:14)
Licensed under GNU GPL v2
For bug reports, read
	http://openocd.org/doc/doxygen/bugs.html
Error: Debug adapter doesn't support 'swim' transport
/usr/local/stow/openocd/bin/../share/openocd/scripts/target/stm8s.cfg:7: Error: 
in procedure 'script' 
at file "embedded:startup.tcl", line 26
at file "/usr/local/stow/openocd/bin/../share/openocd/scripts/target/stm8s105.cfg", line 8
at file "/usr/local/stow/openocd/bin/../share/openocd/scripts/target/stm8s.cfg", line 7

Where am I making mistake? Thanks!

@MarrekNozka
Copy link
Author

I installed xPack OpenOCD binaries and it works.

@spth
Copy link

spth commented Aug 17, 2020

Looks like the OpenOCD you used on your first attempt was too old.

@ali-libre
Copy link

i'm using arch too.
but i got same error

@trajamohan
Copy link

The transport SWIM has been moved away from HLA and is now in 'interface/stlink-dap.cfg'

Use : openocd -f interface/stlink-dap.cfg -f target/stm8s105.cfg -c "init" -c "reset halt"

@MarrekNozka
Copy link
Author

Thank you very much. It's works with latest version of openocd.

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

5 participants