cancel
Showing results for 
Search instead for 
Did you mean: 

HSE OSC configuration fails STM32H7S

cyn7
Associate

I'm new to STM32. I made a custom board using STM32H7S3V8T6, but I think the HSE OSC configuration is failing.

If I build main.c in (in Boot, not Appli), if (HAL_RCC_OscConfig(&RCC_OscInitStructure)!= HAL_OK) This part doesn't make HAL_OK, so this goes to Error_Handler.

I don't know if the hardware configuration is wrong or if there's a problem with the software.

Any help would be greatly appreciated.

111.png(X322524MOB4SI)

222.png333.png

스크린샷 2024-08-16 003050.png

    

3 REPLIES 3
TDK
Guru

Having the trace snake around like that is really not ideal and could be the source of your problem.

You should be able to route OSC_IN and OSC_OUT directly from the pins, with short traces, and no vias. Better to have the vias on grounds than those signals.

Are the load caps proper values? What are they? Should be in the 16 pF region.

See here for oscillator design guidelines:

cd00221665-oscillator-design-guide-for-stm8af-al-s-stm32-mcus-and-mpus-stmicroelectronics.pdf

If you feel a post has answered your question, please click "Accept as Solution".

So are you saying it doesn't work because of that trace placement? Is there any possibility of a software problem? The capacitors are 10pF each.

So are you saying it doesn't work because of that trace placement?

That is a possibility.

> Is there any possibility of a software problem?

There is always a possibility of a software problem. But in this case, a hardware problem seems much more likely. The code you've presented looks fine.

Perhaps try with higher value load caps. Could also be a soldering issue.

 

Would have been easy to route OSC_IN directly to the pin and still maintain the GND plane around the outside.

TDK_0-1723742547975.png

 

If you feel a post has answered your question, please click "Accept as Solution".