-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Debug logging options not enabled by tusb_config.h, ep_dir_string not defined #2555
Comments
Either pico-sdk or you messed up the includes.
Seems 6dc714b has some left ups... |
Actually, I updated the TinyUSB submodule and am using the latest code. I'll try later to trace the includes, but in any case, setting CFG_TUSB_DEBUG in my tusb_config.h didn't do the job. Not sure why. |
I went ahead and pasted in the missing ep_dir_string, and I'm able to get debug messages. However, there is now a panic that occurs that did not occur without the debug messages. |
should be fixed, I normally only have DEBUG=2 with rp2040 since log via UART can mess up with timing when DEBUG=3. |
Thanks for the quick fix! Regarding my other bug report (#2556), however, the two-device plug-in problem persists, and there is a panic that occurs when DEBUG=2 that doesn't occur when DEBUG=1 or 0. |
Operating System
Others
Board
Raspberry PI Pico
Firmware
Custom firmware. You can see my whole project here: https://github.com/theosib/pico_vga/tree/main
What happened ?
I'm trying to debug TinyUSB. I want to find out why plugging in two USB devices at once results in no devices found. You can see more detail at raspberrypi/pico-sdk#1680.
The first thing I did was set CFG_TUSB_DEBUG to 3 in my project's tusb_config.h, which is supposed to get included by TinyUSB for various config options. But this didn't work. I think it's because src/common/tusb_debug.h doesn't have an #include directive for this. So I added a definition for CFG_TUSB_DEBUG to my CMakeLists.txt file.
This resulted in a linker error:
And indeed, this function isn't defined anywhere in TinyUSB.
How to reproduce ?
target_compile_definitions(${PROJECT} PRIVATE CFG_TUSB_DEBUG=3
))
Debug Log as txt file (LOG/CFG_TUSB_DEBUG=2)
This is actually the problem. I can't successfully enable debugging.
Screenshots
No response
I have checked existing issues, dicussion and documentation
The text was updated successfully, but these errors were encountered: