-
Notifications
You must be signed in to change notification settings - Fork 25
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
Modified main.c to enable uart1 when UART1_CDC is set #45
base: main
Are you sure you want to change the base?
Conversation
also encountered a weird bug that linux kernel failed to initialize the device if
|
There are also other fields to modify if wanting to increase the number of CDC interfaces.
Hopefully this is just this... |
Oh I assumed they're used for different things, thanks. What about the changes I propose? |
I am split between making the default firmware more configurable, or instead using separate examples with no The goal is to avoid a lot of cascaded configurations to keep TinyUSB config as direct as possible, to help with troubleshooting. I will be able to come back to it mid-week, is it ok? First trying an example with both UART enabled at once, which will show the needed configuration, this should help discovering what is missing here... Many thanks for pointing this out! Maybe having both UARTs enabled by default is the way to go! |
Since you removed CDC SPI, maybe you need to keep it to 3 instead of incrementing it to 4: |
Yes, that's my current config. It works :)
I find it useful, because I define one UART block in FPGA for debugging (mainly programming the SPRAM) and the other for regular I/O. |
Ah right, that sounds like the way forward for everyone working with UART as a debug protocol as well as control protocol! I think this will be appreciated: a single UART core to write, and reusing it across for various communication purposes. Maybe debugging/controlling two different cores at once that way. |
Fixes #44