Error using arduino-esp32 v2.0.5

oscarbaselga
Posts: 1
Joined: Mon Sep 19, 2022 9:07 am

Error using arduino-esp32 v2.0.5

Postby oscarbaselga » Mon Sep 19, 2022 9:11 am

Hi there,

It is my first time using arduino-esp32 and I followed these steps: https://docs.espressif.com/projects/ard ... html#linux. When I try to compile my sketch, I get the next error:

Code: Select all

In file included from /home/oscar/Arduino/hardware/espressif/esp32/tools/sdk/esp32/include/hal/include/hal/dac_types.h:4:0,
                 from /home/oscar/Arduino/hardware/espressif/esp32/tools/sdk/esp32/include/driver/include/driver/dac_common.h:16,
                 from /home/oscar/Arduino/hardware/espressif/esp32/cores/esp32/esp32-hal-dac.c:22:
/home/oscar/Arduino/hardware/espressif/esp32/tools/sdk/esp32/include/hal/include/hal/adc_types.h:90:27: error: expected ',' or '}' before '__attribute__'
     ADC_DIGI_FORMAT_12BIT __attribute__((deprecated)),  /*!<ADC to DMA data format,                [15:12]-channel, [11: 0]-12 bits ADC data (`adc_digi_output_data_t`). Note: For single convert mode. */
                           ^
In file included from /home/oscar/Arduino/hardware/espressif/esp32/tools/sdk/esp32/include/driver/include/driver/adc.h:14:0,
                 from /home/oscar/Arduino/hardware/espressif/esp32/cores/esp32/esp32-hal-adc.c:16:
/home/oscar/Arduino/hardware/espressif/esp32/tools/sdk/esp32/include/hal/include/hal/adc_types.h:90:27: error: expected ',' or '}' before '__attribute__'
     ADC_DIGI_FORMAT_12BIT __attribute__((deprecated)),  /*!<ADC to DMA data format,                [15:12]-channel, [11: 0]-12 bits ADC data (`adc_digi_output_data_t`). Note: For single convert mode. */
                           ^
exit status 1
Error compiling for board T-Beam.
Any help?

Oscar

Who is online

Users browsing this forum: No registered users and 100 guests