Programming STM32 using Arduino IDE on Debian Jessie

BOM

ST-LINK V2 programmer
stm32f103c8 learning board evaluation kit
STM32F103C8T6 ARM STM32 Minimum System Development Board Module 

20160608_133426

20160608_135242

 

Discovering ST-LINK V2 on Debian Jessie

I have followed these steps and I have changed file /etc/udev/rules.d/49-stlinkv2.rules because Arduino IDE doesn’t detect /dev/stlinkv2_4 but it is able to detect /dev/ttyACM4

stm32_rules

 

Arduino IDE

There is a good explanation at Roger Clark’s post. This is my suggested code:

stm32ArduinoIDE

If you have trouble with libusb-1.0 you can copy st-flash, st-info, st-term and st-util compiled binary files from texane’s stlink source code  to arduino-1.6.5/hardware/Arduino_STM32/tools/linux/stlink folder:
stlink-master

stlink