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

[Feature Request] Upload firmware to target with SWD #43

Open
203Null opened this issue Feb 21, 2021 · 5 comments
Open

[Feature Request] Upload firmware to target with SWD #43

203Null opened this issue Feb 21, 2021 · 5 comments

Comments

@203Null
Copy link

203Null commented Feb 21, 2021

Not sure if this is doable but if it works this is gonna be very handy.

@gabonator
Copy link
Owner

It is, I tried it on DS213, but it should work for LA104 as well. Both devices have SWD interface attached to USB port connector, see this:

image

full schematic:
https://github.com/gabonator/LA104/blob/master/resources/LA104%20V1.5B_SCH.pdf

use openocd to upload fw over SWD innterface:
https://github.com/gabonator/LA104/tree/master/tools/openocd

@203Null
Copy link
Author

203Null commented Feb 22, 2021

I mean upload to another STM32 target using LA104's GPIO. Not upload to the LA104/DS213. Sorry for the ambiguous wording.

@203Null
Copy link
Author

203Null commented Feb 22, 2021

I don't know that it's OK to short USB with SWD. Won't this block SWD debugging while USB is in use?

@gabonator
Copy link
Owner

I was surprised as well to see SWD tied to USB data lines, but it is working well. Regarding the stlink v2 application on LA104 - it is definitelly doable - it is just using two digital lines, but I could not find any source code of the programmer.

@Turro75
Copy link

Turro75 commented Mar 6, 2021

In the past I used the black magic probe (https://github.com/blacksphere/blackmagic under GPL3) loaded on a stlink v2.
This is also suitable for samd21 (i.e. arduino zero)

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