iMXRT1052 LCD Screen shifted

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

iMXRT1052 LCD Screen shifted

Jump to solution
1,678 Views
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?

Tags (1)
1 Solution
1,580 Views
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

View solution in original post

0 Kudos
4 Replies
1,581 Views
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 Kudos
1,580 Views
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 Kudos
1,580 Views
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 Kudos
1,580 Views
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 Kudos