iMXRT1052 LCD Screen shifted

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

iMXRT1052 LCD Screen shifted

ソリューションへジャンプ
2,479件の閲覧回数
jh1
Contributor III

I observed an issue with a 1024x600 pixel LCD connected to an iMXRT1052. The problem is that the screen content is shifted by an arbitrary number of pixels. The screen content is loaded from an external NAND-Flash The result looks like this:

pastedImage_1.png

I found the solution here: 

Display is shifted when images are read from flash memory (directAccess project option set for bitma... 

It seems that the LCD controller had an underflow of data.

I could finally resolve the issue by changing the priority of the NIC-301 LCD-read_qos register from 1 to 11 (see Reference Manual 29.4) like this:

uint32_t* LCD_read_qos = (uint32_t*)0x41044100;
*LCD_read_qos = 11;

I find it curious that the default priority value is 1which is obviously not sufficient. 

I was wondering if anyone else had a similar issue?

タグ(1)
1 解決策
2,381件の閲覧回数
jh1
Contributor III

Hi,

we figured out an additional important setting (thanks to the AN12302: i.MX RT eLCDIF RGB Mode Use Case: Chapter 4. eLCDIF demo and performance tuning):

ELCDIF_AXIMasterFeature(LCDIF, kELCDIF_AXI_burst_len_8 | kELCDIF_outstanding_req_8);

This sets the "LCDIF General Control2 Register" (see eLCDIF chapter in RM) and allows for using a lower priority value of 5 (instead of 11). 

Kind regards,

Johann

元の投稿で解決策を見る

0 件の賞賛
返信
4 返答(返信)
2,382件の閲覧回数
jh1
Contributor III

Hi,

we figured out an additional important setting (thanks to the AN12302: i.MX RT eLCDIF RGB Mode Use Case: Chapter 4. eLCDIF demo and performance tuning):

ELCDIF_AXIMasterFeature(LCDIF, kELCDIF_AXI_burst_len_8 | kELCDIF_outstanding_req_8);

This sets the "LCDIF General Control2 Register" (see eLCDIF chapter in RM) and allows for using a lower priority value of 5 (instead of 11). 

Kind regards,

Johann

0 件の賞賛
返信
2,381件の閲覧回数
victorjimenez
NXP TechSupport
NXP TechSupport

Hello Johan, 

This behavior is specified in a comment of the SDK. It's up to each customer to modify this value according to their needs. Within the SDK we recommend that value doesn't be greater than 5. If you put 5 instead of 11, do you still face the shift behavior? 

Regards, 

Victor 

0 件の賞賛
返信
2,381件の閲覧回数
jh1
Contributor III

Hello Victor,

thx for your answer. Couldn't find this comment.

Well priority of 5 is not enough - i need a min. value of 11.

Kind regards,

Johann

0 件の賞賛
返信
2,381件の閲覧回数
victorjimenez
NXP TechSupport
NXP TechSupport

Hello Johann, 

Which version of the SDK are you using? Please download the newest version available (2.7). 

The comment is right above the code that you modified:  

pastedImage_1.png

Regards, 

Victor 

0 件の賞賛
返信