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

mm-112211
Posts: 1
Joined: Sat Jul 01, 2023 10:12 am

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

Postby mm-112211 » Sat Jul 01, 2023 10:37 am

Hello, I recently purchased a ESP32S NodeMCU Module WLAN WiFi Dev Kit C (https://www.az-delivery.de/products/esp ... r-soldered) from AZ-Delivery and am trying to connect it to a OV7670-Arduino cam via breadboard.

For this im using example code and tutorial (https://github.com/bitluni/ESP32CameraI2S), connecting up pins as prescribed on the linked project page and uploading via arduino-ide

When running my code I get following error message followed by a restart:
"assert failed: ledc_clk_cfg_to_global_clk ledc.c:443
Backtrace: 0x4008383d:0x3ffb1f80 0x4008b891:0x3ffb1fa0 0x40091309:0x3ffb1fc0 0x400d954e:0x3ffb20f0 0x400d9829:0x3ffb2150 0x400d34c0:0x3ffb2190 0x400d33f8:0x3ffb21f0 0x400d28a5:0x3ffb2230 0x400d8006:0x3ffb2290"

The code seems to run upto line 115 in the .ino-file "camera = new OV7670(OV7670::Mode::QQVGA_RGB565, SIOD, SIOC, VSYNC, HREF, XCLK, PCLK, D0, D1, D2, D3, D4, D5, D6, D7);" in setup.

I did some research and found a fix on github (https://github.com/nodemcu/nodemcu-firmware/issues/3558), editing the ledc.c file.
Sadly i can no longer find this file in the esp-32-library nor in the nodemcu-firmware referenced in the fix (https://github.com/nodemcu/nodemcu-firmware).

Is this a known issue? Might my product firmware or the tutorial-code be outdated?
As I am completely new to ESP32 I would also appreceate any advice on how to go about finding out more about this issue.

Thank you for your time.

defomans
Posts: 1
Joined: Thu Aug 03, 2023 2:13 pm

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

Postby defomans » Thu Aug 03, 2023 2:18 pm

Hello, did you manage to get any solution working? I have the same problem as you.

tronda
Posts: 1
Joined: Wed Sep 13, 2023 2:33 pm

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

Postby tronda » Thu Sep 14, 2023 7:37 am

  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.  

Who is online

Users browsing this forum: devesp32 and 137 guests