Hi everyone!
I’ve recently installed platformio in VScode (OSX) and have setup a new blinky project, using the adafruit nrf52 feather and am trying to flash the device using STLINK. (Using openocd CLI I can see the target device and interact with it)
I follow the docs for platformio.ini as follows:
[env:adafruit_feather_nrf52840]
platform = nordicnrf52
board = adafruit_feather_nrf52840
framework = arduino
upload_protocol = stlink
When I hit build, the code complies fine however I get the following error:
Warning! Unknown upload protocol stlink
I tried using an old nucleo board and compiling a blinky to stm32 hoping it would download the stlink protocol, but no luck.
Here’s the result of pio update:
Updating tool-scons @ 2.20501.190826 [Up-to-date]
Updating tool-unity @ 1.20403.0 [Up-to-date]
Updating contrib-pysite @ 2.27.190418 [Up-to-date]
Updating contrib-piohome @ 2.3.3 [Up-to-date]
Updating tool-pioplus @ 2.5.5 [Up-to-date]
Platform Manager
================
Platform Nordic nRF52
--------
Updating nordicnrf52 @ 3.7.0 [Up-to-date]
Updating tool-sreccat @ 1.164.0 [Up-to-date]
Updating tool-nrfjprog @ 1.90702.1 [Up-to-date]
Updating tool-openocd @ 2.1000.190707 [Up-to-date]
Updating toolchain-gccarmnoneeabi @ 1.70201.0 [Up-to-date]
Updating framework-arduinoadafruitnrf52 @ 1.1300.190829 [Up-to-date]
Platform ST STM32
--------
Updating ststm32 @ 5.6.0 [Up-to-date]
Updating tool-stm32duino @ 1.0.1 [Up-to-date]
Updating tool-dfuutil @ 1.9.190708 [Up-to-date]
Updating framework-arduinoststm32 @ 3.10601.190716 [Up-to-date]
Updating toolchain-gccarmnoneeabi @ 1.70201.0 [Up-to-date]
Updating tool-openocd @ 2.1000.190707 [Up-to-date]
And pio upgrade
:
You're up-to-date!
PlatformIO 4.0.3 is currently the newest version available.
How can I configure platformio in vs code to find/use/download stlink?