I had some trouble getting OpenOCD working... I had errors on startup that weren't exactly "beginner friendly", so I thought I'd give Texane's stlink a try instead... bit of a pity because I was hoping to be able to use the same procedure for STM32 and SAMD... but anything will do to get me started.
sudo apt-get install git build-essential libusb-1.0.0-dev cmake git clone https://github.com/texane/stlink.git cd stlink make release cd build/Release sudo make install sudo ldconfig -v
I also need a nice chunk of example code. I'm probably pushing my luck to try any "exotic" languages at this point. Plain, boring C is what I'm after at this stage. blink-plain from istepaniuk/stm32-templates should be just what I'm looking for.
git clone https://github.com/istepaniuk/stm32-templates.git cd stm32-templates/blink-plain/ nano Makefile make arm-none-eabi-objcopy -O ihex blink-plain.elf blink-plain.hex st-flash --format ihex write blink-plain.hex