Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multithreaded CMSIS-Pack index update #468

Open
flit opened this issue Dec 29, 2020 · 8 comments
Open

Multithreaded CMSIS-Pack index update #468

flit opened this issue Dec 29, 2020 · 8 comments

Comments

@flit
Copy link
Contributor

flit commented Dec 29, 2020

The CMSIS-Pack plugin should use multithreaded downloads of PDSC files to update the index.

For comparison, cmsis-pack-manager can update the entire index (currently 695 packs) in less than 20 seconds, including download and parsing the PDSC. Most of that time is waiting for a request for an invalid pack URL to time out; the actual update time for 694 packs is about 3 seconds.

@ilg-ul
Copy link
Contributor

ilg-ul commented Dec 30, 2020

Yes, that would be interesting to know how they did it.

Feel free to investigate and suggest solutions.

@flit
Copy link
Contributor Author

flit commented Dec 30, 2020

If I get a chance, I'll try to work on it.

@ilg-ul
Copy link
Contributor

ilg-ul commented Dec 30, 2020

I suggest you first make a plan, and then we discuss possible solutions.

@flit
Copy link
Contributor Author

flit commented Dec 30, 2020

Sounds good.

@ilg-ul
Copy link
Contributor

ilg-ul commented Dec 30, 2020

Don't get too excited, I completely forgot how that code works, so I can't be of much practical help. :-(

Plus that, as I mentioned, as soon as I reorganise my projects, I'll no longer use CMSIS Packs at all, so my interest in spending time on them is pretty low.

@flit
Copy link
Contributor Author

flit commented Dec 30, 2020

Understood. My interest is that users can take advantage of CMSIS Packs to get both SVDs and pyocd config data via an integrated UI. I don't need it for myself (cmsis-pack-manager is integrated into pyocd). (I'm also thinking about making the SVD from pyocd available to the launch config.)

@ilg-ul
Copy link
Contributor

ilg-ul commented Dec 30, 2020

The J-Link plug-in automatically accesses the SVD if the device name was correctly associated with the project and the CMSIS Pack is available.

Anyway, an alternate solution with only a bit more effort to configure is to copy the SVD in the project, and configure the path to it in the SVD tab. And since 6.1.0, the SVD can also be compressed with zip.

@flit
Copy link
Contributor Author

flit commented Dec 30, 2020

Nice, thanks for the tips.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants