Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4615

SDK • Using printf with TinyUSB HID: Is It Possible?

$
0
0
Hello,

I'm new to using the SDK and recently tried the "Hello World" example with USB (pico-examples\hello_world\usb), which worked fine.

Next, I wanted to send keyboard commands from the Raspberry Pi, so I tried adding tinyusb_device to the project. I added tinyusb_device to the target_link_libraries section in CMakeLists.txt as follows:

CMakeLists.txt
target_link_libraries(hello_usb pico_stdlib tinyusb_device)

However, after doing this, printf no longer worked. (My PC didn't recognize any serial port.)
Is there a way to use printf and tinyusb_device together? I would like to use printf for debugging purposes only.

Best regards,

Statistics: Posted by tsunokawa — Tue Nov 12, 2024 8:04 am — Replies 1 — Views 20



Viewing all articles
Browse latest Browse all 4615

Trending Articles