espressif / arduino-esp32

Arduino core for the ESP32
GNU Lesser General Public License v2.1
12.94k stars 7.28k forks source link

RTC_CPU_FREQ_80M was not declared in this scope #9739

Open 4ngeliwi opened 3 weeks ago

4ngeliwi commented 3 weeks ago

Board

TTGO T1

Device Description

HX711

Hardware Configuration

ttgo, wx711 and a rs485 but this isnt used

Version

latest master (checkout manually)

IDE Name

Arduino IDE

Operating System

Windows 22

Flash frequency

not sure

PSRAM enabled

no

Upload speed

115200

Description

Code doesnt run on my pc, i tried running it on other peoples pc and it works, its just mine, i changed versions of the arduino and the libraries but nothing seems to work.

Sketch

rtc_cpu_freq_config_t config;
  rtc_clk_cpu_freq_get_config(&config);
  rtc_clk_cpu_freq_to_config(RTC_CPU_FREQ_80M, &config);
  rtc_clk_cpu_freq_set_config_fast(&config);
  scale.begin(LOADCELL_DOUT_PIN, LOADCELL_SCK_PIN);
  //scale.set_scale(INSERT YOUR CALIBRATION FACTOR);
  scale.set_scale(213.510);
  scale.tare();               // reset the scale to 0
  scale.power_up();

Debug Message

exit status 1

'RTC_CPU_FREQ_80M' was not declared in this scope; did you mean 'RTC_XTAL_FREQ_40M'?

Other Steps to Reproduce

No response

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

VojtechBartoska commented 3 weeks ago

@lucasssvaz can you please help with triage? I am not sure, if there is potentially some issue. Thanks