Skip to content

platformio: compile error #6260

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
gin66 opened this issue Feb 11, 2022 · 1 comment
Closed
1 task done

platformio: compile error #6260

gin66 opened this issue Feb 11, 2022 · 1 comment
Labels
IDE: PlaformIO Issue relates to PlatformIO IDE

Comments

@gin66
Copy link

gin66 commented Feb 11, 2022

Board

esp32dev

Device Description

nothing connected

Hardware Configuration

nothing connected

Version

v2.0.2

IDE Name

PlatformIO

Operating System

Linux

Flash frequency

40 MHz (not relevant)

PSRAM enabled

no

Upload speed

115200 nothing connected

Description

PlatformIO compilation fails

[env:esp32arduinoV44beta]
platform    = espressif32
platform_packages =
    platformio/framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git
board       = esp32dev
framework   = arduino
board_build.f_cpu = 240000000L
lib_extra_dirs = ../../..

Sketch

https://github.com/gin66/FastAccelStepper/tree/master/examples/UsageExample

Debug Message

In file included from /home/jochen/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/driver/include/driver/adc.h:14:0,
                 from /home/jochen/.platformio/packages/framework-arduinoespressif32/cores/esp32/esp32-hal-adc.c:20:
/home/jochen/.platformio/packages/framework-arduinoespressif32/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. */
                           ^
cc1: warning: unrecognized command line option '-Wno-frame-address'
Compiling .pio/build/esp32arduinoV44beta/FrameworkArduino/esp32-hal-cpu.c.o
Compiling .pio/build/esp32arduinoV44beta/FrameworkArduino/esp32-hal-dac.c.o
Compiling .pio/build/esp32arduinoV44beta/FrameworkArduino/esp32-hal-gpio.c.o
*** [.pio/build/esp32arduinoV44beta/FrameworkArduino/esp32-hal-adc.c.o] Error 1
In file included from /home/jochen/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/hal/include/hal/dac_types.h:4:0,
                 from /home/jochen/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/driver/include/driver/dac_common.h:16,
                 from /home/jochen/.platformio/packages/framework-arduinoespressif32/cores/esp32/esp32-hal-dac.c:22:
/home/jochen/.platformio/packages/framework-arduinoespressif32/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. */
                           ^
cc1: warning: unrecognized command line option '-Wno-frame-address'
*** [.pio/build/esp32arduinoV44beta/FrameworkArduino/esp32-hal-dac.c.o] Error 1
======================================================== [FAILED] Took 41.71 seconds ========================================================

Other Steps to Reproduce

Only the latest IDF is causing problems.
The platformio standard version works.

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

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.
@gin66 gin66 added the Status: Awaiting triage Issue is waiting for triage label Feb 11, 2022
@VojtechBartoska
Copy link
Contributor

Hi,

Thanks for your contribution. The reason is that Arduino core ESP32 v2.0.2 is not supported by PlatformIO.

Did you check this issue #6044 which is pinned at the top of issue tracker? There is a link to original PlatformIO issue where you can find a workaround.

I'm closing the issue as the workaround can be found in link above.

@VojtechBartoska VojtechBartoska added IDE: PlaformIO Issue relates to PlatformIO IDE and removed Status: Awaiting triage Issue is waiting for triage labels Feb 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
IDE: PlaformIO Issue relates to PlatformIO IDE
Projects
None yet
Development

No branches or pull requests

2 participants