Skip to content

Error Compiling adc_types.h with Arduino IDE 2.1.0 #8347

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

Closed
1 task done
Patronics opened this issue Jun 25, 2023 · 5 comments
Closed
1 task done

Error Compiling adc_types.h with Arduino IDE 2.1.0 #8347

Patronics opened this issue Jun 25, 2023 · 5 comments
Assignees
Labels
Resolution: More info needed More info must be provided in this issue Resolution: Unable to reproduce With given information issue is unable to reproduce

Comments

@Patronics
Copy link

Board

ESP32-PICO-D4

Device Description

Watchy V2.0

Hardware Configuration

N/A

Version

v2.0.9

IDE Name

Arduino IDE 2.1.0

Operating System

MacOS

Flash frequency

N/A

PSRAM enabled

no

Upload speed

N/A

Description

When compiling from the Arduino IDE 2.1.0, I get the following error (but the same program compiles fine in the Arduino IDE 1.8.16). This seems to be the same error as in issue #6647, which is vague about how it was fixed, if it was at all (comments seem to say the issue is with PlatformIO, but I'm not using PlatformIO.

                 from /Users/patrick/Library/Arduino15/packages/esp32/hardware/esp32/2.0.9/cores/esp32/esp32-hal-adc.c:16:
/Users/patrick/Library/Arduino15/packages/esp32/hardware/esp32/2.0.9/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. */

Sketch

the examples here: https://github.com/sqfmi/Watchy

Debug Message

/Users/patrick/Library/Arduino15/packages/esp32/hardware/esp32/2.0.9/tools/sdk/esp32/include/driver/include/driver/adc.h:14:0,
                 from /Users/patrick/Library/Arduino15/packages/esp32/hardware/esp32/2.0.9/cores/esp32/esp32-hal-adc.c:16:
/Users/patrick/Library/Arduino15/packages/esp32/hardware/esp32/2.0.9/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. */

Other Steps to Reproduce

It works fine in Arduino 1.8.16, but gives the above error with Arduino 2.1.0

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.
@Patronics Patronics added the Status: Awaiting triage Issue is waiting for triage label Jun 25, 2023
@VojtechBartoska
Copy link
Contributor

same here, can you please help with triage @P-R-O-C-H-Y?

@P-R-O-C-H-Y
Copy link
Member

@VojtechBartoska I am not able to reproduce the error with Arduino IDE 2.1.0.

@VojtechBartoska VojtechBartoska added Resolution: Unable to reproduce With given information issue is unable to reproduce Resolution: More info needed More info must be provided in this issue and removed Status: Awaiting triage Issue is waiting for triage labels Jun 26, 2023
@P-R-O-C-H-Y
Copy link
Member

@Patronics Can you please send more information on how to replicate the issue? Exact example will be handy :)

@P-R-O-C-H-Y
Copy link
Member

Closing this issue as no more informations provided and I was unable to reproduce it.

@HenniePeters
Copy link

I had the same error in Arduino IDE 1.8.19
I could solve it by updating ESP32 in the boards manager from 2.0.4 to 2.0.11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: More info needed More info must be provided in this issue Resolution: Unable to reproduce With given information issue is unable to reproduce
Projects
None yet
Development

No branches or pull requests

4 participants