title: ATOM/PlatformIO OpenOCD init failed
body: <p>I'm trying to upload to a board for my 3d printer and was following a couple of online tutorials; however, when I'm trying to upload to the board I receive the error below.</p>
  
  <p>I'm running an up-to-date version of Windows 10, Atom &amp; PlatformIO, the board is an SKR E3 Dip (<a href="https://github.com/bigtreetech/BIGTREETECH-SKR-E3-DIP-V1.0" rel="nofollow noreferrer">https://github.com/bigtreetech/BIGTREETECH-SKR-E3-DIP-V1.0</a>).</p>
  
  <p>I have tried</p>
  
  <ol>
  <li>plugging the board into multiple USB ports, because looking online it seemed that there was a problem with USB3</li>
  <li>updating drivers </li>
  </ol>
  
  <p>Any advice on additional troubleshooting?</p>
  
  <pre><code>Processing STM32F103RE_bigtree_USB (platform: ststm32; board: genericSTM32F103RE; framework: arduino)
  --------------------------------------------------------------------------------
  Verbose mode can be enabled via `-v, --verbose` option
  CONFIGURATION: https://docs.platformio.org/page/boards/ststm32/genericSTM32F103RE.html
  PLATFORM: ST STM32 6.0.0 &gt; STM32F103RE (64k RAM. 512k Flash)
  HARDWARE: STM32F103RET6 72MHz, 64KB RAM, 512KB Flash
  DEBUG: Current (stlink) External (blackmagic, jlink, stlink)
  
  PACKAGES: toolchain-gccarmnoneeabi 1.70201.0 (7.2.1), framework-arduinoststm32-maple 1.10000.190819 (1.0.0), tool-stm32duino 1.0.2, tool-openocd 2.1000.190707 (10.0), tool-dfuutil 1.9.190708
  Converting Marlin.ino
  LDF: Library Dependency Finder -&gt; http://docs.platformio.org/en/latest/librarymanager/ldf.html
  LDF Modes: Finder ~ chain, Compatibility ~ soft
  Found 39 compatible libraries
  Scanning dependencies...
  Dependency Graph
  |-- &lt;U8glib-HAL&gt; 0.4.1
  |   |-- &lt;Wire&gt; 1.0
  |-- &lt;LiquidCrystal&gt; 1.3.4
  |   |-- &lt;Wire&gt; 1.0
  |-- &lt;TMCStepper&gt; 0.6.2
  |   |-- &lt;SoftwareSerialM&gt;
  |-- &lt;Adafruit MAX31865 library&gt; 1.0.3
  |-- &lt;LiquidTWI2&gt;
  |   |-- &lt;Wire&gt; 1.0
  |-- &lt;Arduino-L6470&gt; 0.7.0
  |-- &lt;SailfishLCD&gt;
  |-- &lt;SailfishRGB_LED&gt;
  |   |-- &lt;Wire&gt; 1.0
  |-- &lt;SlowSoftI2CMaster&gt;
  |-- &lt;SoftwareSerialM&gt;
  |-- &lt;STM32ADC&gt; 1.0
  |-- &lt;USBComposite for STM32F1&gt; 0.91
  |-- &lt;EEPROM&gt;
  |-- &lt;Wire&gt; 1.0
  Building in release mode
  Checking size .pio\build\STM32F103RE_bigtree_USB\firmware.elf
  Advanced Memory Usage is available via "PlatformIO Home &gt; Project Inspect"
  DATA:    [===       ]  25.4% (used 16664 bytes from 65536 bytes)
  PROGRAM: [====      ]  38.9% (used 203700 bytes from 524288 bytes)
  Configuring upload protocol...
  AVAILABLE: blackmagic, dfu, jlink, serial, stlink
  CURRENT: upload_protocol = stlink
  Uploading .pio\build\STM32F103RE_bigtree_USB\firmware.elf
  xPack OpenOCD, 64-bit Open On-Chip Debugger 0.10.0+dev (2019-07-17-11:28)
  Licensed under GNU GPL v2
  For bug reports, read
          http://openocd.org/doc/doxygen/bugs.html
  debug_level: 1
  
  
  hla_swd
  Error: open failed
  in procedure 'program'
  ** OpenOCD init failed **
  shutdown command invoked
  
  *** [upload] Error 1
  </code></pre>