Skip to main content
ADaxa.1
Associate II
January 2, 2021
Question

STM32CubeIDE is not connecting to the internet.

  • January 2, 2021
  • 7 replies
  • 22657 views

I had several versions of the IDE installed on my machine but none of them could connect to the internet to update or load code. I keep getting the error message "In order to benefit from best experience a network connection is required. Do you want to set connection parameter now?". At first I thought it was because Norton was blocking the the applications through the firewall but I uninstalled Norton and installed the IDE again but that didn't fix the problem. I installed the IDE on my brothers machine which doesn't have Norton and it worked fine on there. I also have used different networks in the past 2 months so that cant be it. Can anyone please help?

7 replies

Peter BENSCH
Technical Moderator
January 4, 2021

What are your settings in

  • Window > Preferences > Network Connections
  • Window > Preferences > STM32Cube > Firmware Updater?

Regards

/Peter

ADaxa.1
ADaxa.1Author
Associate II
January 4, 2021

0693W000006HPleQAG.jpg

Peter BENSCH
Technical Moderator
January 4, 2021

What about the settings from the first point (Network Connections)?

You can also reach them by clicking Network Connections in the screen above.

ADaxa.1
ADaxa.1Author
Associate II
January 4, 2021

0693W000006HTJZQA4.jpg

Peter BENSCH
Technical Moderator
January 5, 2021

Setting the Active Provider to Native is usually fine.

If you are connected to the Internet without a proxy, you can test whether setting to Direct is working for you. Please Apply after setting and test the connection using Check Connection in Firmware Updater.

Instead set Active Provider to Manual and set the required parameters (host, port, user, pwd) if you are behind a proxy. It might also be a good idea to set these parameters and test Active Provider with Native again.

Regards

/Peter

ADaxa.1
ADaxa.1Author
Associate II
January 5, 2021

I tried your suggestions and nothing seems to have changed. Ill try to contact Microsoft to try to resolve the problem. Thanks for your help anyways.

KHe.1
Associate
August 18, 2023

Hi ADaxa.1, 

Did you resolve it? How did you make it to work? I have the same issue. Thank you!

Associate III
January 11, 2024

I had the same problem and solved it by changing Active Provider to Direct.

 

Clyde_S_0-1705012346706.png

 

Visitor II
September 20, 2024

I am having a connection issue from my new company laptop, and no settings seem to work for me (same problem in both CubeMx and CubeIde). I should also note that I have NO problems working off the same (home) network from my personal PC.

I looked in the CubeIde .log file and found the following java exception, but not sure if it means that I have an issue or ST has a certificate issue.  The log contained this:

ENTRY org.eclipse.equinox.p2.transport.ecf 4 1002 2024-09-20 10:35:42.036
!MESSAGE Unable to read repository at https://sw-center.st.com/stm32cubeide/updatesite1/content.xml.
!STACK 0
javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at java.base/sun.security.ssl.Alert.createSSLException(Alert.java:131)
at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:378)
at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:321)
at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:316)
at java.base/sun.security.ssl.CertificateMessage$T13CertificateConsumer.checkServerCerts(CertificateMessage.java:1351)
at java.base/sun.security.ssl.CertificateMessage$T13CertificateConsumer.onConsumeCertificate(CertificateMessage.java:1226)
at java.base/sun.security.ssl.CertificateMessage$T13CertificateConsumer.consume(CertificateMessage.java:1169)
at java.base/sun.security.ssl.SSLHandshake.consume(SSLHandshake.java:396)
at java.base/sun.security.ssl.HandshakeContext.dispatch(HandshakeContext.java:480)
at java.base/sun.security.ssl.SSLEngineImpl$DelegatedTask$DelegatedAction.run(SSLEngineImpl.java:1277)
at java.base/sun.security.ssl.SSLEngineImpl$DelegatedTask$DelegatedAction.run(SSLEngineImpl.java:1264)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:712)
at java.base/sun.security.ssl.SSLEngineImpl$DelegatedTask.run(SSLEngineImpl.java:1209)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
at java.net.http/jdk.internal.net.http.common.SSLFlowDelegate.lambda$executeTasks$3(SSLFlowDelegate.java:1118)
at java.net.http/jdk.internal.net.http.HttpClientImpl$DelegatingExecutor.execute(HttpClientImpl.java:157)
at java.net.http/jdk.internal.net.http.common.SSLFlowDelegate.executeTasks(SSLFlowDelegate.java:1113)
at java.net.http/jdk.internal.net.http.common.SSLFlowDelegate.doHandshake(SSLFlowDelegate.java:1079)
at java.net.http/jdk.internal.net.http.common.SSLFlowDelegate$Reader.processData(SSLFlowDelegate.java:484)
at java.net.http/jdk.internal.net.http.common.SSLFlowDelegate$Reader$ReaderDownstreamPusher.run(SSLFlowDelegate.java:268)
at java.net.http/jdk.internal.net.http.common.SequentialScheduler$LockingRestartableTask.run(SequentialScheduler.java:205)
at java.net.http/jdk.internal.net.http.common.SequentialScheduler$CompleteRestartableTask.run(SequentialScheduler.java:149)
at java.net.http/jdk.internal.net.http.common.SequentialScheduler$SchedulableTask.run(SequentialScheduler.java:230)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:840)
Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at java.base/sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:439)
at java.base/sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:306)
at java.base/sun.security.validator.Validator.validate(Validator.java:264)
at java.base/sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:285)
at java.base/sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:144)
at java.base/sun.security.ssl.CertificateMessage$T13CertificateConsumer.checkServerCerts(CertificateMessage.java:1329)
... 21 more
Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at java.base/sun.security.provider.certpath.SunCertPathBuilder.build(SunCertPathBuilder.java:148)
at java.base/sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:129)
at java.base/java.security.cert.CertPathBuilder.build(CertPathBuilder.java:297)
at java.base/sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:434)
... 26 more

mattias norlander
ST Employee
August 24, 2023

Would be interesting to see if you have any log messages that we can associate with these problems.

Please have a look your workspace\.metadata\

You should find two files:

  • One called .log, produced by CubeIDE/Eclipse/...
  • Another called ide.log, produced by CubeMX

Can you have a look at these logs? When doing that try again to perform the log-in and notice exactly at what time you did the log-in attempt in order to be able to map the time with the time stamps in the log-files. Then we should know exactly which log-messages (if any) was produced by the log-in feature...

Explorer
November 5, 2024

Hello, I am also experiencing issue trying to connect to the Internet(version 1.16 of the CubeIDE on Windows11). I tried all suggested actions but without success. I also tried using an Internet cable which allows connection to Internet from the IDE on other PC - which should eliminate the possibility to have incorrect internet/proxy settings on mine. From the ide.log , when trying to login I get: UserAuth:417 - Internet connection configuration mode: 2

February 13, 2026

If STM32CubeIDE is not connecting to the internet, it’s often due to firewall settings, proxy issues, or network interruptions, which can make updates and downloads fail intermittently. Checking your connection and IDE settings usually solves it.

For more tips and tools, check out surf4all99 tm.