I am trying to use my Olimex ARM-USB-OCD-H debugger for firmware uploading, but PlatformIO returns the following error:
Warning! Unknown upload protocol olimex-arm-usb-ocd-h
I followed the instructions found here:
https://docs.platformio.org/en/latest/plus/debug-tools/olimex-arm-usb-ocd-h.html
The board is a STM32-E407 and here is my platformio.ini:
[platformio]
default_envs = black_f407zg
[env]
monitor_speed = 115200
build_flags =
-D BAUD_RATE=${env.monitor_speed}
-D HSE_VALUE=12000000
-D ENABLE_HWSERIAL3 ; Serial on BOOT header
-D ENABLE_HWSERIAL6 ; Serial on UEXT connector
-D PIO_FRAMEWORK_ARDUINO_ENABLE_CDC ; Serial USB (USB CDC)
-D USBCON
-D USBD_VID=0x0483
-D USB_MANUFACTURER="OLIMEX"
-D USB_PRODUCT="\"STM32_E-407_board\""
-D HAL_PCD_MODULE_ENABLED
[env:black_f407zg]
platform = ststm32
board = black_f407zg
framework = arduino
build_flags = ${env.build_flags}
upload_protocol = olimex-arm-usb-ocd-h
Is there something to install to make it work?
Unsupported upload protocol according to the documentation. Black STM32F407ZG — PlatformIO latest documentation. See Olimex ARM-USB-OCD-H — PlatformIO latest documentation for supported boards. Please open an issue on Issues · platformio/platform-ststm32 · GitHub for support.
The only thing I could think of would be again a upload_protocol = custom
and friends directive (Redirecting...)
Thank you for your reply. As you suggested, I opened an issue here:
OK, so the olimex-arm-usb-ocd-h protocol is not supported with the STM32 platform. Is it foreseen to support it in the future? Do I have to open an issue somewhere else?
No it’s the right place. @ivankravets or @valeros will surely respond.
1 Like