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

My ESP32-S2 does not work when connected to unpowered USB 2.0 hub #140

Open
UnaiUribarri-TomTom opened this issue May 16, 2023 · 2 comments

Comments

@UnaiUribarri-TomTom
Copy link

It works with USB 3.0 hubs and also with powered USB 2.0 hubs. After some debugging, it seems that my OS complains that there is not enough energy to feed ESP32-S2 because it is requesting 500mA and my unpowered hub can only provide 450mA.

I know that ESP32-S2 is happy with much less power than 500mA... how can I reduce the power requirement that my computer sees?

@UnaiUribarri-TomTom
Copy link
Author

Could be related with this line of code?

uint8_t dcd[TUD_CONFIG_DESC_LEN] = {TUD_CONFIG_DESCRIPTOR(1, count, 0, CONFIG_TOTAL_LEN, TUSB_DESC_CONFIG_ATT_REMOTE_WAKEUP, 500)};

Would you accept a PR making that hard-coded 500 configurable?

@chegewara
Copy link
Owner

Sure, i will accept reasonable PR.

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