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

tusb_config.h mising in /pico-sdk/lib/tinyusb/src/ #2934

Closed
1 task done
g3noce opened this issue Jan 8, 2025 · 3 comments
Closed
1 task done

tusb_config.h mising in /pico-sdk/lib/tinyusb/src/ #2934

g3noce opened this issue Jan 8, 2025 · 3 comments
Labels

Comments

@g3noce
Copy link

g3noce commented Jan 8, 2025

Operating System

Linux

Board

pico

Firmware

don't know

What happened ?

/pico-sdk/lib/tinyusb/src/tusb_option.h:238:12: fatal error: tusb_config.h: No such file or directory
238 | #include "tusb_config.h"

How to reproduce ?

i include this:
#include <stdio.h>
#include "pico/stdlib.h"
#include "hardware/gpio.h"
#include "bsp/board.h"
#include "tusb.h"

Debug Log as txt file (LOG/CFG_TUSB_DEBUG=2)

In file included from /mnt/e/Genoce/pico/pico-sdk/lib/tinyusb/src/common/tusb_common.h:74,
from /mnt/e/Genoce/pico/pico-sdk/lib/tinyusb/src/tusb.h:37,
from /mnt/e/Genoce/pico/pico-sdk/lib/tinyusb/hw/bsp/board_api.h:39,
from /mnt/e/Genoce/pico/pico-sdk/src/rp2_common/tinyusb/include/bsp/board.h:10,
from /mnt/e/Genoce/pico/external_mouse/external_mouse.c:4:
/mnt/e/Genoce/pico/pico-sdk/lib/tinyusb/src/tusb_option.h:238:12: fatal error: tusb_config.h: No such file or directory
238 | #include "tusb_config.h"
| ^~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/external_mouse.dir/build.make:79: CMakeFiles/external_mouse.dir/external_mouse.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:2257: CMakeFiles/external_mouse.dir/all] Error 2
make: *** [Makefile:91: all] Error 2

Screenshots

No response

I have checked existing issues, dicussion and documentation

  • I confirm I have checked existing issues, dicussion and documentation.
@g3noce g3noce added the Bug 🐞 label Jan 8, 2025
@OrhanYigitDurmaz
Copy link

Operating System

Linux

Board

pico

Firmware

don't know

What happened ?

/pico-sdk/lib/tinyusb/src/tusb_option.h:238:12: fatal error: tusb_config.h: No such file or directory 238 | #include "tusb_config.h"

How to reproduce ?

i include this: #include <stdio.h> #include "pico/stdlib.h" #include "hardware/gpio.h" #include "bsp/board.h" #include "tusb.h"

Debug Log as txt file (LOG/CFG_TUSB_DEBUG=2)

In file included from /mnt/e/Genoce/pico/pico-sdk/lib/tinyusb/src/common/tusb_common.h:74, from /mnt/e/Genoce/pico/pico-sdk/lib/tinyusb/src/tusb.h:37, from /mnt/e/Genoce/pico/pico-sdk/lib/tinyusb/hw/bsp/board_api.h:39, from /mnt/e/Genoce/pico/pico-sdk/src/rp2_common/tinyusb/include/bsp/board.h:10, from /mnt/e/Genoce/pico/external_mouse/external_mouse.c:4: /mnt/e/Genoce/pico/pico-sdk/lib/tinyusb/src/tusb_option.h:238:12: fatal error: tusb_config.h: No such file or directory 238 | #include "tusb_config.h" | ^~~~~~~~~~~~~~~ compilation terminated. make[2]: *** [CMakeFiles/external_mouse.dir/build.make:79: CMakeFiles/external_mouse.dir/external_mouse.c.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:2257: CMakeFiles/external_mouse.dir/all] Error 2 make: *** [Makefile:91: all] Error 2

Screenshots

No response

I have checked existing issues, dicussion and documentation

* [x]  I confirm I have checked existing issues, dicussion and documentation.

you need to create a tusb_config.h file

@dhalbert
Copy link
Contributor

Look here: pico-sdk/src/rp2_common/pico_stdio_usb/include/tusb_config.h

@hathach
Copy link
Owner

hathach commented Feb 7, 2025

tusb_config.h must be provided by application not the stack itself

@hathach hathach closed this as completed Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants