debugprobe icon indicating copy to clipboard operation
debugprobe copied to clipboard

USB Power Descriptor a little on the low side for -DDEBUG_ON_PICO=1?

Open peardox opened this issue 1 year ago • 2 comments
trafficstars

In usb_descriptors.c the max power in ma is defined as 100ma via TUD_CONFIG_DESCRIPTOR(1, ITF_NUM_TOTAL, 0, CONFIG_TOTAL_LEN, 0, 100)

While this seems fine for the pre-built probe it does seem a little stingy if -DDEBUG_ON_PICO=1 as if for example you had a pico_w attached directly to a pico and sharing it's power it is quite easy to envisage transient larger power requirements

If a pico is switched to BOOTSEL then the USB descriptor rates it at 500ma - which seems a far more sensible value to use

peardox avatar Aug 22 '24 13:08 peardox

I was wondering if powering 2 Picos from a single USB port is a recommended option, but then I found it explicitly mentioned in the getting-started-guide: Screenshot from 2024-08-22 14-37-47

lurch avatar Aug 22 '24 13:08 lurch

I've been trying to do exactly as shown above and it ain't working - built many versions so was wondering if power was a problem The ready-buillt probe works fine but then you end up with a nasty spaghetti of USB cables Current plan is to have a probe attached to another device but nothing else

peardox avatar Aug 22 '24 13:08 peardox

It's explicitly set low because otherwise and if plugged into a bus-powered hub, it will usually get ignored by the host OS. That's more irritating to debug for users.

P33M avatar Nov 07 '24 15:11 P33M