Open rapgenic opened 1 year ago
I don't know what caused it, but now it seems it's working again...
I was having this issue today.
Manually installing the latest pyocd==0.34.3
and cmsis_pack_manager==0.5.2
versions helped, since the newer version will skip failing PDSC downloads without aborting the whole pyocd pack update
operation.
IMHO the whole PDSC retrieval mechanism is flawed, they should be centrally cached somewhere reliable, rather than require users to directly download them from the manufacturer's (often unreliable) sites—but that's a conversation for the cmsis-pack-manager
repo.
There are a number of things that could be improved with PDSC and pack management, for sure… 🥲 That's really a discussion for the Open-CMSIS-Pack working group. cmsis-pack-manager
(and pyocd by way of it) just implement the specification. cmsis-pack-manager
could certainly extend the implementation, but I'd personally rather it be solved upstream so everyone benefits.
Fwiw, I haven't seen this issue before. It could perhaps be caused by a vendor adding an incorrect path to their index, then fixing it?
Regardless, the actual error should be caught and ignored. That will have to be done in cmsis-pack-manager
, so the index update can finish retrieving valid PDSCs. Created pyocd/cmsis-pack-manager#210.
That's really a discussion for the Open-CMSIS-Pack working group
Understood, thank you for the guidance. I only have cursory knowledge of Open-CMSIS-Pack stemming from this rabbit hole I fell into today, when all I really wanted to do was flash a Zephyr build via pyOCD to a STM32WL uC :smile:
It could perhaps be caused by a vendor adding an incorrect path to their index
I suppose that's possible, I was initially using pyOCD 0.29.0 and cmsis-pack-manager 0.3.0 as those are the versions pulled by the respective requirements-run-test.txt
from Zephyr.
Before the error mentioned in this issue, I actually ran into a different error for another pack, where a manufacturer's site couldn't be resolved by my DNS provider (mongoose.ws via Quad9). This had also stopped the pack update
operation.
After working around the DNS issue, I ran into the issue in this thread, hence my disillusionment with the manufacturers' hosting capabilities :wink: Even now I still get a large list of timeout issues in retrieving many packs, though it's not a big issue as these are skipped after the timeout duration.
cmsis-pack-manager has come a long way in dealing with the pack retrieval issues since 0.3.0 though, for which I'm very thankful.
I'll try to get a PR merged in Zephyr that bumps the required pyOCD (and thus cmsis-pack-manager) version, so fewer people see these issues in the wild.
When I try to run
pyocd pack update
, I get the following error:I suspect this might be actually a
cmsis_pack_manager
issue however, given the stacktrace