Skip to content

Compilation error with Arduino Core 3.0.0 (esp-idf-v5.1-libs branch) #8024

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
SuGlider opened this issue Apr 3, 2023 · 1 comment
Closed
1 task done
Assignees
Labels
Chip: ESP32-C3 Issue is related to support of ESP32-C3 Chip Status: Solved Type: Bug 🐛 All bugs
Milestone

Comments

@SuGlider
Copy link
Collaborator

SuGlider commented Apr 3, 2023

Board

ESP32-C3

Device Description

C3 Devboard

Hardware Configuration

N/A

Version

other

IDE Name

Arduino IDE

Operating System

Win11

Flash frequency

40MHz

PSRAM enabled

no

Upload speed

115200

Description

When compiling any sketch with the ESP32-C3 and Debug Level as Verbose, a compilation error occurs.

Sketch

// Any sketch, including a BareMinimum example like this

void setup() {
  // put your setup code here, to run once:

}

void loop() {
  // put your main code here, to run repeatedly:

}

Debug Message

<command-line>: warning: ISO C99 requires whitespace after the macro name
In file included from C:\Users\rocor\Documents\Arduino\hardware\espressif\esp32-SuGlider\cores\esp32\esp32-hal.h:76,
                 from C:\Users\rocor\Documents\Arduino\hardware\espressif\esp32-SuGlider\cores\esp32\esp32-hal-cpu.c:25:
C:\Users\rocor\Documents\Arduino\hardware\espressif\esp32-SuGlider\cores\esp32\esp32-hal-cpu.c: In function 'setCpuFrequencyMhz':
C:\Users\rocor\Documents\Arduino\hardware\espressif\esp32-SuGlider\cores\esp32\esp32-hal-cpu.c:244:108: error: 'RTC_CPU_FREQ_SRC_APLL' undeclared (first use in this function); did you mean 'RTC_CPU_FREQ_SRC_PLL'?
  244 |     log_d("%s: %u / %u = %u Mhz, APB: %u Hz", (conf.source == RTC_CPU_FREQ_SRC_PLL)?"PLL":((conf.source == RTC_CPU_FREQ_SRC_APLL)?"APLL":((conf.source == RTC_CPU_FREQ_SRC_XTAL)?"XTAL":"8M")), conf.source_freq_mhz, conf.div, conf.freq_mhz, apb);
      |                                                                                                            ^~~~~~~~~~~~~~~~~~~~~
C:\Users\rocor\Documents\Arduino\hardware\espressif\esp32-SuGlider\cores\esp32\esp32-hal-log.h:111:72: note: in definition of macro 'log_d'
  111 | #define log_d(format, ...) log_printf(ARDUHAL_LOG_FORMAT(D, format), ##__VA_ARGS__)
      |                                                                        ^~~~~~~~~~~
C:\Users\rocor\Documents\Arduino\hardware\espressif\esp32-SuGlider\cores\esp32\esp32-hal-cpu.c:244:108: note: each undeclared identifier is reported only once for each function it appears in
  244 |     log_d("%s: %u / %u = %u Mhz, APB: %u Hz", (conf.source == RTC_CPU_FREQ_SRC_PLL)?"PLL":((conf.source == RTC_CPU_FREQ_SRC_APLL)?"APLL":((conf.source == RTC_CPU_FREQ_SRC_XTAL)?"XTAL":"8M")), conf.source_freq_mhz, conf.div, conf.freq_mhz, apb);
      |                                                                                                            ^~~~~~~~~~~~~~~~~~~~~
C:\Users\rocor\Documents\Arduino\hardware\espressif\esp32-SuGlider\cores\esp32\esp32-hal-log.h:111:72: note: in definition of macro 'log_d'
  111 | #define log_d(format, ...) log_printf(ARDUHAL_LOG_FORMAT(D, format), ##__VA_ARGS__)
      |                                                                        ^~~~~~~~~~~

Other Steps to Reproduce

No need for flasing. It is a compilation error.

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

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.
@SuGlider SuGlider added the Status: Awaiting triage Issue is waiting for triage label Apr 3, 2023
@SuGlider SuGlider self-assigned this Apr 3, 2023
@SuGlider SuGlider added Type: Bug 🐛 All bugs Chip: ESP32-C3 Issue is related to support of ESP32-C3 Chip and removed Status: Awaiting triage Issue is waiting for triage labels Apr 3, 2023
@SuGlider SuGlider added this to the 3.0.0 milestone Apr 3, 2023
@mrengineer7777
Copy link
Collaborator

@SuGlider Your PR was merged :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Chip: ESP32-C3 Issue is related to support of ESP32-C3 Chip Status: Solved Type: Bug 🐛 All bugs
Projects
Development

No branches or pull requests

3 participants