zoukankan      html  css  js  c++  java
  • 8148之更换摄像头出现异常---REISZER OVERFLOW OCCURED: RESTARTING

    my iss config as:

    rsz_reg->SRC_VSZ  = 1079;//715;
        rsz_reg->SRC_HSZ  = 1919;//1277;

        rszA_reg->RZA_V_DIF  = 256;
        rszA_reg->RZA_H_DIF  = 256;
        rszA_reg->RZA_DWN_EN  = 0;
        rszA_reg->RZA_DWN_AV  = 0;

        rszB_reg->RZB_V_DIF = 256;//380; //1280/720*256;
        rszB_reg->RZB_H_DIF = 256;//450; //720/480*256;

        isif_reg->HDW   = 1919;//1281;
        isif_reg->VDW   = 1079;//721;
        isif_reg->PPLN   = 1919;//1281;
        isif_reg->LPFR   = 2159;//1439;
        isif_reg->LNH   = 1920;//2561;
     isif_reg->LNV   = 1080;//721;
        isif_reg->CCOLP   = 58596;
        isif_reg->CGAMMAWD  = 16;
        isif_reg->SPH       = 1;//3;

        rsz_reg->SRC_FMT0 = 1;

        isif_reg->MODESET = 0x100C;//0x200C;   //for YUV
        isif_reg->HSIZE = 80 ;
        ipipeif_reg->CFG2 = 0x0E;//0xCE;
        rsz_reg->SRC_HPS = 0x1;
        isif_reg->CCDCFG = 0x8000;//0x8002;
        isif_reg->CLDCOFST = 0;

        ipipe_reg->SRC_COL  = 27;
        ipipe_reg->SRC_VSZ  = 1079;//721;
        ipipe_reg->SRC_HSZ  = 1919;//1281;

        gIss_captCommonObj.pModuleInstance->nLscTableIsValid       = MSP_TRUE;

        ipipe_reg->WB2_WGN_R = 600;
        ipipe_reg->WB2_WGN_B = 750;
        ipipe_reg->RGB1_MUL_RR = 256;
        ipipe_reg->RGB1_MUL_GR = 0;
        ipipe_reg->RGB1_MUL_BR = 0;
        ipipe_reg->RGB1_MUL_RG = 0;
        ipipe_reg->RGB1_MUL_GG = 256;
        ipipe_reg->RGB1_MUL_BG = 0;
        ipipe_reg->RGB1_MUL_RB = 0;
        ipipe_reg->RGB1_MUL_GB = 0;
        ipipe_reg->RGB1_MUL_BB = 256;
        *(MSP_U32 *)(0x5505006C) &= 0xBFFFFF;

    http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/716/t/380821.aspx

    http://www.deyisupport.com/question_answer/dsp_arm/davinci_digital_media_processors/f/39/t/61389.aspx

    http://processors.wiki.ti.com/index.php/File:DM813x_DDR_Controller_Register_Configuration_spreadsheet_v1.0.zip

    http://www.deyisupport.com/question_answer/dsp_arm/davinci_digital_media_processors/f/39/t/59379.aspx?pi2132219853=2

    http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/716/t/242555.aspx

    Thanks for you reply.

    I think It's relate to the  DMM LISA MAP and DDR3 timing configure.

    I have two board, One is used 4x128M DDR3 (K4B1G1646G-BCH9), other is used 2x256M DDR3(K4B2G1646G-BCH9); And the result(at same test env), the first camera is ok, and the second camera often happend RSZ OVERFLOW. 

    The first camera configure(default value of IPNC3.2), 4x128 DDR3

    #define PG2_1_DMM_LISA_MAP__0 0x0
    #define PG2_1_DMM_LISA_MAP__1 0x0
    #define PG2_1_DMM_LISA_MAP__2 0x805C0300
    #define PG2_1_DMM_LISA_MAP__3 0xA05C0300

     /* TI814X DDR3 EMIF CFG Registers values 400MHz */
    #define DDR3_EMIF_READ_LATENCY      0x00170208 //RD_ODT=0x2, IDLE_ODT=0x0, Dynamic power_down enabled
    #define DDR3_EMIF_TIM1      0x0AAAD4DB
    #define DDR3_EMIF_TIM2      0x682F7FDA
    #define DDR3_EMIF_TIM3      0x501F82BF
    #define DDR3_EMIF_REF_CTRL 0x00000C30
    #define DDR3_EMIF_SDRAM_CONFIG 0x61C011B2
    #define DDR3_EMIF_SDRAM_ZQCR 0x50074BE1

    And the second  camera configure(configure by myself), 2x256 DDR3 connect to EMIF0, using the same timing configure.

    In order to in reduce the jointing cost, we want to using 2 pieces of DDR3.

    #define PG2_1_DMM_LISA_MAP__0 0x805C0100
    #define PG2_1_DMM_LISA_MAP__1 0xA05C0100
    #define PG2_1_DMM_LISA_MAP__2 0x0
    #define PG2_1_DMM_LISA_MAP__3 0x0 

     /* TI814X DDR3 EMIF CFG Registers values 400MHz */
    #define DDR3_EMIF_READ_LATENCY      0x00170208 //RD_ODT=0x2, IDLE_ODT=0x0, Dynamic power_down enabled
    #define DDR3_EMIF_TIM1      0x0AAAD4DB
    #define DDR3_EMIF_TIM2      0x682F7FDA
    #define DDR3_EMIF_TIM3      0x501F82BF
    #define DDR3_EMIF_REF_CTRL 0x00000C30
    #define DDR3_EMIF_SDRAM_CONFIG 0x61C011B2
    #define DDR3_EMIF_SDRAM_ZQCR 0x50074BE1  

     

    Who can give me some advice? Thanks a lot. 

    问题发现:

    可以看出,坑定是scale 缩放时除了问题,后面经过测试,发现原来是8148的缩放比例不能是输入1080p(1920x1080),然后scale也是1080p,导致的,要么去掉没用的scale link,通过输出为480x320时,就可以了!,前面无论是等比缩放,还是绝对尺寸,效果都一样,死掉

    http://www.deyisupport.com/question_answer/dsp_arm/davinci_digital_media_processors/f/39/p/60868/135006.aspx

    http://www.deyisupport.com/question_answer/dsp_arm/davinci_digital_media_processors/f/39/p/30102/92261.aspx

    http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/716/p/189966/683632.aspx

    http://m.blog.csdn.net/blog/mianhuantang848989/27226631

    http://www.deyisupport.com/question_answer/dsp_arm/davinci_digital_media_processors/f/39/p/51488/115830.aspx#115830

    http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/716/t/242555.aspx 8127的溢出

    http://www.deyisupport.com/question_answer/dsp_arm/davinci_digital_media_processors/f/39/p/17576/58690.aspx#58690

  • 相关阅读:
    立体匹配算法(转载)
    校招总结
    tcpip概述
    Matlab2014a 提示未找到支持的编译器或 SDK的解决方法
    CSS3 实现简单轮播图
    css3实现switch开关效果
    Sass的使用和基础语法
    Git的安装和使用记录
    jQuery淡入淡出效果轮播图
    JavaScript焦点轮播图
  • 原文地址:https://www.cnblogs.com/pengkunfan/p/4138331.html
Copyright © 2011-2022 走看看