cancel
Showing results for 
Search instead for 
Did you mean: 

Do I need to use HSE when enabling DSIHOST?

DMårt
Lead

I have CubeMX 2.0.0 and I notice that if I want to enable DSIHOST, I need to first enable HSE.

But the clock configuration of the DSI does not require HSE. It seems that the clock configuration of DSI seems to work with HSI in CubeMX 2.0.0.

So, the question is: I need to enable HSE, but do I need to clock configure it for DSI as well? Or could I use HSI in the clock configuration, even if HSE is enabled?

 

Processor: STM32MP257FAK3

 

STM32MP151AAC3 custom board with STM32-OS as operating system: https://github.com/DanielMartensson/STM32-Computer

STM32MP257FAK3 custom board with STM64-OS as operating system: https://github.com/DanielMartensson/STM64-Computer
1 ACCEPTED SOLUTION

Accepted Solutions
AScha.3
Super User

The basic problem is the precision of the clock , frequency and jitter.

So for hi speed connections usually you should choose the best you can get,

and this is a low jitter crystal source for the PLLs , not a RC or gate delay based clock.

But if you prefer to try out, what might go wrong with more jitter, just try it.

So the "need to use HSE" is just a indicator to go the reliable way , using a low jitter master clock.

I would never have the idea to drive a high speed complex SOC with a clock, that saves about 80 ct , but at the risk many things break connection , when temperature changes or it ages just some weeks.

I always choose a crystal or mems oscillator , not even a simple crystal, and RC is absolute no go.

ymmv.

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

View solution in original post

4 REPLIES 4
Olivier GALLIEN
ST Employee

Hi @DMårt , 

CubeMX 2.0.0 does not exist.

Do you mean CuIDE 2.0 / or CubeMX 6.16  ? 

Olivier 

 

 

Olivier GALLIEN
In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

@Olivier GALLIEN 

I mean the latest CubeMX that I have recently downloaded for 2 days ago.

I found out that I need to use HSE, but it still a "hack" that you can still use HSI, even if HSE is activated inside RCC.

STM32MP151AAC3 custom board with STM32-OS as operating system: https://github.com/DanielMartensson/STM32-Computer

STM32MP257FAK3 custom board with STM64-OS as operating system: https://github.com/DanielMartensson/STM64-Computer
AScha.3
Super User

The basic problem is the precision of the clock , frequency and jitter.

So for hi speed connections usually you should choose the best you can get,

and this is a low jitter crystal source for the PLLs , not a RC or gate delay based clock.

But if you prefer to try out, what might go wrong with more jitter, just try it.

So the "need to use HSE" is just a indicator to go the reliable way , using a low jitter master clock.

I would never have the idea to drive a high speed complex SOC with a clock, that saves about 80 ct , but at the risk many things break connection , when temperature changes or it ages just some weeks.

I always choose a crystal or mems oscillator , not even a simple crystal, and RC is absolute no go.

ymmv.

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

@AScha.3 @Olivier GALLIEN 

Thanks!

I have selected a footprint for mounting a SMD2016-P4 to SMD2520-P4 oscillator. 

In this case it's going to be 24MHz, due to save cost. The HDMI and USB also have the same MHz of ocillator. 

I don't know if they could share the same oscillator. Perhaps not...

STM32MP151AAC3 custom board with STM32-OS as operating system: https://github.com/DanielMartensson/STM32-Computer

STM32MP257FAK3 custom board with STM64-OS as operating system: https://github.com/DanielMartensson/STM64-Computer