This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DM355 + RGB LCD

Hello every1,

I am using MV pro 5 and Leopard Board.

I tried interfacing 800 x 480 LCD using logic pd encoder.

I modified the logicPD code and using FBdev and sys FS tested my LCD.

But I guess I am getting weird image on LCD..I have pasted both the images below.

This is the original Image...

 

But I am getting this on LCD...

 

Any guess , why this is hapenning ?

I have used following commands..

fbset -fb /dev/fb/0 -xres 800 -yres 480 -vxres 800 -vyres 480 -nonstd 0 -laced 0 -depth 16
cp /home/LCD/800x480-dragon /dev/fb/0

 

plz help !

 

 

 

 

 

  • Hello All,
    finally I have been able to get full size image on display.
    Actually the problem was I was trying to display image with different pixel depth than specified using fbset.
    BTW now I am struck here...
    As you can see here I want to display this image ..




    And I am getting this on LCD...fairly good ..i dont know why it has been shifted...:(




    But when I convert the same image into Gray scale , like this



    And when I tried to display it.This is what i am getting on disply...
    you can see the problem.




    I think his may be because my LCD is RGB666 type and I am displaying RGB565 as per FB_info given below.

    root@192.168.2.207:/home# fbset -i -fb /dev/fb/0

    mode "800x480-55"
        # D: 27.027 MHz, H: 29.124 kHz, V: 55.474 Hz
        geometry 800 480 800 960 16
        timings 37000 40 40 29 13 48 3
        bcast true
        rgba 5/11,6/5,5/0,0/0
    endmode

    Frame buffer device information:
        Name        : dm_osd0_fb
        Address     : 0x87000000
        Size        : 2048000
        Type        : PACKED PIXELS
        Visual      : TRUECOLOR
        XPanStep    : 16
        YPanStep    : 1
        YWrapStep   : 0
        LineLength  : 1600
        Accelerator : No


    I demuxed GPIO from pinmux reg #1 like this. But it didn't help...

    REG_PINMUX1 &= ~(1<<20);// for R2
    REG_PINMUX1 |= (1<<21);
    REG_PINMUX1 &= ~(1<<18);//for B2
    REG_PINMUX1 |= (1<<19);

    I have checkd on scope R2 and B2 pins are not working like R7-R3 / B7-B3.And G7 to G2 are working good

    I have also checked VMOD register of VPBE but there isn't any specific bit to do this...

    Can you please tell me how can I convert RGB565 mode to RGB666 or RGB888 ??

    Thank you.

  • I tried bpp=32 also..

    here are my boot logs...

    Console: switching to colour frame buffer device 100x30
    davincifb davincifb.0: dm_osd0_fb: 800x480x32@0,0 with framebuffer size 3000KB
    davincifb davincifb.0: dm_vid0_fb: 800x480x16@0,0 with framebuffer size 3000KB
    davincifb davincifb.0: dm_osd1_fb: 800x480x4@0,0 with framebuffer size 2000KB
    davincifb davincifb.0: dm_vid1_fb: 800x480x16@0,0 with framebuffer size 3000KB

    and also set fb using this...

    fbset -fb /dev/fb/0 -xres 800 -yres 480 -vxres 800 -vyres 480 -depth 32 -nonstd 0 -laced 0

    and the output of info command i could see..

    mode "800x480-55"
        # D: 27.027 MHz, H: 29.124 kHz, V: 55.474 Hz
        geometry 800 480 800 480 32
        timings 37000 40 40 29 13 48 3
        bcast true
        rgba 8/16,8/8,8/0,3/24
    endmode

    Frame buffer device information:
        Name        : dm_osd0_fb
        Address     : 0x87000000
        Size        : 3072000
        Type        : PACKED PIXELS
        Visual      : TRUECOLOR
        XPanStep    : 8
        YPanStep    : 1
        YWrapStep   : 0
        LineLength  : 3200
        Accelerator : No

    but my image is 16 bit grey scale and I can not manage to convert it to rgba8888.

    Any clue ??

    thank you.

     

  • Folks ,

    It was just a connection problem with my conector now its fine.

    Its displaying nice colors.

    But now I have one another problem.

    As you can see I want to this image,

    and I am getting this...

    have you noticed the blue vertical strip on left hand side ?

    I have tried setting left/right margins and HSYNC_length but the shifting and rolling over is always present...

    can anybody suggest me what to do ?

     

  • Oops silly mistake agian..

    I  was not removing BMP header ;)

    after removing first 54 bytes its absolutely perfect now !!

    thank you all for reading this ;)

     

  • I have some question on lcd display.

    Can u give me some advices?okxuchen@163.com

  • yeah sure, remove the header and it will work.

  • oh your are talking about hte shift ? its because of the rgb666 and rgb565 issue . . .select your input image as your configuration type.

    for example if you are using rgb666 then use 18 bpp image.

  • I want to display video