GptChannelClkSrcRef - where is it in the code

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

GptChannelClkSrcRef - where is it in the code

跳至解决方案
2,417 次查看
Kanaqw
Contributor III

Here's the question. I'm changing config files in tresos, e.g. GptChannelClkSrcRef, but after I generate config, code doesnt change. Gpt_Cfg.c, Gpt_Cfg.h, Gpt_PBcfg.c - all same. Maybe I dont understand something? Code doesnt have errors. Maybe it is in another module (but not in mcu, I've checked that already)

0 项奖励
回复
1 解答
2,401 次查看
hungnguyenphi
NXP Employee
NXP Employee

Hello @Kanaqw ,

 

If user change the GptChannelClkSrcRef, the value GptChannelTickFrequency will also need to change/update. And it will show to the tick frequency of the timer in the bus with this GPT channel clock(Note that user need to choose the correct reference clock which they have set up by the MCU module). And yes, the GptChannelClkSrcRef will not effect the generated configuration of the GPT channel(but if user choose the wrong reference clock, the real frequency of the GPT channel will be not the same with the GptChannelTickFrequency). But it will effect another module which use this GPT channel (Eg WDG).  

 

Best regards,

Hung

在原帖中查看解决方案

0 项奖励
回复
1 回复
2,402 次查看
hungnguyenphi
NXP Employee
NXP Employee

Hello @Kanaqw ,

 

If user change the GptChannelClkSrcRef, the value GptChannelTickFrequency will also need to change/update. And it will show to the tick frequency of the timer in the bus with this GPT channel clock(Note that user need to choose the correct reference clock which they have set up by the MCU module). And yes, the GptChannelClkSrcRef will not effect the generated configuration of the GPT channel(but if user choose the wrong reference clock, the real frequency of the GPT channel will be not the same with the GptChannelTickFrequency). But it will effect another module which use this GPT channel (Eg WDG).  

 

Best regards,

Hung

0 项奖励
回复