This could be just a consequence of the documentation not being currrent - however to be safe I want to warn that actual platformio.ini
is
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
[env:bw_swan_r5]
platform = ststm32
board = bw_swan_r5
framework = arduino
Note that the definitions of the upload_protocol
, build_flags
and lib_deps
are missing.