Specialist Supplier of Crystals & Frequency Control Componentssales@mecxtal.com.cn0755-26500570
MERLIN home / Rednote / TCXO, OCXO and VCXO

Can STM32WLE5 PB0 remain a GPIO after moving to a 32 MHz Diodes TCXO?

Not if PB0 is used to power the TCXO. The STM32WLE5 reference manual defines HSEBYPPWR in RCC_CR as the control for selecting the PB0 pin function or VDDTCXO. It can only be written while HSEON and HSERDY are both zero. With a 32 MHz Diodes JT255-series candidate, decide first whether to use an independent supply or the chip's TCXO regulator output. Then check whether the older board already uses PB0. Matching the frequency does not preserve the original wiring and startup sequence.

Document the two supply options separately

If PB0 already serves an indicator or sensing function that must be kept, it cannot also supply the oscillator. Review an independent supply within the exact oscillator's voltage and load limits. If using VDDTCXO, check that the old GPIO load is disconnected and configure the voltage with Set_TcxoMode before enabling the regulator, as the ST manual describes. Then enable or verify HSE32 for the actual CPU and radio usage rather than treating them as the same state. Confirm the actual 32 MHz JT255 ordering specification; a family voltage and frequency range does not qualify every option.

Preserve supply and clock evidence before repair

Capture the actual PB0 voltage, RCC state, TCXO output and HSERDY on an authorized bench unit. Record the PCB revision and firmware path. Do not modify the supply-select bit while the system is using HSE32 or use an additional active power source on PB0 as a quick test. If the problem follows a build that retained the GPIO load or tried to write HSEBYPPWR while HSE32 was enabled, correct the assembly or initialization first. An acceptance record should state the final role of the pin, the source of TCXO power and the observed startup behavior.

Related selection guide: MERLIN Crystal Timing: Can a Diodes JT255 26 MHz TCXO drive a CMOS input directly? Check the receiver thresholds

Resource link: https://www.mecxtal.com.cn/en/handbook/dio-062.html

WeChat

MERLIN · TIMING COMPONENTS

Scan with WeChat to contact Sales

Add our WeCom contacts from your usual WeChat app.

On desktop, scan with your phone. On mobile, save the QR image and select it from your album in WeChat Scan.