question on external crystal oscillator

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

question on external crystal oscillator

2,603 次查看
Jimny
Contributor II

Hello,

I made a minimal system board with s32k144. After I finished soldering the component and power the board on (no software flashed), I used an oscilloscope to watch the waveform of PTB6 and PTB7. There is no waveform, solely a constant dc voltage which is about 0.8V high.

Is it normal to have a constant dc voltage at these pins? I thought it should be a sine waveform. Please see the circuit below.

1.png

0 项奖励
回复
2 回复数

2,470 次查看
Clivetwo
Contributor I

Hi,

 

I have a custom board using s32k144 and I'm using S32 Design Studio for S32 Platform.

My code stucks in timeout when starting external crystal:

 

CLOCK_SYS_ConfigureSOSC function:

while ((CLOCK_SYS_GetSysOscFreq() == 0U) && (timeout > 0U))

I my processor expert there isn't an option for external crystal:

crystal.png

Thanks.

 

0 项奖励
回复

2,597 次查看
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi ZZD,

The sine waveform is not generate by default. You need to initialize system oscillator (SOSC) first.

AN5413 S32K1xx Series Cookbook.png
If Processor Expert is used, you can achieve it by configure SOSC in clock_manager.

Enable 16MHz System OSC Clock.png

hello_world_s32k144 crystal.png

Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 项奖励
回复