I.MX RT1060 LCDIF clock source

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

I.MX RT1060 LCDIF clock source

Jump to solution
2,568 Views
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.

 

Tags (1)
0 Kudos
Reply
1 Solution
2,541 Views
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

 

 

View solution in original post

Tags (2)
0 Kudos
Reply
2 Replies
2,542 Views
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

 

 

Tags (2)
0 Kudos
Reply
2,552 Views
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 Kudos
Reply