2013-07-27 08:42 AM
Hi all,
I am writing here because I am experiencing problems running the STM32F4 discovery board on a Linux distribution (Slackware 0). Precisely, it seems there is some problem with the communication between the operating system & the onboard ST Link/V2. After plugging the device the output of the the dmesg is as follow[ 1103049] usb 7-1: new full-speed USB device number 4 using uhci_hcd
[ 1263099] usb 7-1: New USB device found, idVendor=0483, idProduct=3748
[ 1263103] usb 7-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 1263106] usb 7-1: Product: STM32 STLink
[ 1263109] usb 7-1: Manufacturer: STMicroelectronics
[ 1263111] usb 7-1: SerialNumber: VÿkIpST4‡
and
lsusb
lsusb
. . .
Bus 007 Device 004: ID 0483:3748 SGS Thomson Microelectronics ST-LINK/V2
. . .
The kernel I am using is the
3.2.45.
So, I tried two programs in order to programming the flash of the onboard STM32F407 microcontroller.
and the
.
Both don't work. On a friend's laptop the
qstlinkv2 program works with no problems using a Ubuntu 1 distro. With my laptop and same distribution it doesn't work...
Running the
qstlinkv2 program, the ST Link/V2 is recognized and then the communication falls.
In the hours I will can post the output of the execution of the both programs, also through
strace debugging.
I hope someone can help me with this issue, maybe I am doing something wrong.
Thanks in advance.
Regards,
Simon
2013-08-01 07:32 PM
The messages you posted look ok to me. I've never tried qstlink but st-flash from the texane st-utils worked OK for me on Fedora 18 (3.9.11-fci686). I didn't have to run as root but you might try that. E.g.
path/to/st-flash erase
or
path/to/st-flash write path/to/something.bin 0x08000000
I didn't try st-util as a gdb-server today but it worked OK the last time I had it installed (a couple of years ago). I'm pretty sure the older version had a longer, better, more detailed tutorial. I wonder if that is still available in the repository.
seems to work pretty well with ST-Link these days, which is why I'd not looked at the texane utils in a long time. You might give that a try if you can't get either of your utils to work.
2013-08-02 03:37 AM
And neither did I try those programs, nor the Slackware distribution.
But one common problem is missing user rights. Try as root (or use sudo), and if this works, you just need to grant your user the necessary rights.