Page 1 of 1

Could not compile a light on 26Mhz crystal Heltec WiFi 32

Posted: Sun Feb 24, 2019 11:33 am
by fasani
Hello all,
I'm trying to compile the Esp-Mesh Light example that so far worked great will all kind of boards I tried but this one I'm failing miserably:
Image

Chip is ESP32D0WDQ6 (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None

I already read a question about it here :
viewtopic.php?t=3131

And after running make menuconfig:
components -> esp32-specifc -> main xtal frequency -> I set this to 26 Mhz

But I still after flashing it I'm getting the same error:
[0;33mW (64) rtc_clk_init: Possibly invalid CONFIG_ESP32_XTAL_FREQ setting (40MHz). Detected 26 MHz.

So can you please tell me why it can happen ? It's not Hardcoded to 40 right ;) Nee can't be since the code looks so clean ;)

Re: Could not compile a light on 26Mhz crystal Heltec WiFi 32

Posted: Sun Feb 24, 2019 12:50 pm
by ESP_krzychb
Hi fasani,

I think this maybe because your copy of esp-mdf is using an older version of the esp-idf that does not yet contain a fix to properly setting of the XTAL frequency from menuconfig - https://github.com/espressif/esp-idf/co ... 514ed5620f.

EDIT:
I would try pulling the latest version of esp-mdf:
  1. cd ~/esp/esp-mdf
  2. git pull
  3. git submodule update --init --recursive

Re: Could not compile a light on 26Mhz crystal Heltec WiFi 32

Posted: Sun Feb 24, 2019 6:29 pm
by fasani
Thank you Krzysztof! That made it.
Now I'm going to make a light that shows the JSON messages in the little display :)

Re: Could not compile a light on 26Mhz crystal Heltec WiFi 32

Posted: Wed Feb 27, 2019 7:17 am
by fasani
If anyone is interested to try a Mesh Lamp in one of these Boards here is my code additions to the original Espressif code:

https://github.com/martinberlin/esp-mdf ... p?expand=1

Small video demo: https://www.youtube.com/watch?v=lmAl78pB8RA

default GPIOs for PWM outputs were updated since Oled used the same for SDA and Clock:
(2) Light red pin GPIO number
(17) Light green pin GPIO number
(18) Light blue pin GPIO number

Re: Could not compile a light on 26Mhz crystal Heltec WiFi 32

Posted: Wed Mar 06, 2019 2:11 pm
by fasani
Image
If anyone wants to see the result:
https://twitter.com/martinfasani/status ... 1009613825

Code is available on the repository mentioned in last post.