cancel
Showing results for 
Search instead for 
Did you mean: 

unable to find STM32H7 in Vs code project setup

Jagan1
Associate

Hi I am trying to configure a project in Vs code.

1) Created/Generated a project using STM32CubeMX.

2) in vs code extensions added

3) by using open folder latest created project loaded

4) on pop-up Debug option selected

5) Then when it comes to device selection unable to find STM32H7 Series, eval board numbers in the list.

Note : STMCUFinder path, cubemx paths configured . please check below images

Jagan1_0-1761308203183.png

Jagan1_1-1761308338903.png

 

 

17 REPLIES 17

Hi, fallowed same steps, only one Zscaler is there in certmgr and exported, still same issue.

>> Restarted vs code

 

PS C:\Users\JNEKKALAPUDI\Documents\stm\test_gen\test5> setx NODE_EXTRA_CA_CERTS "C:\Users\JNEKKALAPUDI\Documents\stcertificate.cer"

SUCCESS: Specified value was saved.
PS C:\Users\JNEKKALAPUDI\Documents\stm\test_gen\test5> cube pack sync
Syncing metadata information C:/Users/JNEKKALAPUDI/AppData/Local/stm32cube/packs
Snapshot is already up to date
Syncing online metadata information C:/Users/JNEKKALAPUDI/AppData/Local/stm32cube/packs
Checking pidx https://developer.st.com/st-pack-server/api/v1/pidx/STMicroelectronics.pidx... (1/1)
Failed to download with request to https://developer.st.com/st-pack-server/api/v1/pidx/STMicroelectronics.pidx failed, reason: unable to get local issuer certificate, retrying...
Failed to download with request to https://developer.st.com/st-pack-server/api/v1/pidx/STMicroelectronics.pidx failed, reason: unable to get local issuer certificate, retrying...
Failed to download with request to https://developer.st.com/st-pack-server/api/v1/pidx/STMicroelectronics.pidx failed, reason: unable to get local issuer certificate, retrying...
Failed to download with request to https://developer.st.com/st-pack-server/api/v1/pidx/STMicroelectronics.pidx failed, reason: unable to get local issuer certificate, retrying...
Failed to download with request to https://developer.st.com/st-pack-server/api/v1/pidx/STMicroelectronics.pidx failed, reason: unable to get local issuer certificate, retrying...
Maximum number of retries reached: request to https://developer.st.com/st-pack-server/api/v1/pidx/STMicroelectronics.pidx failed, reason: unable to get local issuer certificate
Downloading https://developer.st.com/st-pack-server/api/v1/pidx/STMicroelectronics.pidx failed: FetchError: request to https://developer.st.com/st-pack-server/api/v1/pidx/STMicroelectronics.pidx failed, reason: unable to get local issuer certificate (1/75)
Syncing completed in 0.964s
PS C:\Users\JNEKKALAPUDI\Documents\stm\test_gen\test5>

Julien D
ST Employee

AFAIR there should be at least 2 certificates, the Zscaler Root CA and the Zscaler Intermediate Root CA, as shown in this screenshot (again picked on the Internet):

JulienD_0-1761316481333.png

 

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.
Jagan1
Associate

only one is there.

 

Jagan1_0-1761317078384.png

 

Jagan1
Associate

Hi,

these packs available looks like is this correct? 

Jagan1_0-1761317599169.png

 

only one is there.


 I wonder from where you get this screenshot. If from the Windows cert manager then I think it is expected since you only view the selected certificate. But if you get the certificate by clicking on the lock from a browser you may get more certificates in the chain.

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.

these packs available looks like is this correct? 


Packs are installed under %AppData%/Local/stm32cube/packs/STMicroelectronics/.

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.

Hi,

From lock icon I didn't got any certificates.

And moving back to Powershell terminal, what is the output of this script?

 

$hostname = "developer.st.com"
$tcp = New-Object Net.Sockets.TcpClient($hostname, 443)
$ssl = New-Object Net.Security.SslStream($tcp.GetStream(), $false, ({$true}))
$ssl.AuthenticateAsClient($hostname)
$cert = New-Object System.Security.Cryptography.X509Certificates.X509Certificate2 $ssl.RemoteCertificate

$chain = New-Object System.Security.Cryptography.X509Certificates.X509Chain
$chain.Build($cert) | Out-Null

foreach ($element in $chain.ChainElements) {
    Write-Host "----- Certificate -----"
    Write-Host "Subject: $($element.Certificate.Subject)"
    Write-Host "Issuer: $($element.Certificate.Issuer)"
    Write-Host "NotBefore: $($element.Certificate.NotBefore)"
    Write-Host "NotAfter: $($element.Certificate.NotAfter)"
    Write-Host "Thumbprint: $($element.Certificate.Thumbprint)"
    Write-Host ""
    $base64 = [Convert]::ToBase64String($element.Certificate.RawData)
    $pem = "-----BEGIN CERTIFICATE-----`n"
    $pem += ($base64 -split "(.{1,64})" | Where-Object { $_ -ne "" }) -join "`n"
    $pem += "`n-----END CERTIFICATE-----`n"
    Write-Output $pem
}

It is supposed to get the same list by another way.

Don't hesitate to share it by PM if you feel uncomfortable to post it publicly.

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.