STM32MP157C Custom Board not locking HSE
Hi all,
I am designing a custom board using the STM32MP157CAD. But I haven't been able to get a lock on HSE crystal.
Still on tf-a, I removed st,bypass to use the internal oscillator, also used the DTS generated by STM32CubeMX, following my PCB design. But was only able to boot the board using HSI.
Enabling TF-A debug messages I was able to see that software was enabling HSE crystal and hanging on HSERDY flag until timeout. I tried to increase the timeout value but not even after 10s software was able to achieve a lock.
My crystal specs:
- Freq: 24MHz;
- Load capacitance: 20pF;
- Freq. stability: +-30ppm
- ESR: 40r
I have attached schematics and PCB connections with the crystal below (HCLK_IN goes to PH0 and HCLK_OUT to PH1)


What could be causing the HSE not to lock?
