2009-04-17 10:48:44     LCD on BF537 Stamp

Document created by Aaronwu Employee on Aug 22, 2013
Version 1Show Document
  • View in full screen mode

2009-04-17 10:48:44     LCD on BF537 Stamp

Isack Waserman (UNITED STATES)

Message: 72783   

 

hello all,

 

I am trying (for the past week) to setup my new LCD EZ Extender on my BF537 Stamp board but NO succes.

 

I followed instructions on these links

 

  docs.blackfin.uclinux.org/doku.php?id=hw:cards:landscape_lcd_ez-extender#hardware_configuration_bf537_stamp_ez-kit_lite

 

  docs.blackfin.uclinux.org/doku.php?id=hw:cards:tft-lcd

 

and still cant make it work.

 

I have modified my Stamp board as sugested.

 

Driver loads properly, when i run nano-X & I'm getting a process number.

 

nothing shows on video_test

 

after starting nano-X and trying to start any nx application the application starts but no display.

 

I have the latests kernel abd uClinux dist

 

Linux version 2.6.22.19-ADI-2008R1.5-svn (root@linux) (gcc version 4.1.2 (ADI svn)) #44

 

any help/sugestions will be greatly apriciated

QuoteReplyEditDelete

 

 

2009-04-17 14:36:40     Re: LCD on BF537 Stamp

Robin Getz (UNITED STATES)

Message: 72790   

 

Isack:

 

Are all the switches set properly?

 

-Robin

QuoteReplyEditDelete

 

 

2009-04-17 17:00:02     Re: LCD on BF537 Stamp

Isack Waserman (UNITED STATES)

Message: 72804   

 

Hi Robin,

 

Thanks for you reply

 

I do think so. S5 all Off, S4 off, on, off, on

 

Is there a single document  that I can follow which explains the process of setting this display up

 

from start to finish (including setting up the framebuffer etc..)?

 

Thanks

 

isack

QuoteReplyEditDelete

 

 

2009-04-17 17:14:49     Re: LCD on BF537 Stamp

Michael Hennerich (GERMANY)

Message: 72806      docs.blackfin.uclinux.org/doku.php?id=hw:cards:landscape_lcd_ez-extender

 

Is the link you need to follow instructions, for the hardware setup.

 

>Linux version 2.6.22.19-ADI-2008R1.5-svn (root@linux) (gcc version 4.1.2 (ADI svn)) #44

 

However the appropriate driver is only in our SVN trunk - and NOT in the 2008R1 release!!!

 

  docs.blackfin.uclinux.org/doku.php?id=linux-kernel:drivers:sharp_lq035q1dh02

 

-Michael

 

 

QuoteReplyEditDelete

 

 

2009-04-20 09:35:25     Re: LCD on BF537 Stamp

Isack Waserman (UNITED STATES)

Message: 72875   

 

Hi Micahel,

 

Thanks for yor input

 

I look into the svn trunk and found out that there are two files under trunk/drivers/video

 

1. is the bf537-lq035.c  rev 5980

 

2. is the bfin-lq035q1-fb.c rev 5742

 

both were authore by you

 

Do i need to add both file to my kernel?

 

also for the first file I have noticed on a diffrent document      docs.blackfin.uclinux.org/doku.php?id=hw:cards:tft-lcd

 

that I have to comment out this line (end of document)  ”#define UD GPIO_PF13 /* Up / Down */   Is this still the case with the newest driver?

 

Thanks

 

Isack

 

 

QuoteReplyEditDelete

 

 

2009-04-20 09:43:47     Re: LCD on BF537 Stamp

Michael Hennerich (GERMANY)

Message: 72878    >Do i need to add both file to my kernel?

NO

 

If you use the Blackfin Landscape Extender Card you ONLY need to enable the bfin-lq035q1-fb.c driver.

-Michael

 

 

QuoteReplyEditDelete

 

 

2009-04-20 09:51:03     Re: LCD on BF537 Stamp

Isack Waserman (UNITED STATES)

Message: 72879   

 

Michael,

 

Again thanks for the super quick response

 

In order to select the fb file do i need to change its name?

 

I do not remember seeing this selection in make menuconfig? Should i remove the current driver?

 

I wish there was a more orgenized document for setting this NOT so EZ card where it was explained in ONE location on how to get it up and running. Altough help from people like you is great

 

Thanks

 

Isack

QuoteReplyEditDelete

 

 

2009-04-20 10:09:06     Re: LCD on BF537 Stamp

Michael Hennerich (GERMANY)

Message: 72885    I would use our SVN trunk kernel. This one has the driver option.

 

If you need to use 2008R1 -

 

Copy the file into drivers/video then edit drivers/video/Makefile and

drivers/video/Kconfig

Check these files - the entries you need to do a straight forward.

 

-Michael

 

QuoteReplyEditDelete

 

 

2009-04-20 10:27:00     Re: LCD on BF537 Stamp

Isack Waserman (UNITED STATES)

Message: 72887   

 

Michael,

 

yet again thanks so much for the quick response.

 

i'm getting the kernel from the trunk right now.

 

I'll add the frame buffer driver and give it a shot

 

I'll let you know

 

thanks so much

 

isack

QuoteReplyEditDelete

 

 

2009-04-20 13:56:55     Re: LCD on BF537 Stamp

Isack Waserman (UNITED STATES)

Message: 72898   

 

Hi Michael,

 

Altough my display is NOT working as of yet with your help i got advanced a bit.

 

I have updated the kernel as you sugested (I hope i did it the right way)

 

Linux version 2.6.28.9-ADI-2009R1-pre-svn6278 (root@linux) (gcc version 4.1.2 (ADI svn)) #6 Mon Apr 20 13:29

 

bfin-lq035q1: 320x240 16-bit RGB FrameBuffer initializing...

 

dma_alloc_init: dma_page @ 0x032cd000 - 256 pages at 0x03f00000

 

 

 

Now when i run video-test my console not just hanging in the air doing nothing, below is the output of video-test

 

**********************************************************************************************************************

 

root:/> nano-X &

164

root:/> video_test

UnaIll lo mmepgframa l fuerse of supervisor resource

- Attempted to use a Supervisor register or instruction from User mode.

   Supervisor resources are registers and instructions that are reserved

   for Supervisor use: Supervisor only registers, all MMRs, and Supervisor

   only instructions.

Deferred Exception context

CURRENT PROCESS:

COMM=video_test PID=165

CPU = 0

TEXT = 0x008a0040-0x008a60c0        DATA = 0x008a60e0-0x008a74a0

BSS = 0x008a74a0-0x008a8420  USER-STACK = 0x008a9f78

 

return address: [0x008a0fa6]; contents of:

0x008a0f80:  c401  911b  0000  0c81  643a  9142  070a  4d19

0x008a0f90:  3042  40d8  40c8  0d00  1821  6801  63fd  6007

0x008a0fa0:  916a  3206  5a8a [9b15] 916a  5a8a  e697  0001

0x008a0fb0:  916a  5a8a  e697  0002  9142  9120  ce82  c200

 

SEQUENCER STATUS:               Not tainted

SEQSTAT: 0006002e  IPEND: 0030  SYSCFG: 0006

  EXCAUSE   : 0x2e

  interrupts disabled

  physical IVG5 asserted : <0xffa00c74> { _evt_ivhw + 0x0 }

RETE: <0x00000000> { __stext + 0xfffff000 }

RETN: <0x009b4000> /* kernel dynamic memory */

RETX: <0x00000480> /* Maybe fixed code section */

RETS: <0x008a1034> [ video_test + 0xff4 ]

PC  : <0x008a0fa6> [ video_test + 0xf66 ]

DCPLB_FAULT_ADDR: <0xffffffff> /* kernel dynamic memory */

ICPLB_FAULT_ADDR: <0x008a0fa6> [ video_test + 0xf66 ]

 

PROCESSOR STATE:

R0 : 00025800    R1 : 00000002    R2 : 00000017    R3 : 000000f0

R4 : 008a836c    R5 : ffffffff    R6 : 008a8370    R7 : 00000000

P0 : 008a8370    P1 : 00000000    P2 : ffffffff    P3 : 008a8368

P4 : 008a8414    P5 : 008a8418    FP : 008a9f08    SP : 009b3f24

LB0: 008a4881    LT0: 008a487e    LC0: 00000000

LB1: 008a4209    LT1: 008a4208    LC1: 00000000

B0 : 00000000    L0 : 00000000    M0 : 00000000    I0 : 008a63dc

B1 : 00000000    L1 : 00000000    M1 : 00000000    I1 : 0086e31c

B2 : 00000000    L2 : 00000000    M2 : 00000000    I2 : 00000000

B3 : 00000000    L3 : 00000000    M3 : 00000000    I3 : 00000000

A0.w: 00000000   A0.x: 00000000   A1.w: 00000000   A1.x: 00000000

USP : 008a9ef0  ASTAT: 02003004

 

Hardware Trace:

   0 Target : <0x00004e84> { _trap_c + 0x0 }

     Source : <0xffa006fa> { _exception_to_level5 + 0x9e } CALL pcrel

   1 Target : <0xffa0065c> { _exception_to_level5 + 0x0 }

     Source : <0xffa0052a> { _bfin_return_from_exception + 0xe } RTX

   2 Target : <0xffa0051c> { _bfin_return_from_exception + 0x0 }

     Source : <0xffa005b2> { _ex_trap_c + 0x66 } JUMP.S

   3 Target : <0xffa0054c> { _ex_trap_c + 0x0 }

     Source : <0xffa00794> { _trap + 0x38 } 0x5f65

   4 Target : <0xffa0077a> { _trap + 0x1e }

     Source : <0xffa00776> { _trap + 0x1a } 0xe10d

   5 Target : <0xffa0075c> { _trap + 0x0 }

     Source : <0x008a0fa4> [ video_test + 0xf64 ] 0x5a8a

   6 Target : <0x008a0f7a> [ video_test + 0xf3a ]

     Source : <0x008a1034> [ video_test + 0xff4 ] JUMP.S

   7 Target : <0x008a1034> [ video_test + 0xff4 ]

     Source : <0x008a3ad4> [ video_test + 0x3a94 ] RTS

   8 Target : <0x008a3ace> [ video_test + 0x3a8e ]

     Source : <0x008a3af4> [ video_test + 0x3ab4 ] RTS

   9 Target : <0x008a3af0> [ video_test + 0x3ab0 ]

     Source : <0x008a3e88> [ video_test + 0x3e48 ] RTS

  10 Target : <0x008a3e80> [ video_test + 0x3e40 ]

     Source : <0x008a3e74> [ video_test + 0x3e34 ] IF CC JUMP

  11 Target : <0x008a3e6e> [ video_test + 0x3e2e ]

     Source : <0x008a3d48> [ video_test + 0x3d08 ] IF !CC JUMP

  12 Target : <0x008a3d3c> [ video_test + 0x3cfc ]

     Source : <0x008a4f9c> [ video_test + 0x4f5c ] RTS

  13 Target : <0x008a4f94> [ video_test + 0x4f54 ]

     Source : <0x008a4f34> [ video_test + 0x4ef4 ] IF !CC JUMP

  14 Target : <0x008a4f30> [ video_test + 0x4ef0 ]

     Source : <0x008a4f50> [ video_test + 0x4f10 ] IF CC JUMP

  15 Target : <0x008a4f4c> [ video_test + 0x4f0c ]

     Source : <0x008a5abc> [ video_test + 0x5a7c ] RTS

Userspace Stack

Stack info:

SP: [0x008a9ef0] <0x008a9ef0> [ video_test + 0x9ef0 ]

FP: (0x008a9f08)

Memory from 0x008a9ef0 to 008aa000

008a9ef0:[00000000] 00000000  008a8374  00000002  00000003  00000000 (008a9f38)<008a4df8>

008a9f10: 008a60e0  008a749c  008a9f7c  00000000  008a834c  00000001  008a0ee8  00000000

008a9f30: 00000000  00000000 (00000000)<00842ce0> 008a60e0  001a0550  00868170  00000000

008a9f50: 00860e0d  001a0534  001a054c  00000000  00000000  00000000  008a6098  008a60aa

008a9f70: 00000000 <0086d930> 00000001  008a9f99  00000000 <008a9fa4> 008a9fab  008a9fb9

008a9f90: 008a9fe1  00000000  64697600  745f6f65  00747365  454d4f48  53002f3d  4c4c4548

008a9fb0: 69622f3d  68732f6e  54415000  622f3d48  2f3a6e69  2f727375  3a6e6962  6374652f

008a9fd0: 62732f3a  2f3a6e69  2f727375  6e696273  52455400  696c3d4d  0078756e  6e69622f

008a9ff0: 6469762f  745f6f65  00747365  00000000  00000028

Return addresses in stack:

   frame  1 : <0x008a4df8> [ video_test + 0x4db8 ]

   frame  2 : <0x00842ce0> [ sh + 0x42ce0 ]

    address : <0x0086d930> [ sh + 0x6d930 ]

    address : <0x008a9fa4> [ video_test + 0x9fa4 ]

 

: Operation not permitted

Illegal instruction

root:/>

**********************************************************************************************************************************

 

 

 

do you have a precompiled uImage that works on your board that i can try download to my board. this will help me to determain is i have hardware issues or configuration issues

 

 

 

Thanks in advance for your time and effort

 

Isack

 

 

QuoteReplyEditDelete

 

 

2009-04-21 08:35:13     Re: LCD on BF537 Stamp

Michael Hennerich (GERMANY)

Message: 72983   

 

Try to use attached image - and following Extender card config.

 

Landscape LCD EZ-EXTENDER( Rev 1.1 ):

JP1: OFF

JP2: 3-4 installed

JP3: All OF

JP5: 1-2 installed

JP6: OFF

JP7: OFF

JP8: All OFF

JP9: ON

JP10: All OFF

JP11: 2 Wire -> PF6 (SPORT1 CON P7 Pin 25 / AD7147 Interrupt)

JP12: OFF

JP13: 2-3 installed (SET 1 & 2 in case the AD7879 (AUX/GPIO) should turn on the Backlight)

 

These are the changes I made to the BF537-STAMP platform config - in order to avoid using additional wires from the STAMP to the externder card.

 

Index: arch/blackfin/mach-bf537/boards/stamp.c

===================================================================

--- arch/blackfin/mach-bf537/boards/stamp.c (revision 6281)

+++ arch/blackfin/mach-bf537/boards/stamp.c (working copy)

@@ -792,7 +792,7 @@

.modalias = "bfin-lq035q1-spi",

.max_speed_hz = 20000000, /* max spi clock (SCK) speed in HZ */

.bus_num = 0,

- .chip_select = 2,

+ .chip_select = 1,

.controller_data = &lq035q1_spi_chip_info,

.mode = SPI_CPHA | SPI_CPOL,

},

@@ -925,7 +925,7 @@

 

static struct bfin_lq035q1fb_disp_info bfin_lq035q1_data = {

.mode = LQ035_NORM | LQ035_RGB | LQ035_RL | LQ035_TB,

- .use_bl = 0, /* let something else control the LCD Blacklight */

+ .use_bl = 1, /* let something else control the LCD Blacklight */

.gpio_bl = GPIO_PF7,

};

 

 

 

Once the image is booted you should see the logo top left.

 

Try video_test and may some framebuffer console stuff.

 

BusyBox v1.13.3 (2009-03-27 13:33:55 CET) built-in shell (msh)

Enter 'help' for a list of built-in commands.

 

root:/> video_test

root:/>

root:/> top > /dev/tty0

root:/>

 

-Michael

 

 

 

uImage

QuoteReplyEditDelete

 

 

2009-04-21 09:38:30     Re: LCD on BF537 Stamp

Michael Hennerich (GERMANY)

Message: 72991    >(enter your response here)

QuoteReplyEditDelete

 

 

2009-04-21 10:33:49     Re: LCD on BF537 Stamp

Isack Waserman (UNITED STATES)

Message: 72995   

 

Michael,

 

yet again thanks so much for your time and effort.

 

I'm still not getting anything on my disply.

 

I hav noticed that the backlight behavior changed and it comes on only after the driver is loaded and not when I power up the board. I do belive this is due to the changes you made to the stamp.c file

 

Also I have modified my board so that GPIO PF13 (pin 34 on the PPi connector) is removed from the connector and is connected to ground via 100 Ohm resistor. do I need to REVERT this modification?

 

Thanks Isack

QuoteReplyEditDelete

 

 

2009-04-21 10:57:57     Re: LCD on BF537 Stamp

Michael Hennerich (GERMANY)

Message: 72997    >Also I have modified my board so that GPIO PF13 (pin 34 on the PPi

connector) is removed from the

>connector and is connected to ground via 100 Ohm resistor.

 

PF13 = SPI_CLK

The Display features a SPI based configuration interface.

 

> do I need to REVERT this modification?

 

Yes - without a functional SPI interface to the display - you won't see

anything.

 

-Michael

 

QuoteReplyEditDelete

 

 

2009-04-21 12:15:05     Re: LCD on BF537 Stamp

Isack Waserman (UNITED STATES)

Message: 73006   

 

Hi Michael,

 

sorry, it is still not working for me.

 

just a blank screen with the baclight on

 

can I do anything on my side that will help to debug it?

 

any tests? debugs etc..

 

Thanks

 

Isack

QuoteReplyEditDelete

 

 

2009-04-21 14:05:37     Re: LCD on BF537 Stamp

Michael Hennerich (GERMANY)

Message: 73015    You use the image I posted?

And the Jumper setting is exactly like I detailed?

 

-Michael

 

QuoteReplyEditDelete

 

 

2009-04-21 14:51:48     Re: LCD on BF537 Stamp

Isack Waserman (UNITED STATES)

Message: 73018   

 

Hi Michael,

 

Yes for both questions,

 

Linux version 2.6.28.9-ADI-2009R1-pre-svn6277 (michael@mhenneri-D02) (gcc version 4.1.2 (ADI svn)) #1610

 

bfin-lq035q1: 320x240 16-bit RGB FrameBuffer initializing...             

 

Console: switching to colour frame buffer device 80x40

 

Also when I look under /lib/modules/  I see the following 3 'kernels'  there

 

2.6.28.7-ADI-2009R1-pre-svn6218  2.6.28.9-ADI-2009R1-pre-svn6277

2.6.28.9-ADI-2009R1-pre-svn6266

 

when looking into  root:/lib/modules/2.6.28.7-ADI-2009R1-pre-svn6218/kernel/drivers/video>  ls -l

drwxr-xr-x    2 root     root            0 Apr 21  2009 backlight

-rw-r--r--    1 root     root        13668 Apr 21  2009 bf537-lq035.ko

-rw-r--r--    1 root     root        15384 Apr 21  2009 bfin_adv7393fb.ko

-rw-r--r--    1 root     root         2720 Apr 21  2009 cfbcopyarea.ko

-rw-r--r--    1 root     root         4420 Apr 21  2009 cfbfillrect.ko

-rw-r--r--    1 root     root         2736 Apr 21  2009 cfbimgblt.ko

-rw-r--r--    1 root     root        34996 Apr 21  2009 fb.ko

 

 

root:/lib/modules/2.6.28.9-ADI-2009R1-pre-svn6266/kernel/drivers/video> ls -l

drwxr-xr-x    2 root     root            0 Apr 21  2009 backlight

-rw-r--r--    1 root     root        13668 Apr 21  2009 bf537-lq035.ko

-rw-r--r--    1 root     root        15384 Apr 21  2009 bfin_adv7393fb.ko

-rw-r--r--    1 root     root         2716 Apr 21  2009 cfbcopyarea.ko

-rw-r--r--    1 root     root         4416 Apr 21  2009 cfbfillrect.ko

-rw-r--r--    1 root     root         2736 Apr 21  2009 cfbimgblt.ko

-rw-r--r--    1 root     root        34996 Apr 21  2009 fb.ko

 

 

root:/lib/modules/2.6.28.9-ADI-2009R1-pre-svn6277/kernel/drivers/video> ls -l

drwxr-xr-x    2 root     root            0 Apr 21  2009 backlight

 

Again, thanks so much for your help time and effort

 

isack

QuoteReplyEditDelete

 

 

2009-04-27 11:44:36     Re: LCD on BF537 Stamp

Isack Waserman (UNITED STATES)

Message: 73295   

 

Hi Michael,

 

I was trying to make it work for the past few days but still no sucess.

 

Any idea on how to continue?

 

Is there a chance my display (bran new never worked before) is at fault?

 

 

 

Thanks

 

Isack

QuoteReplyEditDelete

 

 

2009-04-27 11:57:43     Re: LCD on BF537 Stamp

Michael Hennerich (GERMANY)

Message: 73296    Please describe your complete HW setup.

EZKIT or STAMP board revision including BOM Rev.

 

Describe ALL your Jumper and Switch settings on the EZKIT and LCD

extender.

 

-Michael

 

QuoteReplyEditDelete

 

 

2009-04-27 12:57:00     Re: LCD on BF537 Stamp

Isack Waserman (UNITED STATES)

Message: 73299   

 

Hi Michael,

 

Thanks for your response

 

ADDS-BF537-STAMP V1.3 , U24 showing 1.0

 

STAMP config:

 

S2, S3 and S5 - All Off

 

S4 - Off, On, Off, On

 

S6- On, On, Off, Off

 

S16 - 0

 

JP5 - Connected (ON)

 

JP9 - Off

 

ADZS-BFLLCD-EZEXT REV 1.1

 

BOM Rev 1.3

 

LCD config:

 

JP1, JP3, JP6, JP7, JP8, JP 10, JP 12 - Off

 

JP2 - 3&4 - ON

 

JP5- 1&2 - ON

 

JP9 - ON

 

JP11 - 2 connected to SPORT1 (pin 25) on STAMP

 

JP13 - 2&3 - ON

 

Thanks

 

Isack

 

 

 

 

QuoteReplyEditDelete

 

 

2009-04-28 07:47:55     Re: LCD on BF537 Stamp

Michael Hennerich (GERMANY)

Message: 73354    Isack,

 

I tried your HW config here with the uImage I provided.

And it works ok.

 

At some point you mentioned that you did some HW modifications.

Are you sure that you restored the original state?

 

Otherwise - there is likely being a HW issue with your set of boards.

-Michael

 

 

QuoteReplyEditDelete

 

 

2009-04-28 08:21:52     Re: LCD on BF537 Stamp

Isack Waserman (UNITED STATES)

Message: 73358   

 

Michael,

 

Thanks so much for all your time and effort.

 

yep, I have reverted the modification i did to the board.

 

I'll try getting another display from analog and try it again.

 

Thanks so much

 

Isack

QuoteReplyEditDelete

 

 

2010-08-25 09:02:23     Re: LCD on BF537 Stamp

Sullivan FERRARI (FRANCE)

Message: 92763   

 

Hello Guys,

 

I know it is a quite far away issue for you, but I am trying to do the same thing as you Isack, and I am stuck at the same point.

 

Did you finally make the LCD works?

 

Could you give me some details about your conclusions?

 

Thanks a lot in advance for your help

 

Sulli

QuoteReplyEditDelete

 

 

2010-08-25 09:46:10     Re: LCD on BF537 Stamp

Sullivan FERRARI (FRANCE)

Message: 92764   

 

I forgot to say  that I am just interested in the LCD display function at the moment.

 

I will try touch capabilities later.

 

Thanks

QuoteReplyEditDelete

Attachments

Outcomes