title: OpenOCD read_bank command asks for more arguments
body: <p>We are trying to read out portions of our STM32F0x microcontrollers with OpenOCD, which we also use to program them. However, the <code>flash read_bank</code> command doesn't work as documented. Whatever we input, the error is:</p>
  
  <pre><code>flash read_bank 0 test.bin: command requires more arguments
  </code></pre>
  
  <p>We invoke it for example by:</p>
  
  <pre><code>sudo openocd -f interface/stlink-v2.cfg -f target/stm32f0x_stlink.cfg -c "init" -c "reset init" -c "flash read_bank 0 test.bin" -c "exit"
  </code></pre>
  
  <p>Other flash operations work as expected, such as:</p>
  
  <pre><code>openocd -f interface/stlink-v2.cfg -f target/stm32f0x_stlink.cfg -c init -c "flash info 0" -c exit
  </code></pre>
  
  <p>or</p>
  
  <pre><code>openocd -f interface/stlink-v2.cfg -f target/stm32f0x_stlink.cfg -c init -c "flash banks" -c exit
  </code></pre>
  
  <p>The command <code>flash read_bank</code> seems to be very rarely used. This is at least, was my google search said. Does anybody have an idea on how to use this command?</p>