This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi Champ,
I am asking for my customer.
We are using CCS12.4.0 and sysconfig_1.17.0, and try to use clock tree in Sysconfig for the peripheral clock setup.
1. For EPWM clock, we want to configure EPWMCLKDIV to 1, but before reach out there, there is a configuration of CPU1 SYSCLK GATE to enable, and there is a notice for enabling peripherals, use the SYSCTL. While click the hyber link for SYSCLK Gates, I didn't see such configuration for CPU1 SYSCLK GATE. Could the expert explicitly show me the place in SYSCTL ?
(figure 1)
(figure 2)
(2). After configuring the clock tree, it would generate clocktree.h file in Generated file sector. What is the suggestion here, to include the clocktree.h directly into user's project, or suggested to copy the generated code in clocktree.h and override the definition in device.h ? If directly include into project, customer feedbacks it would cause memory overlap with “device.h” if this file is include, is there a conflict with both clock source configuration from clocktree.h file and device.h file ?
(3). Any app. note / user guide for get started with clock tree configuration in Syscfg GUI ?
Thanks and regards,
Johnny
Hi Johnny,
Thanks for your patience.
Thank you for bringing this to my attention. I’m looking into the issue and will have an answer for you shortly.Regards,
Hadi
Johnny,
1) Each peripheral clock also has its own independent clock gating which is controlled by the CPU's PCLKCRx registers. For enabling EPWM, please refer to PCLKCR2 Register (Table 3-75. PCLKCR2 Register Field Descriptions)
2) To use clocktree.h, customer should enable the "device support". Then, the settings are going to be applied in device.h.
To enable device support, you need to press this button in SysConfig.
3) There is going to be a video explaining how to use clocktree very soon.
Regards,
Hadi
Hi Hadi,
Thanks for the reply.
1) We have already knew PCLKCR2 Register could be configured for EPWM clock by manually. I was trying yo ask how to configure PCLKCR2 Register in clock tree tool as snippet. Would you kindly show me where and how to enable PERX_CPU1_SYSCLK_GATE in SYSCTL as shown in figure 2 ?
2) Thanks, after enabling device support in GUI, I do see the GUI generated device.c and device.h from Generated Files column.
Would you kindly help on question 1 about the PCLKCR2 Register configured in GUI ?
Thanks for the support,
Johnny
Johnny,
Unfortunately with current implementation of clocktree tool, it isn't possible to configure PCLKCR2.
Regards,
Hadi
Hi Hadi,
Any time schedule we would have this to configure PCLKCR2 in clock tree GUI ?
Any question, does that mean I also couldn’t configure EPWMCLKDIV value in register PERCLKDIVSEL in clock tree GUI, correct ?
Thanks,
Johnny
Hi Johnny,
Your understanding is right. You can't configure EPWMCLKDIV value in register PERCLKDIVSEL in clock tree GUI.
We have implemented that for F28P65x, but I'm not sure when we're going to implement for F2838x.
Regards,
Hadi