-
Notifications
You must be signed in to change notification settings - Fork 26
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
[env] upload_protocol not applied correctly / board_config.get("upload.protocol") wrong value #7
Comments
this is my workaround for stlinkv2: |
That's the solution. Just replace upload_protocol by board_upload.protocol. |
I think it should be changed to be aligned with other platforms in PIO. I found the solution by trial an error peaking the source code. But also this is not documented. |
Thanks for the report! Please re-test with upstream version https://docs.platformio.org/en/latest/platforms/ststm8.html#stable-and-upstream-versions |
I hit the issue in the most recent version of PlatformIO. Took some searching, but using @ivankravets, shouldn't PlatformIO version
VS Code version
|
My platformio.ini (PIO Home 2.0.0, Core 3.6.5, no pending updates)
When trying to upload aka flash (via PIO Verbose Upload) a small blink example to an STM8, it fails with this error:
As can be seen, stm8flash does use -c serial although CURRENT: upload_protocol = stlinkv2 is printed.
I could not find the error but a workaround:
Changed line 152 of file .platformio/platforms/ststm8/builder/main.py from
Hope this description helps.
The text was updated successfully, but these errors were encountered: