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

Upload using openocd and stlinkv2 #16

Closed
bfabricio opened this issue Oct 11, 2016 · 6 comments
Closed

Upload using openocd and stlinkv2 #16

bfabricio opened this issue Oct 11, 2016 · 6 comments
Assignees
Labels

Comments

@bfabricio
Copy link

bfabricio commented Oct 11, 2016

I upload the .bin(.pioenvs/stm32f103c8t6/firmware.bin) using openocd and stlink and now I can't re-flash the board. The swd is disable during the build?

Code:
https://github.com/fabriciopk/SEA_Firmware

@ivankravets
Copy link
Member

@ubis, please help us.

@ubis
Copy link
Contributor

ubis commented Oct 13, 2016

I'm not really familiar with SWD and stuff, maybe you used some different flags?
Could you try to reflash firmware with ROM bootloader?

@bfabricio
Copy link
Author

I upload the code using openocd with the same script that I use for others binaries, and it always work. But when I flash with the binaries that I build using platformio, the stlink not recognize the microcontroler any more.
It's possible to use platformio to upload the binaries using stlink? I was reading about adding in the platformio.ini

UPLOAD_PROTOCOL = stlink

@ivankravets
Copy link
Member

@fabriciopk please re-test the latest dev build:

pio platform uninstall ststm32
pio platform install https://github.com/platformio/platform-ststm32/archive/develop.zip

Does it work?

@ivankravets ivankravets self-assigned this Oct 14, 2016
@ivankravets ivankravets reopened this Oct 17, 2016
@ivankravets
Copy link
Member

@fabriciopk do you have any news?

@ivankravets
Copy link
Member

Please reopen if you still have problems

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

No branches or pull requests

3 participants