2011-09-26 08:06 PM
Hi,
Just started playing around with my STM32 discovery board, and had a problem right away. I'm using atollic trueStudio IDE and trying to load a demo project(the one in firmware package), to my microcontroller. The thing is everytime I hit debug button It shows this in console:Starting server with the following options:
Persistant Mode : Disabled
LogFile Name : debug_log.txt
Logging Level : 1
Listen Port Number : 61234
Status Refresh Delay : 15s
Verbose Mode : Disabled
SWD Debug : Enabled
Error in Initializing ST-Link device
I spent entire day searching web, if I could find a solution but no success yet. I found this page(http://www.atollic.com/index.php/kb/3-debugging/28-kb_st_link_connection_error
) on atollic website, have followed the steps but still no luck. So these are the things which I have already tried:- checked USB cable- tried running ST-LINK GDB server, same error- checked the driver installation, and updated to latest version- no disk letter issue, st link is using G: and it is vacantI have followed the user manual steps exactly still unsure what's wrong with my board. Any help appreciated. #debugging #st-link-gdbserver #driver2012-06-08 08:47 AM
Well, I have some troubles to understand french error message, but it still seems that Atollics GDB server can't access the stlink.
It is certainly not impossible that the board or the stlink part is damaged. Have you tried the STLink Utility ? Does it show the same issue if you try the board on your co-workers PC (or any other PC, for that matter) ? If you have some testhardware attached, better remove it. I, for instance, had difficulties when trying to debug a stm32f4discovery with a LCD panel attached. It worked reliably only after supplying the board externally, and not via USB.2015-10-21 01:01 AM
hye clive... can i know what is BOOT0 high? how 2 do it?
2015-10-21 06:13 AM
It's a pin on the device, pull it high with a pull-up resistor to the supply.
2018-11-20 04:07 PM
Hello, I had the same problem and I find a solution.
What I did is: I opened the Atollic directory then I searched for "stlinkv2usbdriver" directory. In it I find an application "dpinst_amd64.exe" (for my case). I Executed it. I opened my project with TrueSTUDIO. I builded it then I pressed "debug as ...". At this point, the IDE proposed to me to upgrade the STLink. So, I upgrade it. Then, I was able to run my program.
I hope it will help someone.
Source of the solution: https://youtu.be/vVlYypB7rew?t=327
2019-11-25 12:24 PM
I had the same problem with debugging.
Finally I figured out that it can be solved simply by changing the port number in debug setting.
I choose another random port number and it perfectly works .
2020-01-03 03:52 AM
Hi All,
I had the same problem and the solution in my case was as simple as using the proper USB Cable which came with the ST-Utility. Earlier i was using the cable that was used to charge my phone (a spare one).
2020-03-06 04:12 AM
I just found this thread - I had the same problem.
What worked for me was to allow st-link gdb server and stm32cube IDE in Windows Firewall. If the network access is denied, the USB device can't be detected in Windows.