Replacing crystal with clock from another esp32 - WiFi stops working

greengnu
Posts: 66
Joined: Wed May 08, 2019 8:45 pm

Replacing crystal with clock from another esp32 - WiFi stops working

Postby greengnu » Thu Mar 12, 2026 7:22 pm

So from some posts I gathered that it should be possible to replace the crystal with a crystal oscillator or other clock source by connecting tge clock output directly to XTAL_P and letting XTAL_N floating.

I tried this here with an esp32-c3 supermini. I removed the crystal and then output CLKOUT_SIG_XTAL from an esp32-s3 supermini to the XTAL_P pin of the c3.
IMG_1981.jpeg
IMG_1981.jpeg (2.26 MiB) Viewed 276 times
S3 on top, C3 on bottom.

This works, the C3 boots up, however it's not able to connect to wifi anymore. The clock output looks clean on my amateur scope (120Mhz bandwidth):
IMG_1980.jpeg
IMG_1980.jpeg (2.09 MiB) Viewed 276 times

Any idea what could be the reason for wifi not working anymore?

mikemoy
Posts: 690
Joined: Fri Jan 12, 2018 9:10 pm

Re: Replacing crystal with clock from another esp32 - WiFi stops working

Postby mikemoy » Fri Mar 13, 2026 2:19 am

You cannot run a clock signal via a unshielded piece of wire right next to the Wi-Fi antenna.
It should be shielded!!

greengnu
Posts: 66
Joined: Wed May 08, 2019 8:45 pm

Re: Replacing crystal with clock from another esp32 - WiFi stops working

Postby greengnu » Fri Mar 13, 2026 10:57 am

thanks - even if I place the wire away from the antenna in the opposite direction wifi isn't connecting (the crystal XTAL-P pin is also unshielded and if I move the cable away that pin is the closest thing to the antenna). I also notice the esp32-c3 IC getting pretty hot

MicroController
Posts: 2672
Joined: Mon Oct 17, 2022 7:38 pm
Location: Europe, Germany

Re: Replacing crystal with clock from another esp32 - WiFi stops working

Postby MicroController » Sun Mar 15, 2026 9:30 pm

If WiFi/BT don't work, it's likely because the clock frequency is off.

At least for the S2, the docs say:
If an oscillator is used, its output should be connected to XTAL_P on the chip through a DC blocking capacitor (about 50 pF).
Maybe give that a try.

Who is online

Users browsing this forum: No registered users and 4 guests