cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F4-Discovery connection problem with STMStudio

zivadin
Associate II
Posted on January 05, 2015 at 22:48

Hi,

I have installed STMstudio 3.3 on win7 x64, and I have installed java x86. (http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html).

When I want to run, I select ST-Link SWD,but I get a message Error opening ST-link connection. 

I run the application as administrator. 

I'm writing program in Eclipse+GCC compiler, and I don't have any problems to download the code.

Can you help me?

Thanks

#java #stmstudio-stm32f4-win7-x64 #stmstudio #runtime
4 REPLIES 4
S C
ST Employee
Posted on January 07, 2015 at 14:37

Hello,

I may suggest:

1. To ensure that no other connection is established with the discovery before using the STMStudio (unplug/plug again the USB cable to be sure)

2. Ensure that the desktop shortcut is really pointing to the 32-bits version of Java machine (right-click on STMStudio desktop icon - properties - target should start by C:/windows/SysWOW64 on Win7-64)

3. If the issue persists, please post the file error.log that should reside into  Program Files (x86)/STMicroelectronics/STMStudio/dll

Best regards
zivadin
Associate II
Posted on January 14, 2015 at 23:42

Hi,

I have installed win 7 x86, st-link driver, stmstudio and Java 7 jdk, but I still have the same problem. I run the program as administrator, and choose ST-Link SWD but I got a message ?Error opening ST-Link connection?

This is the contents of the error.log file:

******** xxx ********

******************* GDI DUMP => Date : Wed Jan 14 23:36:32 2015

STLinkUSBDriver.dll loaded

No ST-Link device detected on the USB

Error opening ST-Link connection

**** End of GDI DUMP ****

Any help...?

0690X00000605fXQAQ.png

zivadin
Associate II
Posted on January 15, 2015 at 15:57

This is the target content: C:\Windows\System32\javaw.exe -Xms512m -Xmx512m -jar ''C:\Program Files\STMicroelectronics\STMStudio\STMStudio.jar''

I have installed jre7 and jdk 1.7, also and ST-link V2 driver, but still have the same problem.

http://java.com/en/download/manual_java7.jsp

http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html

http://www.st.com/web/en/catalog/tools/PF258167

Matej Zub?i?
Associate II
Posted on July 21, 2015 at 21:13

Hi, I know it has been a few months since you have asked your question, but it might help others.

Even on Windows 7 x64 version, you can(and probably will have to for other reasons) install 32-bit, and 64-bit Java JRE(it doesn't matter if you have same version(e.g. 1.7.80) with different ''bitness''). For example, my target path inside shortcut tab, looks like this:

''C:\Program Files (x86)\Java\jre1.8.0_51\bin\javaw.exe'' -Xms512m -jar ''C:\Program Files (x86)\STMicroelectronics\STMStudio\STMStudio.jar''

Path inside the first pair of quotes points to the installed Java VM(in this case 32-bit on Windows 7 x64), after that, follows the size of memory allocation pool which your instance will be using, and finally '-jar' with the path to your java package. After you are certain that everything is OK on the ''software'' side, check your connections/wiring. I had the same problem previously, my root cause was a loose test clip :\ Perhaps, you could try to flash your device through the STMDiscovery's ST-Link, and immediately after that, try connecting through STMStudio. Good luck =)