Error when compiling the TinyUSB examples for ESP32-S3

time4tux
Posts: 1
Joined: Fri May 20, 2022 4:25 am

Error when compiling the TinyUSB examples for ESP32-S3

Postby time4tux » Fri May 20, 2022 4:41 am

What it the secret to compiling the examples in:
esp-idf/components/tinyusb/tinyusb/examples/device/hid_composite_freertos
and
esp-idf/components/tinyusb/tinyusb/examples/device/cdc_msc_freertos ?

Using 'make BOARD=espressif_addax_1 all' in these directories results in: #error "This port requires __NVIC_PRIO_BITS to be defined"

If I clone the original TinyUSB repo (https://github.com/hathach/tinyusb) the examples compile without an error.

What am I missing?

Thanks

kohlschuetter
Posts: 1
Joined: Sun Aug 14, 2022 4:45 pm

Re: Error when compiling the TinyUSB examples for ESP32-S3

Postby kohlschuetter » Sun Aug 14, 2022 4:49 pm

Have you included a "FreeRTOSConfig.h" in your project? Delete it and try again.

from https://docs.espressif.com/projects/esp ... ertos.html:
Vanilla FreeRTOS allows ports and applications to configure the kernel by adding various #define config... macros to FreeRTOSConfig.h. Through these macros, the kernel’s scheduling behavior and various kernel features can be enabled or disabled. However, in ESP-IDF FreeRTOS, the ``FreeRTOSConfig.h`` file is considered a private and must not be modified by users. Any FreeRTOS configuration that is exposed to the user will be done so via menuconfig.
I'm also experimenting with this TinyUSB code, and even after fixing this bug, I'm encountering other issues, so YMMV.

Who is online

Users browsing this forum: No registered users and 115 guests