Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 11 posts ] 
Author Message
 Post subject: Image display problem (Partial framebuffer got overwritten)
PostPosted: Thu Aug 30, 2007 9:13 am 
Offline

Joined: Wed Jul 04, 2007 8:01 am
Posts: 37
Hello,

I am using AT91SAM9261EK board with board package on at91.com.

I have encountered a problem with displaying image on the LCD.

Upon system startup, if the application to display the image is executed immediately after login, the image display will be as shown in the picture below (a small black area on the left side of the screen).

However, if the application is run a few minutes after system login, the image display is OK (not small black area on the left of the screen).

[img]c:\cksim\DSC00127.JPG[/img]

Anyone has the same encounter ?

Thanks in advance.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 30, 2007 10:53 am 
Offline

Joined: Thu Aug 09, 2007 10:48 am
Posts: 106
Location: Artec Design LLC, Tallinn, Estonia
Please upload the pictures to a web site and post http url. The fact, that your picture is on your hard drive at c:\cksim\DSC00127.JPG does not help much.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 30, 2007 3:48 pm 
Offline

Joined: Wed Jul 04, 2007 8:01 am
Posts: 37
Hi AntiSullin,

Any websites to recommend for photos upload ?

I do not know of any at the moment.

Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 30, 2007 9:07 pm 
Offline

Joined: Thu Aug 09, 2007 10:48 am
Posts: 106
Location: Artec Design LLC, Tallinn, Estonia
For example:
http://imageshack.us/

Actually, google knows everything:
http://www.google.com/search?q=free+image+hosting


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 31, 2007 2:15 pm 
Offline

Joined: Wed Jul 04, 2007 8:01 am
Posts: 37
Hi AntiSullin,

Image is at

Image


Any idea on the possible causes of the overwriting ?

Thanks in advance.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 31, 2007 10:38 pm 
Offline

Joined: Thu Aug 09, 2007 10:48 am
Posts: 106
Location: Artec Design LLC, Tallinn, Estonia
I've seen similar picture, when the LCD is switched from palette-based mode (that requires much less space in SRAM) to full-color mode and the video memory is not cleared or reorganized. It seems like your picture data is on top rows of the LCD and the rest is just empty SRAM.
If you're using linux kernel bundled with the EK, then that old linux 2.6.15 (if i'm not mistaken) was very buggy - the LCD driver was not stable at all then. Pull a newer kernel (2.6.22 if you want latest stable, or 2.6.23-rc) and apply the latest AT91 patches from http://maxim.org.za/at91_26.html , compile, install and enjoy.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Sep 01, 2007 3:04 am 
Offline

Joined: Wed Jul 04, 2007 8:01 am
Posts: 37
Hi AntiSullin,

FYI, I am using 2.6.21, not the one that came with the EK board.

You may ignore the info displayed as that picture is correct.

However, at the left hand edge of the screen, you will see a small black square area (which is NOT part of the picture) is being displayed.

Do you think this small black area can be resolved by the latest kernel ?

FYI, if the same picture is being displayed a few minutes after system login, the black area will disappear and the correct picture will be seen.

Thanks in advance.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 04, 2007 4:34 pm 
Offline

Joined: Thu Aug 09, 2007 10:48 am
Posts: 106
Location: Artec Design LLC, Tallinn, Estonia
Sry, misunderstood the problem.
Never seen that black square. Does it happen on a single device or have you tried more devices?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 06, 2007 12:03 am 
Offline

Joined: Wed Jul 04, 2007 8:01 am
Posts: 37
Hi AntiSullin,

Yes, it happens on another display device too.

The scenario is as follows:

1) On kernel bootup, the Linux Penguin logo appears
2) After logon, if the image is displayed immediately, the black square area will apeear.
3) If image is displayed after the 'Linux logo' has gone off by itself (after some time), then the image display will be fine (no black square)


One question. Any idea what causes the Linux logo to disappear by itself after some time ?


Thanks in advance


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 06, 2007 9:10 am 
Offline

Joined: Thu Aug 09, 2007 10:48 am
Posts: 106
Location: Artec Design LLC, Tallinn, Estonia
Something overwrites the framebuffer?
Are you keeping your FB in the internal SRAM? Maybe you have some kind of wrong pointer issue in another driver, that just overwrites that region?
I was using the 2.6.21.2+maxim.org.ua patchset in my last set of devices (custom boards with sam9261) and I had no problems with LCD.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 06, 2007 2:25 pm 
Offline

Joined: Wed Jul 04, 2007 8:01 am
Posts: 37
Hi AntiSullin,

The buffer on the EK board is using internal SRAM for 320x240 display.

I did not have any drivers of my own.

Really got no idea what is happening.

Best Regards.

Sim CK


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 20 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: