STLINK is open source software to program and debug ST’s STM32 Discovery kits. Those kits have an onboard chip that translates USB commands sent by the host PC into JTAG/SWD commands.
sudo apt-get install libusb-1.0-0-dev
This is the previously created directory for building purposes
cd ~/stm32build git clone git://github.com/texane/stlink.git stlink_texane cd stm32build/stlink_texane/ ./autogen.sh ./configure make
If everything went ok we will binaries of st-flash and st-util
add the binaries to .bashrc using export command
connect the board to the system..in theJtag communication part we can see power and one another led islighted up in red color…open up a terminal and issue the command
It detects the hardware and listens to the port and we can see the jtag led turns green when board is detected