hi ,
I am using S32K144 microcontroller I have configure core clock with 80MHz and bus clock with 40MHz ,I would like to see my clock speed in oscilloscope ..with the help of CLKOUT pin pls any one suggest me how to configure. Any way to cross check my clock frequency .
Thanks for helping
Rajesh Kota
Hi,
if you are using SDK - you can enable clockout and source in Clock Manager module:
Also don't forget select pin functionality in PinMux:
Hope it helps.
Jiri
if you see blow code I have added clock_sys_init(),clock_sys_updateconfig(),functions I used as per example ....when I call
pins_drv_int() function its not coming out ..
Hi,
in attachment is hello_word with enabled CLK OUT. From schematic I findout that PTE10 on EVB goes through resistor, better option for clock output is use PTB5 or PTD14 (in project are all output enabled):
PTB5 out (sorry for screenshot from phone, I lost somewhere flash disk for saving pictures from scope directly):
Attached project (for reference) used 112 MHz as sys clock.
Jiri
hi Jiri,
thanks you so much now I am able to see my clock.
I have few questions regarding clock their is RUN,VLPR,HSRUN modes avail in clock , I want to config core clock 80MHz and bus 40MHz means which one I want to consider .\
Thanks
Rajesh Kota
Hi,
the default mode is HSRUN, so set dividers/multipliers to met your needs.
Jiri
hi Jiri,
as per above mail information I config my clock . but SPLL_CLK after multiply its coming 80 MHz its showing some warning it should be above 90MHz
thanks
Rajesh Kota
For me works SPLL clock set to 160 and sys clock taken from SPLL and div by 2:
Here is my clock summary:
Jiri
thank you Jiri ..my problems solved
thanks
Rajesh
hi Jiri,
I am getting one ERROR : HardFault_Handler for some files its getting and for some files its not getting.
thanks ,
Rajesh Kota
hi Jiri,
I have done what you said and I generated code also...is their any function need to call in main.c to activate and see the result in oscilloscope .
Thanks
Rajesh
hi Jiri,
as per above information I have configured in processor export after that I have generated code and build it and flash my controller even I am unable to use in my oscilloscope ....is their any api need to call in main.c file example clock init or pin configuration like that....
thanks for helping
rajesh kota
This is a MCU-specific question for S32K, I suggest you move this to the https://community.nxp.com/community/s32/s32k community.
Mike