pyocd / pyOCD

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

pyocd pack -u error trying to connect #923

Closed xia-rj closed 3 years ago

xia-rj commented 4 years ago

I want to using pack -u update cmsis_pack, but there have an erro. When I used curl, I find that this page has moved https://sadevicepacksprodus.blob.core.windows.net/idxfile/index.pidx. How to fix the problem.

boraozgen commented 4 years ago

Same

Aug 06 11:32:59.769 ERRO https://www.keil.com/pack/index.pidx: error trying to connect: unexpected end of file, uri: http://www.keil.com/pack/index.pidx

flit commented 4 years ago

Thanks for letting me know—I wasn't aware of this. This issue will have to be worked around on the server.

flit commented 4 years ago

The server should be fixed. Can you please test and confirm?

(Note that there are known issues downloading the STM32 F7xx, L0xx, and G4xx pack descriptors. These failures are being looked at.)

tarj commented 4 years ago

Tried pyocd pack -u 0001896:INFO:main:Updating pack index... Aug 10 20:04:57.840 ERRO download of "http://www.keil.com/pack/ARM.minar.pdsc" failed: unexpected end of file Aug 10 20:04:57.846 ERRO download of "http://www.keil.com/pack/Keil.Kinetis_K60_DFP.pdsc" failed: unexpected end of file ... Aug 10 20:08:07.274 WARN tried to parse element "package" from element "html" Aug 10 20:08:07.281 WARN tried to parse element "package" from element "html" Aug 10 20:08:07.342 WARN error while parsing attribute at position 26: Got 2 '=' tokens ... Complete log: pyocd_pack_update.log

flit commented 4 years ago

Thanks for testing and the log. I'll keep working on it.

flit commented 4 years ago

What's really strange is that only a handful of STM32 packs fail for me. I also don't see the Maxim failures. (The Qorvo failures are known; there's nothing we can do about it.)

flit commented 4 years ago

Ok, it should be fixed completely now. Please retest and confirm. (Really sorry for the trouble!)

flit commented 4 years ago

@tarj I think you might have happened to test just as the server was being modified, which could account for seeing the failure again.

flit commented 4 years ago

Closing. Everything is working now. If this pops up again please reopen.

frmdstryr commented 3 years ago

Just hit this while trying to setup a new system today:

(base) user@hp:~$ pyocd pack -u
0000647:INFO:__main__:Updating pack index...
Oct 08 19:32:49.077 ERRO https://www.keil.com/pack/index.pidx: error trying to connect: unexpected end of file, uri: http://www.keil.com/pack/index.pidx
Could not open file "/home/user/.local/share/cmsis-pack-manager/aliases.json"
flit commented 3 years ago

@frmdstryr Thanks for reporting. I see that now too. Something changed on the keil.com server. I've raised it internally so hopefully it will be fixed soon.

As a temporary workaround you can follow the instructions regarding manual pack usage from the pyocd target support docs.

flit commented 3 years ago

Fixed (again).