pyocd / pyOCD

Open source Python library for programming and debugging Arm Cortex-M microcontrollers
https://pyocd.io
Apache License 2.0
1.13k stars 484 forks source link

Cannot install ST32ML4 packs #887

Closed fgr1986 closed 4 years ago

fgr1986 commented 4 years ago

Possibly related to https://github.com/mbedmicro/pyOCD/issues/643

pyocd pack -i STM32L4xx_DFP
0000339:WARNING:__main__:No matching devices. Please make sure the pack index is up to date.
pyocd pack --install stm32l476rg
0000335:WARNING:__main__:No matching devices. Please make sure the pack index is up to date.

While pyocd -u gives:

pyocd pack -u                                                                                                                                                          
0000225:INFO:__main__:Updating pack index...                                                                                                                                                                                                  
Jun 05 21:55:34.099 ERRO download of "https://www.keil.com/pack/Keil.STM32G0xx_DFP.pdsc" failed: https://www.keil.com/pack/Keil.STM32G0xx_DFP.pdsc: error trying to connect: unexpected end of file                                           
Jun 05 21:55:34.099 ERRO download of "https://www.keil.com/pack/Keil.STM32F7xx_DFP.pdsc" failed: https://www.keil.com/pack/Keil.STM32F7xx_DFP.pdsc: error trying to connect: unexpected end of file                                           
Jun 05 21:55:34.163 ERRO download of "https://www.keil.com/pack/Keil.STM32H7xx_DFP.pdsc" failed: https://www.keil.com/pack/Keil.STM32H7xx_DFP.pdsc: error trying to connect: unexpected end of file                                           
Jun 05 21:55:34.189 ERRO download of "https://www.keil.com/pack/Keil.STM32L4xx_DFP.pdsc" failed: https://www.keil.com/pack/Keil.STM32L4xx_DFP.pdsc: error trying to connect: unexpected end of file                                           
Jun 05 21:55:34.881 ERRO download of "http://www.qorvo.com/extra/keil_pack/Active-Semi.PAC52XX.pdsc" failed: https://www.qorvo.com/extra/keil_pack/Active-Semi.PAC52XX.pdsc: error trying to connect: Connection reset by peer (os error 104) 
Jun 05 21:55:34.989 ERRO download of "http://www.qorvo.com/extra/keil_pack/Active-Semi.PAC55XX.pdsc" failed: https://www.qorvo.com/extra/keil_pack/Active-Semi.PAC55XX.pdsc: error trying to connect: Connection reset by peer (os error 104) 
Jun 05 21:55:35.937 WARN tried to parse element "package" from element "html"                                                                                                                                                                 
Jun 05 21:55:35.937 WARN tried to parse element "package" from element "html"          
...

Thanks

flit commented 4 years ago

Sorry, I'm afraid this is an issue in the Rust Reqwest and/or RusTLS libraries that are used by cmsis-pack-manager for downloading packs. At the moment we don't have a solution.

The workaround is to download the DFP directly from the Keil CMSIS-Pack list and use the --pack argument for pyocd.

fgr1986 commented 4 years ago

Thanks @flit I will then close the ticket. Please re-open if you find it required.