Driver IP for CLOCKOUT configuration

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Driver IP for CLOCKOUT configuration

Jump to solution
549 Views
DirkEtzler
Contributor III

When using RTD PlatformSDK_S32ZE_S32Z270_R52_0_0 version 2.0.1 are there driver IP functions to set the multiplexer and dividers in GPR and MC_CGM registers to configure the CLKOUT_x functionalities?  (E.g., what clock source to bring out and what divider value to use.)  Or do I need to write them myself?

 

Screenshot 2026-03-23 085319.png

Tags (3)
0 Kudos
Reply
1 Solution
524 Views
alejandro_e
NXP TechSupport
NXP TechSupport

Hello @DirkEtzler,

Thanks for reaching out to us. It is possible to configure the configuration for the CLKOUT_X, I am going to use CLKOUT_2 as an example. First I started a project from the Dio example and added the clock driver:

Screenshot 2026-03-23 205429.png

Now go to the clock configuration tool and scroll down and search for CLKOUT_2, you can also select it in the dropdown list as in the image:

Screenshot 2026-03-23 205812.png

 

Double click on the MUX symbol and select P4_CLK_SRC_CLK:

Screenshot 2026-03-23 210052.png

 

Now you can select the source by scrolling down to 

Screenshot 2026-03-23 210616.png

Again, double click on the MUX symbol and select the source you want to use:

Screenshot 2026-03-23 210747.png

After that, several errors may appear in the clocks and peripeharls view, most of them can be corrected by right clicking on them and using the suggested solution:

Screenshot 2026-03-23 210932.png

For the one that cannot be solved like that, double click on the error and match the configuration you did in the clocks view now in the peripherals view:

Screenshot 2026-03-23 211449.png

 

Let me know if you were able to solve the problem with these steps above.

 

View solution in original post

3 Replies
525 Views
alejandro_e
NXP TechSupport
NXP TechSupport

Hello @DirkEtzler,

Thanks for reaching out to us. It is possible to configure the configuration for the CLKOUT_X, I am going to use CLKOUT_2 as an example. First I started a project from the Dio example and added the clock driver:

Screenshot 2026-03-23 205429.png

Now go to the clock configuration tool and scroll down and search for CLKOUT_2, you can also select it in the dropdown list as in the image:

Screenshot 2026-03-23 205812.png

 

Double click on the MUX symbol and select P4_CLK_SRC_CLK:

Screenshot 2026-03-23 210052.png

 

Now you can select the source by scrolling down to 

Screenshot 2026-03-23 210616.png

Again, double click on the MUX symbol and select the source you want to use:

Screenshot 2026-03-23 210747.png

After that, several errors may appear in the clocks and peripeharls view, most of them can be corrected by right clicking on them and using the suggested solution:

Screenshot 2026-03-23 210932.png

For the one that cannot be solved like that, double click on the error and match the configuration you did in the clocks view now in the peripherals view:

Screenshot 2026-03-23 211449.png

 

Let me know if you were able to solve the problem with these steps above.

 

504 Views
DirkEtzler
Contributor III

Hello @alejandro_e,

following your guidance below, I have been able to configure the corresponding multiplexer and dividers using the S32DS clock configuration tool.  Checking the registers after initialization show correct values of all involved registers and also the correct frequency at the CLOCKOUTx outputs.

Thank you for your assistance.

Tags (3)
0 Kudos
Reply
483 Views
alejandro_e
NXP TechSupport
NXP TechSupport

Hello @DirkEtzler,

Perfect! I am glad to know you were able to solve your problem. Thanks a lot for letting me know.

 

Best regards,

Alejandro

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2337654%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EDriver%20IP%20for%20CLOCKOUT%20configuration%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2337654%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EWhen%20using%20RTD%20PlatformSDK_S32ZE_S32Z270_R52_0_0%20version%202.0.1%20are%20there%20driver%20IP%20functions%20to%20set%20the%20multiplexer%20and%20dividers%20in%20GPR%20and%20MC_CGM%20registers%20to%20configure%20the%20CLKOUT_x%20functionalities%3F%26nbsp%3B%20(E.g.%2C%20what%20clock%20source%20to%20bring%20out%20and%20what%20divider%20value%20to%20use.)%26nbsp%3B%20Or%20do%20I%20need%20to%20write%20them%20myself%3F%3C%2FP%3E%3CDIV%20class%3D%22%22%3E%26nbsp%3B%3C%2FDIV%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Screenshot%202026-03-23%20085319.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Screenshot%202026-03-23%20085319.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Screenshot%202026-03-23%20085319.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Screenshot%202026-03-23%20085319.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F380080iB248C90FD7BDDFF4%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Screenshot%202026-03-23%20085319.png%22%20alt%3D%22Screenshot%202026-03-23%20085319.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%E2%80%83%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2338061%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Driver%20IP%20for%20CLOCKOUT%20configuration%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2338061%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F252919%22%20target%3D%22_blank%22%3E%40DirkEtzler%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3EThanks%20for%20reaching%20out%20to%20us.%20It%20is%20possible%20to%20configure%20the%20configuration%20for%20the%20CLKOUT_X%2C%20I%20am%20going%20to%20use%20CLKOUT_2%20as%20an%20example.%20First%20I%20started%20a%20project%20from%20the%20Dio%20example%20and%20added%20the%20clock%20driver%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Screenshot%202026-03-23%20205429.png%22%20style%3D%22width%3A%20695px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Screenshot%202026-03-23%20205429.png%22%20style%3D%22width%3A%20695px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Screenshot%202026-03-23%20205429.png%22%20style%3D%22width%3A%20695px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Screenshot%202026-03-23%20205429.png%22%20style%3D%22width%3A%20695px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F380130iACC61DF7F12A5E28%2Fimage-dimensions%2F695x351%3Fv%3Dv2%22%20width%3D%22695%22%20height%3D%22351%22%20role%3D%22button%22%20title%3D%22Screenshot%202026-03-23%20205429.png%22%20alt%3D%22Screenshot%202026-03-23%20205429.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3ENow%20go%20to%20the%20clock%20configuration%20tool%20and%20scroll%20down%20and%20search%20for%20CLKOUT_2%2C%20you%20can%20also%20select%20it%20in%20the%20dropdown%20list%20as%20in%20the%20image%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Screenshot%202026-03-23%20205812.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Screenshot%202026-03-23%20205812.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Screenshot%202026-03-23%20205812.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Screenshot%202026-03-23%20205812.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F380131i7A15E45B4D1C57A8%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Screenshot%202026-03-23%20205812.png%22%20alt%3D%22Screenshot%202026-03-23%20205812.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EDouble%20click%20on%20the%20MUX%20symbol%20and%20select%20P4_CLK_SRC_CLK%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Screenshot%202026-03-23%20210052.png%22%20style%3D%22width%3A%20544px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Screenshot%202026-03-23%20210052.png%22%20style%3D%22width%3A%20544px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Screenshot%202026-03-23%20210052.png%22%20style%3D%22width%3A%20544px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Screenshot%202026-03-23%20210052.png%22%20style%3D%22width%3A%20544px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F380132i275B22041312E12F%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Screenshot%202026-03-23%20210052.png%22%20alt%3D%22Screenshot%202026-03-23%20210052.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3ENow%20you%20can%20select%20the%20source%20by%20scrolling%20down%20to%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Screenshot%202026-03-23%20210616.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Screenshot%202026-03-23%20210616.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Screenshot%202026-03-23%20210616.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Screenshot%202026-03-23%20210616.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F380134i32E675F1C61BFC11%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Screenshot%202026-03-23%20210616.png%22%20alt%3D%22Screenshot%202026-03-23%20210616.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EAgain%2C%20double%20click%20on%20the%20MUX%20symbol%20and%20select%20the%20source%20you%20want%20to%20use%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Screenshot%202026-03-23%20210747.png%22%20style%3D%22width%3A%20432px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Screenshot%202026-03-23%20210747.png%22%20style%3D%22width%3A%20432px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Screenshot%202026-03-23%20210747.png%22%20style%3D%22width%3A%20432px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Screenshot%202026-03-23%20210747.png%22%20style%3D%22width%3A%20432px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F380135i743C1FC84995539B%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Screenshot%202026-03-23%20210747.png%22%20alt%3D%22Screenshot%202026-03-23%20210747.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EAfter%20that%2C%20several%20errors%20may%20appear%20in%20the%20clocks%20and%20peripeharls%20view%2C%20most%20of%20them%20can%20be%20corrected%20by%20right%20clicking%20on%20them%20and%20using%20the%20suggested%20solution%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Screenshot%202026-03-23%20210932.png%22%20style%3D%22width%3A%20916px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Screenshot%202026-03-23%20210932.png%22%20style%3D%22width%3A%20916px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Screenshot%202026-03-23%20210932.png%22%20style%3D%22width%3A%20916px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Screenshot%202026-03-23%20210932.png%22%20style%3D%22width%3A%20916px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F380136i4538E6E3DFCC19E3%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Screenshot%202026-03-23%20210932.png%22%20alt%3D%22Screenshot%202026-03-23%20210932.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EFor%20the%20one%20that%20cannot%20be%20solved%20like%20that%2C%20double%20click%20on%20the%20error%20and%20match%20the%20configuration%20you%20did%20in%20the%20clocks%20view%20now%20in%20the%20peripherals%20view%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Screenshot%202026-03-23%20211449.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Screenshot%202026-03-23%20211449.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Screenshot%202026-03-23%20211449.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Screenshot%202026-03-23%20211449.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F380137iA48B9AD4420560EE%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Screenshot%202026-03-23%20211449.png%22%20alt%3D%22Screenshot%202026-03-23%20211449.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3ELet%20me%20know%20if%20you%20were%20able%20to%20solve%20the%20problem%20with%20these%20steps%20above.%3C%2FP%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2338854%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Driver%20IP%20for%20CLOCKOUT%20configuration%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2338854%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F238460%22%20target%3D%22_blank%22%3E%40alejandro_e%3C%2FA%3E%2C%3C%2FP%3E%3CP%3Efollowing%20your%20guidance%20below%2C%20I%20have%20been%20able%20to%20configure%20the%20corresponding%20multiplexer%20and%20dividers%20using%20the%20S32DS%20clock%20configuration%20tool.%26nbsp%3B%20Checking%20the%20registers%20after%20initialization%20show%20correct%20values%20of%20all%20involved%20registers%20and%20also%20the%20correct%20frequency%20at%20the%20CLOCKOUTx%20outputs.%3C%2FP%3E%3CP%3EThank%20you%20for%20your%20assistance.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2339516%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Driver%20IP%20for%20CLOCKOUT%20configuration%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2339516%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F252919%22%20target%3D%22_blank%22%3E%40DirkEtzler%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3EPerfect!%20I%20am%20glad%20to%20know%20you%20were%20able%20to%20solve%20your%20problem.%20Thanks%20a%20lot%20for%20letting%20me%20know.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBest%20regards%2C%3C%2FP%3E%0A%3CP%3EAlejandro%3C%2FP%3E%3C%2FLINGO-BODY%3E