Here's one way to program a Tomu (https://tomu.im/) or EFM32 chip using a cheap $8 ST-Link V2 programmer
- 
Install OpenOCD - http://openocd.org/
e.g. on Mac OS X:
brew install openocd - 
Create a file called "~/openocd-stlinkv2-efm32.cfg" that contains:
 
    source [find interface/stlink-v2.cfg]
    set CHIPNAME efm32
    set CPUTAPID 0x0bc11477
    source [find target/efm32.cfg]
- Program a Tomu with a .bin file
 
    cd tomu-quickstart/miniblink
    make 
    openocd -f ~/openocd-stlinkv2-efm32.cfg -c "program miniblink.bin verify reset exit 0x4000"
- Done!