这些小活动你都参加了吗?快来围观一下吧!>>
电子产品世界 » 论坛首页 » 综合技术 » 基础知识 » VXWORKS,NUCLEUS,keil,for,arm,01a,ccd,135

共2条 1/1 1 跳转至

,VXWORKS,NUCLEUS,keil,for,arm,01a,ccd,13581980230, [请教]点casio 3.8"gray屏时要注意

院士
2006-09-17 18:14:16     打赏
,VXWORKS,NUCLEUS,keil,for,arm,01a,ccd,13581980230, [请教]点casio 3.8"gray屏时要注意什么的吗?



关键词: VXWORKS     NUCLEUS     135819802    

院士
2006-12-22 22:43:00     打赏
2楼
问 在LINUX下,用S3C2410点casio 3.8"gray屏,一直没图象的痕迹
5个CON寄存器设置应该没问题的(和WINDOWS下的一个test程序一样)
3个ADDR的值计算出来和显示出来也是一致的
就是没反应,求教~ 1: 帮帮我没人帮我啊~~~~~~ 2: 在s3c2410fb_activate_var函数里测试在这个函数的的最后:
LCDCON1 |= LCD1_ENVID;

这一句后面加上:

dst=VideoPhysicalTemp;
for(y=0;y<320;y++)
  for(x=0;x<240/2;x++)
   {
       *dst=0xff;
       dst++;
    }

来测试液晶屏,当然这里用到的变量前面都要定义:
  unsigned char x,y,*dst;
3: 谢谢楼上的,谢谢
   这个测试程序我在linux_logo里写过,但没效果,也没出错.
   现在按照你的方法,在s3c2410fb_activate_var这个函数里使用后,出了点错,以下是信息:
    con1 = 0x00000a25
con2 = 0x004fc000
con3 = 0x00003b0d
con4 = 0x00000d00
con5 = 0x00000000
addr1 = 0x181a0800
addr2 = 0x001a5300
addr3 = 0x0000003c      //最大的怀疑是那3个addr,
                            VideoPhysicalTemp=0x30341000
错误信息:
Unable to handle kernel paging request at virtual address 30341000
pgd = c0004000
*pgd = 00000000, *pmd = 00000000
Internal error: Oops: ffffffff
CPU: 0
pc : [<c00f035c>]    lr : [<c002a130>]    Not tainted
sp : c032bef8  ip : c032beb0  fp : c032bf34
r10: 00000000  r9 : 000000a0  r8 : c0352834
r7 : 30341000  r6 : 00000000  r5 : 00000d00  r4 : ed000000
r3 : 000000ff  r2 : 00000001  r1 : 00000001  r0 : 00000013
Flags: Nzcv  IRQs off  FIQs on  Mode SVC_32  Segment kernel
Control: C000317F  Table: 30004000  DAC: 0000001D
Process swapper (pid: 1, stackpage=c032b000)
Stack: (0xc032bee8 to 0xc032c000)
bee0:                   c002a130 c00f035c 80000093 ffffffff 00000a24 004fc000
bf00: 00003b0d 00000d00 00000000 181a0800 181a5300 0000003c c0352800 c0352834
bf20: c0352800 ffffffff c032bf4c c032bf38 c00f03f4 c00f01e8 c03529fc c0352834
bf40: c032bf78 c032bf50 c00f064c c00f039c c0352800 00000000 c0016640 c01d5ac0
bf60: c01a4c40 41129200 30015454 c032bf90 c032bf7c c0012c78 c00f0424 00000000
bf80: 00000000 c032bfac c032bf94 c00120ec c0012c48 c0019f68 c0208768 c01d5ad8
bfa0: c032bfbc c032bfb0 c000f09c c001203c c032bfd0 c032bfc0 c0008864 c000f070
bfc0: 00000000 c032bfe0 c032bfd4 c00088ac c000885c c032bff4 c032bfe4 c001a064
bfe0: c0008890 00000000 00000000 c032bff8 c001b9f0 c001a064 000f00a8 008e0004
Backtrace:
Function entered at [<c00f01d8>] from [<c00f03f4>]
r7 = FFFFFFFF  r6 = C0352800  r5 = C0352834  r4 = C0352800
Function entered at [<c00f038c>] from [<c00f064c>]
r5 = C0352834  r4 = C03529FC
Function entered at [<c00f0414>] from [<c0012c78>]
Function entered at [<c0012c38>] from [<c00120ec>]
r5 = 00000000  r4 = 00000000
Function entered at [<c001202c>] from [<c000f09c>]
r6 = C01D5AD8  r5 = C0208768  r4 = C0019F68
Function entered at [<c000f060>] from [<c0008864>]
Function entered at [<c000884c>] from [<c00088ac>]
r4 = 00000000
Function entered at [<c0008880>] from [<c001a064>]
Function entered at [<c001a054>] from [<c001b9f0>]
r4 = 00000000
Code: e2823001 e20320ff e3a030ff e3520077 (e4c73001)
Kernel panic: Attempted to kill init!

    哪儿出了问题?我的MSN是huluobusu@hotmail.com

        再次谢谢
4: VideoPhysicalTemp=0x30341000是怎么得到的?现在的报错是:
Unable to handle kernel paging request at virtual address 30341000 5: 没图象是什么概念是一点色彩都看不到?那肯定要检查电压了 6: lanlianhua&tylnyys
VideoPhysicalTemp=0x30341000这个值是写了个语句直接取出来的,应该是程序中有个赋值的吧

关于电压,是没问题的啊,TEST程序下都可以显示图象的啊,LINUX下调不出 7: 发现一个现象make menconfig时,如果选择TFT_320240或者别的话,就不会出错,而且这款gray屏也会有反应:全写黑.
但一旦选回它自己的参数,STN_240320的,就会有以上错误.
ADDR是这样配置的,问题出在哪儿?
new_regs.lcdsaddr1 =
        LCDADDR_BANK(((unsigned long)VideoPhysicalTemp >> 22)<<21)
        | LCDADDR_BASEU(((unsigned long)VideoPhysicalTemp >> 1));

    /* 4bpp */
    new_regs.lcdsaddr2 = LCDADDR_BASEL(
        ((unsigned long)VideoPhysicalTemp + (var->xres * (var->yres)/2))
        >> 1);

    new_regs.lcdsaddr3 = LCDADDR_OFFSET(0) | (LCDADDR_PAGE(var->xres) >> 2); 8: 你好!我想学习液晶屏的显示,找到一个二手屏,CMD500TT00-C1也是CASIO的,请问你有CASIO液晶屏的相关资料吗,有的话可否传我一份,我找过好多地方了,都没找到。谢谢!
            我的邮箱:huai900@126.com 9: 没滴~没有详细资料,只有一页,介绍了3.8"屏的电压

共2条 1/1 1 跳转至

回复

匿名不能发帖!请先 [ 登陆 注册 ]