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

stdio_usb improvements #871

Merged
merged 3 commits into from
Jun 20, 2022
Merged

stdio_usb improvements #871

merged 3 commits into from
Jun 20, 2022

Conversation

kilograham
Copy link
Contributor

  • Use shared IRQ if available to avoid 1ms timer.
  • Allow use of stdio_usb with user's tinyusb setup if it has CDC

@kilograham
Copy link
Contributor Author

fixes #838

@kilograham kilograham added this to the 1.3.2 milestone Jun 17, 2022
@kilograham kilograham merged commit 7858601 into develop Jun 20, 2022
@kilograham kilograham deleted the stdio_usb_improvements branch June 20, 2022 14:51
kilograham added a commit that referenced this pull request Aug 8, 2022
… alarm_pool_core_num() API (#918)

This issue addresses possible starvation issues when using `getchar()` with `stdio_usb` and also fixes possible missing of IRQs as a result of #871
cniles pushed a commit to cniles/pico-sdk that referenced this pull request Aug 31, 2022
… alarm_pool_core_num() API (raspberrypi#918)

This issue addresses possible starvation issues when using `getchar()` with `stdio_usb` and also fixes possible missing of IRQs as a result of raspberrypi#871
@eustas
Copy link

eustas commented Nov 4, 2022

Hi. This PR has added a check that callback is executed on the right core... But what is the way to setup default alarm pool to fire on core1? Thanks in advance.

@thewh1teagle
Copy link

Hi
How can I use it?
I tried to set

pico_enable_stdio_usb(server 1)

but got the warning

stdio USB was configured along with user use of TinyUSB device mode, but CDC is not enabled

Trying to make the PI as HID + Serial at the same time

@lurch
Copy link
Contributor

lurch commented Dec 30, 2023

All of the Raspberry Pi engineers are currently on holiday, so if none of the examples at https://github.com/raspberrypi/pico-examples/blob/master/README.md#usb-device help, you'll probably get a quicker response from https://forums.raspberrypi.com/

@peterharperuk
Copy link
Contributor

Don't configure stdio to use usb. Use a UART instead

@thewh1teagle
Copy link

@peterharperuk
But I want to use the same cable for both HID + CDC (for serial) without special tools.

@thewh1teagle
Copy link

thewh1teagle commented Dec 30, 2023

I found a way to do that and it works. the PICO act as HID + CDC device and I can read serial output in my PC in the same time.
example here

But I'm still looking for relevant documentation about that and maybe official example

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

Successfully merging this pull request may close these issues.

6 participants