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 flashing failing #958

Closed
knmcguire opened this issue Feb 23, 2022 · 2 comments · Fixed by #959
Closed

openocd flashing failing #958

knmcguire opened this issue Feb 23, 2022 · 2 comments · Fixed by #959
Milestone

Comments

@knmcguire
Copy link
Member

Hi! I noticed some problems with flashing with the stlink lately.

When I want to do 'make flash' with an stlink-v2, I see the following:

embedded:startup.tcl:60: Error: Can't find interface/stlink.cfg

If I change this line in the Makefile to:

OPENOCD_INTERFACE ?= interface/stlink-v2.cfg

I get the following error

embedded:startup.tcl:60: Error: Can't find -c

Which is caused by the define OPENOCD_TARGET is missing from the makefile

@knmcguire
Copy link
Member Author

Openocd version is 0.10.0 by the way, and this is done on the VM.

@knmcguire
Copy link
Member Author

More seems to be wrong. the command 'flash_write_image' seems to be outdated?

jonasdn added a commit that referenced this issue Feb 23, 2022
jonasdn added a commit that referenced this issue Feb 23, 2022
jonasdn added a commit that referenced this issue Feb 23, 2022
@knmcguire knmcguire added this to the next-release milestone Mar 21, 2022
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

Successfully merging a pull request may close this issue.

1 participant