I.MX RT1060 LCDIF clock source

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

I.MX RT1060 LCDIF clock source

跳至解决方案
2,226 次查看
HAHA20222222
Contributor II

I used MCUXpresso configuration tool to set RT1060 LCDIF.

The following figure shows the clock configuration.LCDIF_PRE_CLK_SEL is PLL3_PFD1_CLK.

1650195684(1).png

1650195648.png

But the actual frame rate is incorrect.

I measured the lcd clock pin frequency with a oscilloscope, it was3.85718MHz.

The actual clock frequency didn't change when I adjusted div of PLL3_PFD1. It was still 3.85718MHz.

Then, I choosed LCDIF source as PLL2_MAIN_CLK. The actual lcd clock is correct.

HAHA20222222_0-1650196406562.png

The attachment is clock_config.c that generated an incorrect lcd clock.

Thanks.

 

标记 (1)
0 项奖励
回复
1 解答
2,199 次查看
HAHA20222222
Contributor II

@jeremyzhou 

Hi,

Thank you for your reply.
 
I knew the cause of the problem.
 
The pll3 code  generated by the configuration tool  was commented out.
 
sdfsd.PNG
I recommend that the IDE alert the user to avoid use pll3_pfd1 as LCDIF_CLK when XIP_EXTERNAL_FLASH == 1.
 
In addition, there may be a bug of MCUXpresso,

1.I configured PLL2_MAIN_CLK as LCDIF clock source. The CCM registers was correct. Thr actual LCD clock frequency is also correct.

2. I changed the LCDIF clk source as PLL3_PFD1_CLK. CCM_CSCDR2 was wrong.

3. I compared the new clock.c and the old clock.c. I found someting wrong.

asdfsd.PNG

 

 

在原帖中查看解决方案

标记 (2)
0 项奖励
回复
2 回复数
2,200 次查看
HAHA20222222
Contributor II

@jeremyzhou 

Hi,

Thank you for your reply.
 
I knew the cause of the problem.
 
The pll3 code  generated by the configuration tool  was commented out.
 
sdfsd.PNG
I recommend that the IDE alert the user to avoid use pll3_pfd1 as LCDIF_CLK when XIP_EXTERNAL_FLASH == 1.
 
In addition, there may be a bug of MCUXpresso,

1.I configured PLL2_MAIN_CLK as LCDIF clock source. The CCM registers was correct. Thr actual LCD clock frequency is also correct.

2. I changed the LCDIF clk source as PLL3_PFD1_CLK. CCM_CSCDR2 was wrong.

3. I compared the new clock.c and the old clock.c. I found someting wrong.

asdfsd.PNG

 

 

标记 (2)
0 项奖励
回复
2,210 次查看
jeremyzhou
NXP Employee
NXP Employee

Hi,
Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.
Firstly, I was wondering if you can introduce the testing environment, such as the board, demo code, etc.
Secondly, I'd like to suggest you observe the values of the CCM registers during the debug, it can help you to figure out whether there's another place to adjust the values of the CCM registers besides the BOARD_InitBootClocks() function.
Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 项奖励
回复