Try Texane STLink Instead

A project log for Ada on ARM Cortex

"Why would you want to do this?"

Andy PrestonAndy Preston 02/08/2020 at 17:221 Comment

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
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
cd stm32-templates/blink-plain/
nano Makefile
arm-none-eabi-objcopy -O ihex blink-plain.elf blink-plain.hex
st-flash --format ihex write blink-plain.hex



EmBitz wrote 04/08/2020 at 06:02 point

Or even more easier :

  Are you sure? yes | no