
Here’s a how-to on debugging the STM32 discovery board with a Ulink2 programmer.
From the comments on the STM32 cheapie Discovery dev board post. Thanks Marko!

Here’s a how-to on debugging the STM32 discovery board with a Ulink2 programmer.
From the comments on the STM32 cheapie Discovery dev board post. Thanks Marko!
It’s worth mentioning that this post is for debugging on the STM32L board, NOT the STM32VL board. They are different families of parts, and are not as compatible as the names would suggest.
STM32VL boards can be debugged in linux using https://github.com/texane/stlink but at least so far, the STM32L boards are not supported.
The STM32VL discovery is for stm32F cores, but the STM32L discovery is for the ultra low power devices.
Hi,
A few days ago, a friend gave me a stm32l discovery kit:
http://www.st.com/internet/evalboard/product/250990.jsp
As in the stm32vl kit, there is an embedded stlink. However, this is
the version 2, and the linux stlink programming tool:
https://github.com/texane/stlink
is not working. After some checks, one of the reason is that it is no
longer possible to send SCSI passthru commands. The commands now must
be sent directly over USB. Some other things changed, and I am implementing
a small software I put in:
https://github.com/texane/stlink, branch stm32l
The code is currently in:
https://github.com/texane/stlink/stm32l/src/main.c
I put some links in:
https://github.com/texane/stlink/stm32l/doc/notes
If things go well, there should not be much work to adapt the pervious
stlink software to the new stlinkv2… and by browsing the web, it seems
there is a relatively large number of people in need for such a tool on
linux.
I emailed you since you may be interested in contributing, or may know
about people that would (thanks for forwarding them this email).
Best regards,
texane@gmail.com