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

User avatar
fasani
Posts: 44
Joined: Wed Jan 30, 2019 12:00 pm
Location: Berlin
Contact:

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

Postby fasani » Sun Feb 24, 2019 11:33 am

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 ;)
Backend developer-PHP Engineer
https://fasani.de Berlin, Germany

User avatar
krzychb
Posts: 232
Joined: Sat Oct 01, 2016 9:05 am
Contact:

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

Postby krzychb » Sun Feb 24, 2019 12:50 pm

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

User avatar
fasani
Posts: 44
Joined: Wed Jan 30, 2019 12:00 pm
Location: Berlin
Contact:

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

Postby fasani » Sun Feb 24, 2019 6:29 pm

Thank you Krzysztof! That made it.
Now I'm going to make a light that shows the JSON messages in the little display :)
Backend developer-PHP Engineer
https://fasani.de Berlin, Germany

User avatar
fasani
Posts: 44
Joined: Wed Jan 30, 2019 12:00 pm
Location: Berlin
Contact:

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

Postby fasani » Wed Feb 27, 2019 7:17 am

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
Backend developer-PHP Engineer
https://fasani.de Berlin, Germany

User avatar
fasani
Posts: 44
Joined: Wed Jan 30, 2019 12:00 pm
Location: Berlin
Contact:

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

Postby fasani » Wed Mar 06, 2019 2:11 pm

Image
If anyone wants to see the result:
https://twitter.com/martinfasani/status ... 1009613825

Code is available on the repository mentioned in last post.
Backend developer-PHP Engineer
https://fasani.de Berlin, Germany

Who is online

Users browsing this forum: No registered users and 2 guests