platformio / platform-ststm8

ST STM8: development platform for PlatformIO
https://registry.platformio.org/platforms/platformio/ststm8
Apache License 2.0
41 stars 26 forks source link

Add stlinkv2 as upload protocol for stm8sblue #3

Closed Gei0r closed 5 years ago

Gei0r commented 5 years ago

Somehow the stlinkv2 was missing for this particular board.

Btw, how can you select a programmer for uploading? Writing upload_protocol = stlinkv2 in platformio.ini gets me this far:

Configuring upload protocol...
AVAILABLE: serial, stlinkv2
CURRENT: upload_protocol = stlinkv2
Uploading .pioenvs\stm8sblue\firmware.ihx
No valid programmer specified. Possible values are:
stlink
stlinkv2
stlinkv21
stlinkv3
*** [upload] Error -1
terragit commented 5 years ago

AFAIK it is supported but there may be a bug, see my issue.

ivankravets commented 5 years ago

Thanks!

ivankravets commented 5 years ago

Please re-test with upstream version https://docs.platformio.org/en/latest/platforms/ststm8.html#stable-and-upstream-versions