#What error specifically

1 messages · Page 1 of 1 (latest)

marsh geyser
#

<command-line>: error: token "{" is not valid in preprocessor expressions
C:\Users\kgled\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.11\cores\esp32\USBCDC.h:141:5: note: in expansion of macro 'ARDUINO_USB_CDC_ON_BOOT'
#if ARDUINO_USB_CDC_ON_BOOT && !ARDUINO_USB_MODE //Serial used for USB CDC
^~~~~~~~~~~~~~~~~~~~~~~
<command-line>: error: token "{" is not valid in preprocessor expressions
C:\Users\kgled\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.11\cores\esp32\FirmwareMSC.h:66:5: note: in expansion of macro 'ARDUINO_USB_MSC_ON_BOOT'
#if ARDUINO_USB_MSC_ON_BOOT
^~~~~~~~~~~~~~~~~~~~~~~
<command-line>: error: token "{" is not valid in preprocessor expressions
C:\Users\kgled\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.11\cores\esp32\FirmwareMSC.cpp:420:5: note: in expansion of macro 'ARDUINO_USB_MSC_ON_BOOT'
#if ARDUINO_USB_MSC_ON_BOOT
^~~~~~~~~~~~~~~~~~~~~~~
<command-line>: error: token "{" is not valid in preprocessor expressions
C:\Users\kgled\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.11\cores\esp32\USBCDC.h:141:5: note: in expansion of macro 'ARDUINO_USB_CDC_ON_BOOT'
#if ARDUINO_USB_CDC_ON_BOOT && !ARDUINO_USB_MODE //Serial used for USB CDC
^~~~~~~~~~~~~~~~~~~~~~~

exit status 1

Compilation error: exit status 1

#

for the reference I used adafruit_feather_esp32s3

#

it uses the tinyusb bootloader, but I currently use the CP2102, so I would have to remove the tinyusb otg parts

graceful niche
#

token "{" is not valid in preprocessor expressions is the clue there. An extra character or missing newline?

graceful niche
#

Probably not, which means the game becomes figuring out what's triggering that.

marsh geyser
#

{' is not valid in preprocessor expressions" typically occurs when there is an unexpected brace in a preprocessor directive such as #if, #ifdef, etc

#

I think it has to do with the USB macros