Upload failed
Software Development Kits > Troubleshooting
Upload failures can happen for a number of reasons. The most common is simply that PlatformIO’s instance of OpenOCD can’t find your uploader.
For the Morse Micro evaluation kits, the uploader is the STLINK debug probe built into the STM32 Nucleo evaluation boards. PlatformIO’s instance of OpenOCD may not be able to determine which is the correct debug probe if you have multiple attached, so ensure only 1 debug probe is attached at a time.
In some cases, your host PC may put the USB port hosting the STLINK to sleep as part of its power save settings. An easy way to wake up the offending port is to select the serial port associated with the board. As these share a port, activity on this serial port will wake up the STLINK as well.