Search found 1 match

by tronda
Thu Sep 14, 2023 7:37 am
Forum: Hardware
Topic: ESP32S NodeMCU: assert failed: ledc_clk_cfg_to_global_clk ledc.c:443
Replies: 2
Views: 2788

Re: ESP32S NodeMCU: assert failed: ledc_clk_cfg_to_global_clk ledc.c:443

  1.  
  2. It may help to add a line to set LEDC_AUTO_CLK in XClk.cpp
  3.  
  4. bool ClockEnable(int pin, int Hz)
  5. {
  6. ...
  7.    timer_conf.timer_num = LEDC_TIMER_0;
  8.    timer_conf.clk_cfg = LEDC_AUTO_CLK;
  9.    esp_err_t err = ledc_timer_config(&timer_conf);
  10. ...
  11. }
  12.