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

Slow and large installation due to unnecessary TinyUSB components #334

Closed
Liftyee opened this issue Apr 26, 2023 · 5 comments
Closed

Slow and large installation due to unnecessary TinyUSB components #334

Liftyee opened this issue Apr 26, 2023 · 5 comments
Labels
third-party An issue with third-party software or hardware.

Comments

@Liftyee
Copy link

Liftyee commented Apr 26, 2023

When installing the pico-sdk, the installation takes much longer than it should because many unnecessary drivers from the TinyUSB repo are cloned individually due to the references. https://github.com/hathach/tinyusb/tree/86c416d4c0fb38432460b3e11b08b9de76941bf5/hw/mcu Example
folder that is slowing down the installation - surely all the infineon, wch, etc. drivers are not needed?

The pico-sdk could be made much smaller and quicker to install if only the required parts of TinyUSB were included.

@dhalbert
Copy link

TinyUSB recently removed submodules. See hathach/tinyusb#1947 and hathach/tinyusb#1961. So maybe this problem will go away when TinyUSB is updated?

Tagging @hathach for interest.

@Liftyee
Copy link
Author

Liftyee commented Apr 26, 2023

Looks like hathach/tinyusb#1947 will improve install times, although hopefully the python script won't break anything.

Leaving issue open until that PR is merged.

@lurch
Copy link
Contributor

lurch commented Apr 26, 2023

See also raspberrypi/pico-sdk#1044

You only get these "unnecessary drivers" if you do a recursive clone, which isn't what https://datasheets.raspberrypi.com/pico/getting-started-with-pico.pdf says to do (for precisely this reason 😉 ). I'm curious which instructions you were following which means you are pulling down all the submodules?

@Liftyee
Copy link
Author

Liftyee commented Jun 12, 2023

Perhaps the problem lies in my development workflow. I am using the Earle Philhower Arduino core via PlatformIO in Visual Studio Code, and something along the chain (I think it is PlatformIO) is doing a recursive clone on the pico-sdk repo. I'm not manually installing the SDK, so I haven't followed those instructions. It seems to occur when the Earle Philhower core is cloned recursively by PlatformIO, which works in reasonable time for other linked repos but has the aforementioned issues with this one.

@aallan aallan transferred this issue from raspberrypi/pico-sdk Jun 12, 2023
@aallan aallan added the third-party An issue with third-party software or hardware. label Jun 12, 2023
@aallan
Copy link
Contributor

aallan commented Jun 12, 2023

Raspberry Pi only directly supports our official C SDK and the MicroPython environment. Unfortunately, PlatformIO isn't an officially supported environment.

@aallan aallan closed this as not planned Won't fix, can't repro, duplicate, stale Jun 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
third-party An issue with third-party software or hardware.
Projects
None yet
Development

No branches or pull requests

4 participants