Hi Team,
We are using the NXP S32K388EVB-Q289 evaluation board.
We have configured the CLOCK_RUN frequency to be 20 MHz and it is sourced by PLL PHI0 (which is 160MHz). All the peripheral clocks are enabled in the MCU driver and the MCU is set to RUN mode.
We have configured the GPIO Pin PTD14's GPIO mode as SYSTEM_CLKOUT_RUN_OUT.
The expectation is to see the clock frequency on the GPIO PTD14 to be 20 MHz while measuring through any of the logic analyzer. However, when we measured using Saleae logic analyzer (connected to available GPIO mux pad on the Eval board), the GPIO value is always 0. Noise is observed in the analog channel.
But the clock frequency value read from the API Mcu_GetClockFrequency(CLKOUT_RUN_CLK) is returning the value as expected 20 MHz.
We also checked the MCU MUX 6 and the GPIO110 register and looks like the values are expected ones.
Could you please check and let us know what could be the reason for the observed issue?
#S32K388 #S32K3 #CLKOUT_RUN #GPIO
Solved! Go to Solution.
Hi Peter,
We could identify the connection where the PTD14 is routed and we could measure the configured frequency value from this pin.
Thank you for the support.
Hi,
register setting for selecting CLKOUT looks fine. I can recommend to try/check below
- be sure you are on right pin on EVB
- be sure analyzer is using fast sample rate, or use scope
- use even higher divider to have lower freq on CLKOUT
- set drive strength for PTD14
- you can try different pins, ideally fast type
BR, Petr
Hi Peter,
We checked all the below possibilities.
1. Confirmed the connected pin for measurement is PTD14.
2. Analyzer was set to highest available sample rate and also tried with the scope. In both cases, the result is same.
3. Tried with lower CLKOUT_RUN frequency and enabling the drive strength as well, still the same result.
4. Tried with both PTB5 & PTD14 which can be configured as CLKOUT_RUN and the result is same in all the pins. Couldn't test PTD10 since there is no GPIO tap out available to test it.
Note: PTD14 & PTB5 - GPIO Standard Plus (Switching up to 50 MHz and the CLKOUT_RUN is configured as 20MHz), PTD10 - GPIO Fast (Switching up to 120 MHz). Also as per the requirement, we have used PTD14 as the CLKOUT_RUN mode.
We have an LED blinking code and it is working as per the timings we have configured it to toggle. Basically what I have observed till now is, the expected clock frequency is generated but the same is not reflecting in the PTD14 pin whose GPIO mode is configured as CLKOUT_RUN.
Is there any other configuration which should be done other the above configurations? Can you please try to simulate and verify on S32K388 EVB just to make sure it is not the issue of the EVB?
This is the blocker point for us right now.
Regards,
Punith Chandra.
Hi,
please note no pins mentioned are connected by default to Arduino headers or IOmatrix. Those go to SABRE connector or QSPI memory. So please check board schematic to find right place to measure signal.
BR, Petr
Hi,
Do you mean that the pins PTD14, PTD10 & PTB5 (which can be configured as the CLKOUT_RUN) are not connected to IO matrix by default?
We have this document S32K388EVB-Q289_EVB_HWPack_RevA0_Schematic 1 with us.
We could see the pin PTD14 is connected to the Ardunio header J702 pin 11.
But again we didn't see the frequency value on this pin as well.
Could you please let us know how can we identify if the pin is connected to the IO matrix or headers and also the location on the EVB where we can measure this signal as we don't have the layout information with us?
Hi Peter,
We could identify the connection where the PTD14 is routed and we could measure the configured frequency value from this pin.
Thank you for the support.
Hi,
let me check with a board.
BTW what kind of driver is used, or can you share simplified example you have?
BR, Petr