2026-05-04 12:57 AM - last edited on 2026-05-04 7:00 AM by Amel NASRI
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
Solved! Go to Solution.
2026-05-05 12:57 AM
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.
2026-05-04 7:30 AM
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.
You can also refer to this article for more details on: How to configure the proxy or certificate
2026-05-05 12:53 AM
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.
2026-05-05 12:57 AM
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.
2026-05-05 1:14 AM - edited 2026-05-05 1:15 AM
Hi @paolog
I'm glad you found the root cause and that everything is working now!!