I.MX RT1060 LCDIF clock source

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

I.MX RT1060 LCDIF clock source

ソリューションへジャンプ
2,227件の閲覧回数
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,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 返答(返信)
2,201件の閲覧回数
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,211件の閲覧回数
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 件の賞賛
返信