cancel
Showing results for 
Search instead for 
Did you mean: 

Error installing STMicroelectronics.button_part_drivers.2.0.0 pack

paolog
Senior

Thank you @B.Montanari  for the complete guide. Unfortunately on my computer the project is not created as packs can't be downloaded, error is the following (in this case for button pack):

Error installing STMicroelectronics.button_part_drivers.2.0.0 pack

Could not save pack of pack-URL: https://developer.st.com/st-pack-server/api/v1/pack/STMicroelectronics.button_part_drivers.2.0.0.pack, got: Unsupported `GLOBAL_AGENT.HTTP_PROXY` configuration value: URL protocol must be "http:".

 

I'm behind a proxy (set at system level), and if I use the URL listed I'm able to download and manually install the pack. I tried setting proxy information on MX2 as IP:port with no result.

Is there a way to solve this?

BR

Edit: moved from How to create a new project with STM32CubeMX2

1 ACCEPTED SOLUTION

Accepted Solutions
paolog
Senior

Found the reason of my issue. I had Windows system variables HTTP_PROXY and HTTPS_PROXY set without "http://" in front of IP. Once corrected everything worked.

View solution in original post

4 REPLIES 4
Oussama_TROUDI
ST Employee

Hi @paolog 

In this case, what you need is to configure a proxy or a certificate to be able to access the servers and download packages.

  • Get your certificate from your company IT or company portal.
  • Place it under C:\certificate, for example.
  • Add the Windows environment variable NODE_EXTRA_CA_CERTS with the path to this certificate file. (Make sure that the path has no quotes.)

Oussama_TROUDI_0-1777904877520.png

  • Finally, restart STM32CubeMX2.

You can also refer to this article for more details on: How to configure the proxy or certificate 


In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
paolog
Senior

Hi @Oussama_TROUDI , thank you for your reply.

I followed the directions on the above link as much as possible, as we don't use Visual Studio Code. We installed the certificate, defined the variable NODE_EXTRA_CA_CERTS to point to the certificate file, and defined proxy in MX2 as "http://Proxy-address:port". But the error is still there.

Should system variable GLOBAL_AGENT_HTTP_PROXY be defined?

Any other option to solve this?

Thank you.

paolog
Senior

Found the reason of my issue. I had Windows system variables HTTP_PROXY and HTTPS_PROXY set without "http://" in front of IP. Once corrected everything worked.

Hi @paolog 

I'm glad you found the root cause and that everything is working now!!


In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.