-
Hello world :-) It seems my custom board that I want to add support for Zephyr has different XTAL (24MHz) than set by default in IDF:
I cannot run Hello World uart example - I get some console output from bootloader then trash but there is no expected output from the Zephyr code.. it looks like bootloader is waiting for DFU not launching the Zephyr application? Or the XTAL setting is invalid? This setting is generated to Looks like this issue is described here: https://docs.espressif.com/projects/esp-idf/en/latest/esp32/get-started/index.html#step-10-monitor. The question is how to "change CONFIG_ESP32_XTAL_FREQ_SEL to 26 MHz" from Zephyr standpoint without touching the Any hints appreciated :-) |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments
-
Hello @b0661, as you have experience with ESP32 custom board, do you know how to change XTAL from 40MHz to 26MHz for ESP32? That resides in |
Beta Was this translation helpful? Give feedback.
-
As explained here https://github.com/zephyrproject-rtos/hal_espressif/issues/38 by @sylvioalves this is
Note: TANK U SIR!! =) |
Beta Was this translation helpful? Give feedback.
-
Getting started with Zephyr (Setup toolchain, compilation, board bring-up, Hello World example)!! Systems: MacBook |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Perhaps the above answers no longer work with some of the change made since then. It seems that the cpu bindings file: dts/bindings/cpu/espressif,xtensa-lx6.yaml has xtal-freq enum values of 40Mhz and 32Mhz, but not 26Mhz. Thus preventing us from selecting the necessary value. The only way I've gotten things to work is to modify the espressif,xtensa-lx6.yaml file to add the enum 2600000 and then add to my board's .dts file:
Currently espressif,xtensa-lx6.yaml has the enums defined as:
Is this considered a bug/issue? Or is there some way I can work around this in my board's configuration? Without setting this correctly I just get garbage output on the console - the initial bootup messages are okay, but then turns to garbage after the line: W (85) rtc_clk_init: Possibly invalid CONFIG_XTAL_FREQ setting (40MHz). Detected 26 MHz. |
Beta Was this translation helpful? Give feedback.
-
Hey @darkofc! I found a potential work around for the enum limitations. I found that I could create custom device tree bindings in my zephyr project, and by listing them first in the device tree
mbus_connectors.dtsi
expressif,xtensa-lx6-overlay.yaml
|
Beta Was this translation helpful? Give feedback.
As explained here https://github.com/zephyrproject-rtos/hal_espressif/issues/38 by @sylvioalves this is
rtc
setting and can be adjusted indts
/overlay
file with:Note:
ESP32_CLK_XTAL_AUTO
is not yet supported but it is planned :-)TANK U SIR!! =)