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

add support for stlink #13

Closed
PicoCPP opened this issue Jan 26, 2021 · 8 comments
Closed

add support for stlink #13

PicoCPP opened this issue Jan 26, 2021 · 8 comments

Comments

@PicoCPP
Copy link

PicoCPP commented Jan 26, 2021

I am trying to use an stlink to program my rp2040

openocd -f interface/stlink.cfg -f target/rp2040.cfg

And end up with this issue:
/usr/local/bin/../share/openocd/scripts/target/swj-dp.tcl:30: Error: Unknown param: -dp-id, try one of: -irlen, -irmask, -ircapture, -enable, -disable, -expected-id, or -ignore-version
in procedure 'script'

@HeadBoffin
Copy link

I fully appreciate you can use a Pico to do this, but many of us have lots of random ST-Link's - I've an original and a draw full of the cheap clones off eBay. As my IoT devices have long test times, it would be useful to use these ST-Links for monitoring but I can just double up on Pico's if they can be bought in pairs as an alternative.

@ghollingworth
Copy link

I'm guessing the STLink doesn't support multidrop SWD...

That would need to be fixed upstream first

@PicoCPP
Copy link
Author

PicoCPP commented Jan 30, 2021

I belive it does on the latest firmware, there's a couple of dual core STM32 parts.

@GMMan
Copy link

GMMan commented Feb 3, 2021

I believe ST-Link V3 supports multi-drop, but not necessarily earlier versions. In any case someone has to reverse engineer ST-Link's protocol for it since it's a high level adapter, not one where you could twiddle the lines yourself.

@maxgerhardt
Copy link

maxgerhardt commented Jul 15, 2021

I'm wondering what happened after https://community.st.com/t5/boards-and-hardware-tools-mcus/does-stlink-support-ad-v2multi-drop-swd/m-p/191145 .. No confirmation from ST yet.

@mcuee
Copy link

mcuee commented Jul 17, 2022

I remember that ST-Link only supports STM32/STM8 MCUs from ST.

@P33M
Copy link
Contributor

P33M commented Jul 7, 2023

If you want stlink swd support, then ask ST to merge their OpenOCD patches upstream - https://github.com/STMicroelectronics/OpenOCD
We won't be doing it here.

@P33M P33M closed this as completed Jul 7, 2023
@UweBonnes
Copy link
Contributor

https://github.com/STMicroelectronics/OpenOCD does not implement multidrop for STlinks.

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

8 participants