Page 1 of 1

Error when compiling the TinyUSB examples for ESP32-S3

Posted: Fri May 20, 2022 4:41 am
by time4tux
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

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

Posted: Sun Aug 14, 2022 4:49 pm
by kohlschuetter
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.