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.

TDA2P-ABZ: CSI0 Settings to receive data from Deserializer

Part Number: TDA2P-ABZ

Hi All,

We are using PROCESSOR_SDK_VISION_03_07_00_00  in our custom board.

We have connected a deserializer which gives YUV422 data output.

We are receiving data from 4 lanes CSI0  interface.

We have done the following settings in the use case to receive captured  data .

static Void setCaptureParams(chains_3DSVS_issCapture_DisplayAppObj *pObj)

{
    UInt32 idx;
    IssCaptureLink_CreateParams *pCaptPrm;
    IssCaptureLink_Csi2Params   *pCsi2Prm;
    IssCaptureLink_OutParams    *pOutPrm;
    System_VideoDataFormat      inOutDataFormat;

    pCaptPrm = &pObj->ucObj.IssCapturePrm;
    memset((void*) pCaptPrm, 0, sizeof(IssCaptureLink_CreateParams));

    pCaptPrm->videoIfMode            = SYSTEM_VIFM_SCH_CSI2;
    pCaptPrm->videoIfWidth           = SYSTEM_VIFW_4LANES;
    pCaptPrm->bufCaptMode            = SYSTEM_CAPT_BCM_LAST_FRM_REPEAT;

    pCsi2Prm = &pCaptPrm->csi2Params[0];

        pCsi2Prm->isCmplxIoCfgValid = TRUE ;//FALSE
        pCsi2Prm->csi2PhyClk        = CAPTURE_MAX9286_CSI2_CLOCK_PHY_0;

        pCsi2Prm->cmplxIoCfg.clockLane.pol      = FALSE;
        pCsi2Prm->cmplxIoCfg.clockLane.position = 1U;
        pCsi2Prm->cmplxIoCfg.data1Lane.pol      = FALSE;
        pCsi2Prm->cmplxIoCfg.data1Lane.position = 2U;
        pCsi2Prm->cmplxIoCfg.data2Lane.pol      = FALSE;
        pCsi2Prm->cmplxIoCfg.data2Lane.position = 3U;
        pCsi2Prm->cmplxIoCfg.data3Lane.pol      = FALSE;
        pCsi2Prm->cmplxIoCfg.data3Lane.position = 4U;
        pCsi2Prm->cmplxIoCfg.data4Lane.pol      = FALSE;
        pCsi2Prm->cmplxIoCfg.data4Lane.position = 5U;
        pCaptPrm->numCh = pObj->numCsi2Ch;
        inOutDataFormat = SYSTEM_DF_YUV422I_UYVY;
        for (idx = 0U; idx < pCaptPrm->numCh; idx++)
    {
       
        pOutPrm = &pCaptPrm->outParams[idx];
        pOutPrm->phyInstance    = 0U;
        pOutPrm->width          = pObj->captureOutWidth;
        pOutPrm->height         = pObj->captureOutHeight;
        pOutPrm->dataFormat     = inOutDataFormat;
        pOutPrm->inCsi2DataFormat       = SYSTEM_CSI2_YUV422_8B;
        pOutPrm->inCsi2VirtualChanNum   = idx;
        pOutPrm->maxWidth       = pObj->captureOutWidth;
        pOutPrm->maxHeight      = pObj->captureOutHeight;
        pOutPrm->numOutBuf      = CAPTURE_NUM_BUF_PER_CH;
        pOutPrm->outDataFormat  = inOutDataFormat;

    }
        pCaptPrm->allocBufferForRawDump  = FALSE;

Can anyone please verify these settings?

Thanks
Deepika
  • Hi All,

    Any feedback or suggestiones ?

    Thanks

    Deepika

  • Deepika,

    The changes looks fine to me. 

    Please follow the sequence of configuring capture link and sensor. 

    We need to create link first, then configure/start sensor and then start the link. 

    Also please make sure to enable continuous clock output from deserializer.

    Regards,

    Brijesh. 

  • Hi Brijesh,

    We have a little change in sequence. We are setting the SERDES using i2cset commands for which we have created a script. We run this script first to enable the SERDES link and the sensor. After this we run the use case for CAPTURE.

    Please let me know if this is the correct sequence.

    Thanks

    Deepika

  • Hi Deepika,

    I would suggest to follow sequence which is given in vision sdk. This is what is recommended to be used. 

    Regards,

    Brijesh

  • Hi Brijesh,

    I am facing issues in adding  Bsp_deviceI2c APIs from the usecase which is added under HLOS.

    The I2C APIs are not available there. I am facing compilation errors when I include the header file 

    #include <ti/drv/vps/include/platforms/bsp_platform.h>
    I have disabled I2C5 from kernel device tree.
    Can you please suggest how to add I2C APIs in HLOS usecases.
    Thanks
    Deepika
  • Hi Brijesh,

    I was able to configure the SERDES from the HLOS use case by using the System_link_control.I created my own link and added the I2C calls.

    The COMPLEX_IO_CFG (Phy 0) --0x489b0304  is showing as 0x6A054321 . CSI2 is out of reset. 

    Also the ISS Capture Link statistics are as below:

    2855 s:
    [HOST] [IPU1-0] 134.832916 s: [ ISSCAPTURE ] Link Statistics,
    [HOST] [IPU1-0] 134.833007 s: ******************************
    [HOST] [IPU1-0] 134.833068 s:
    [HOST] [IPU1-0] 134.833099 s: Elapsed time = 4746 msec
    [HOST] [IPU1-0] 134.833160 s:
    [HOST] [IPU1-0] 134.833221 s:
    [HOST] [IPU1-0] 134.833251 s: Input Statistics,
    [HOST] [IPU1-0] 134.833312 s:
    [HOST] [IPU1-0] 134.833343 s: CH | In Recv | In Drop | In User Drop | In Process
    [HOST] [IPU1-0] 134.833435 s: | FPS | FPS | FPS | FPS
    [HOST] [IPU1-0] 134.833526 s: --------------------------------------------------
    [HOST] [IPU1-0] 134.833587 s:
    [HOST] [IPU1-0] 134.833648 s: Output Statistics,
    [HOST] [IPU1-0] 134.833709 s:
    [HOST] [IPU1-0] 134.833770 s: CH | Out | Out | Out Drop | Out User Drop
    [HOST] [IPU1-0] 134.833862 s: | ID | FPS | FPS | FPS
    [HOST] [IPU1-0] 134.833923 s: ---------------------------------------------
    [HOST] [IPU1-0] 134.834411 s:
    [HOST] [IPU1-0] 134.834472 s: [ DISPLAY ] Link Statistics,
    [HOST] [IPU1-0] 134.834563 s: ******************************

    There is no Receive FPS shown in the link.

    Also I am also not able to save the frame. It is getting stuck at this loop:

    do {
    status=System_linkControl(pObj->ucObj.IssCaptureLinkID,
    ISSCAPTURE_LINK_CMD_GET_SAVE_FRAME_STATUS,
    &saveFrameStatus,
    sizeof(IssCaptureLink_GetSaveFrameStatus),
    TRUE);
    /* 30 FPS is the assumption */
    Task_sleep(35U);


    }while (saveFrameStatus.isSaveFrameComplete == FALSE);

    Can you please give your suggestion.

    Thanks

    Deepika

  • Deepika,

    ok, that's good that it is out of reset. 

    Now if it is not capturing, it is most likely due to incorrect virtual channel and/or data type. can you check in the SERDES and confirm the settings? 

    Rgds,

    Brijesh

  • Hi Brijesh,

    Thanks for your quick reply.

    Right now only 1 camera is connected.So it would give output on 1 channel only according to my understanding.

    Currently SERDES is also configured for 1 camera only.

    The data type set  in the deserializer is YUV 422 8-bit. We have set  SYSTEM_CSI2_YUV422_8B in the use case.

    How to check in the Isscapture link that we are actually receiving frames?

    Regards,

    Deepika

  • Deepika,

    Can you check the value in the register CAL_CSI2_STATUS0 (at the offset 0x350 for CSI0)?

    Also i am assuming that number of lanes and lane position are setup correctly.

    Rgds,

    Brijesh

  • Hi Brijesh,

    Output of the COMPLEX_IO_CFG 

    root@dra7xx-evm:/opt/vision_sdk# devmem2 0x489b0304
    /dev/mem opened.
    Memory mapped at address 0xb6fcf000.
    Read at address 0x489B0304 (0xb6fcf304): 0x6A054321

    Output of CAL_CSI2_STATUS0


    root@dra7xx-evm:/opt/vision_sdk# devmem2 0x489b0350
    /dev/mem opened.
    Memory mapped at address 0xb6f6a000.
    Read at address 0x489B0350 (0xb6f6a350): 0x00000000

    From the output it does not looks as if frames are  being received. 

    Can you please tell me the issue?

    Regards,

    Deepika

  • Can you also share value at offset 0x330? 

    Rgds,

    Brijesh

  • Hi Brijesh,


    root@dra7xx-evm:/opt/vision_sdk# devmem2 0x489b0330
    /dev/mem opened.
    Memory mapped at address 0xb6fe1000.
    Read at adress 0x489B0330 (0xb6fe1330): 0x02D0011E

    Regards,

    Deepika

  • Deepika,

    this configuration is correct, virtual channel is set to 0 and data type to yuv422. Are you sure the the deserializer is send out data in channel 0 and data type as yuv422? 

    Rgds,

    Brijesh

  • Hi Brijesh,

    Data type is set to YUV 422 in the deserializer, that is sure, 

    With the current deser settings , the deser vendor are able to stream data packets

    " Are you sure the the deserializer is send out data in channel 0"

    This I am not sure, that it sending data to which channel.

    How to verify this?

    Thanks

    Deepika

  • Deepika,

    Are you using TI's Deserializer? Which deserializer are you using? 

    I would suggest to verify virtual channel id and data type in the deserializer setting. If they are not matching, then CAL will not capture frames. 

    Can you also dump all registers of CAL and share them?

    Regards,

    Brijesh

  • Hi Brijesh,

    I am using Maxim 9286 deserializer.

    The settings are such that :

    DATA LANE 3 is mapped to CSI O/P lane 3

    DATA LANE 2 is mapped to CSI O/P lane 2

    DATA LANE 1 is mapped to CSI O/P lane 1

    DATA LANE 0 is mapped to CSI O/P lane 0

    Also there is a register for Virtual Channel Settings in the deser.  I have set this register to  0x0B

    Also please find the attached register dump for CSI CAL.


    CAL_register_dump.txt
    root@dra7xx-evm:~# ./devmem2.sh 0000 036c
    Read at address  0x489B0000 (0xb6f4d000): 0x40000300
    Read at address  0x489B0004 (0xb6f2c004): 0xA3C90469
    Read at address  0x489B0008 (0xb6f7d008): 0x00000000
    Read at address  0x489B000C (0xb6f9a00c): 0x00000000
    Read at address  0x489B0010 (0xb6f0f010): 0x00000008
    Read at address  0x489B0014 (0xb6f67014): 0x00000000
    Read at address  0x489B0018 (0xb6f2f018): 0x00000000
    Read at address  0x489B001C (0xb6f7801c): 0x00000000
    Read at address  0x489B0020 (0xb6f50020): 0x00000000
    Read at address  0x489B0024 (0xb6fe9024): 0x00000000
    Read at address  0x489B0028 (0xb6f7e028): 0x00000000
    Read at address  0x489B002C (0xb6fda02c): 0x00000000
    Read at address  0x489B0030 (0xb6f65030): 0x00000000
    Read at address  0x489B0034 (0xb6fb9034): 0x00000000
    Read at address  0x489B0038 (0xb6f8e038): 0x00000000
    Read at address  0x489B003C (0xb6fa003c): 0x00000000
    Read at address  0x489B0040 (0xb6f80040): 0x00000000
    Read at address  0x489B0044 (0xb6f6b044): 0x00000000
    Read at address  0x489B0048 (0xb6f9e048): 0x0000001E
    Read at address  0x489B004C (0xb6fc004c): 0x0000001E
    Read at address  0x489B0050 (0xb6fe7050): 0x00000000
    Read at address  0x489B0054 (0xb6f63054): 0x00000000
    Read at address  0x489B0058 (0xb6f52058): 0x00000000
    Read at address  0x489B005C (0xb6f9e05c): 0x00000000
    Read at address  0x489B0060 (0xb6f72060): 0x00000000
    Read at address  0x489B0064 (0xb6f31064): 0x00000000
    Read at address  0x489B0068 (0xb6f6c068): 0x00000000
    Read at address  0x489B006C (0xb6f0006c): 0x00000000
    Read at address  0x489B0070 (0xb6fb9070): 0x00000000
    Read at address  0x489B0074 (0xb6f06074): 0x00000000
    Read at address  0x489B0078 (0xb6fdc078): 0x00000000
    Read at address  0x489B007C (0xb6f5407c): 0x00000000
    Read at address  0x489B0080 (0xb6fbf080): 0x00000000
    Read at address  0x489B0084 (0xb6f80084): 0x00000000
    Read at address  0x489B0088 (0xb6f46088): 0x00000000
    Read at address  0x489B008C (0xb6feb08c): 0x00000000
    Read at address  0x489B0090 (0xb6f1a090): 0x00000000
    Read at address  0x489B0094 (0xb6ff1094): 0x00000000
    Read at address  0x489B0098 (0xb6f2a098): 0x00000000
    Read at address  0x489B009C (0xb6fae09c): 0x00000000
    Read at address  0x489B00A0 (0xb6fec0a0): 0x00000000
    Read at address  0x489B00A4 (0xb6f080a4): 0x00000000
    Read at address  0x489B00A8 (0xb6fa90a8): 0x00000000
    Read at address  0x489B00AC (0xb6f100ac): 0x00000000
    Read at address  0x489B00B0 (0xb6fae0b0): 0x00000000
    Read at address  0x489B00B4 (0xb6f150b4): 0x00000000
    Read at address  0x489B00B8 (0xb6fab0b8): 0x00000000
    Read at address  0x489B00BC (0xb6fd80bc): 0x00000000
    Read at address  0x489B00C0 (0xb6f860c0): 0x000D0015
    Read at address  0x489B00C4 (0xb6f050c4): 0x00150015
    Read at address  0x489B00C8 (0xb6f4a0c8): 0x001D0015
    Read at address  0x489B00CC (0xb6f6c0cc): 0x00250015
    Read at address  0x489B00D0 (0xb6f9e0d0): 0x00000000
    Read at address  0x489B00D4 (0xb6fdd0d4): 0x00000000
    Read at address  0x489B00D8 (0xb6f820d8): 0x00000000
    Read at address  0x489B00DC (0xb6f680dc): 0x00000000
    Read at address  0x489B00E0 (0xb6f2c0e0): 0x00000000
    Read at address  0x489B00E4 (0xb6f5d0e4): 0x00000000
    Read at address  0x489B00E8 (0xb6ff50e8): 0x00000000
    Read at address  0x489B00EC (0xb6f4a0ec): 0x00000000
    Read at address  0x489B00F0 (0xb6fd20f0): 0x00000000
    Read at address  0x489B00F4 (0xb6f840f4): 0x00000000
    Read at address  0x489B00F8 (0xb6f300f8): 0x00000000
    Read at address  0x489B00FC (0xb6f6a0fc): 0x00000000
    Read at address  0x489B0100 (0xb6f0c100): 0x0A40C07E
    Read at address  0x489B0104 (0xb6f5b104): 0x00000000
    Read at address  0x489B0108 (0xb6fed108): 0x00000000
    Read at address  0x489B010C (0xb6f4810c): 0x00000000
    Read at address  0x489B0110 (0xb6f16110): 0x00000000
    Read at address  0x489B0114 (0xb6fb1114): 0x00000000
    Read at address  0x489B0118 (0xb6fc4118): 0x00000000
    Read at address  0x489B011C (0xb6f3911c): 0x00000000
    Read at address  0x489B0120 (0xb6f76120): 0x00000000
    Read at address  0x489B0124 (0xb6fd0124): 0x00010000
    Read at address  0x489B0128 (0xb6fa9128): 0x00000000
    Read at address  0x489B012C (0xb6efd12c): 0x00000000
    Read at address  0x489B0130 (0xb6f61130): 0x08080000
    Read at address  0x489B0134 (0xb6fe8134): 0x00000000
    Read at address  0x489B0138 (0xb6f2a138): 0x00000000
    Read at address  0x489B013C (0xb6fb813c): 0x00000000
    Read at address  0x489B0140 (0xb6f95140): 0x00000000
    Read at address  0x489B0144 (0xb6f3f144): 0x00000000
    Read at address  0x489B0148 (0xb6fe8148): 0x00000000
    Read at address  0x489B014C (0xb6f8114c): 0x00000000
    Read at address  0x489B0150 (0xb6fa8150): 0x00000000
    Read at address  0x489B0154 (0xb6f26154): 0x00000000
    Read at address  0x489B0158 (0xb6f0b158): 0x00000000
    Read at address  0x489B015C (0xb6f1815c): 0x00000000
    Read at address  0x489B0160 (0xb6faf160): 0x00000000
    Read at address  0x489B0164 (0xb6fea164): 0x00000000
    Read at address  0x489B0168 (0xb6fcd168): 0x00000000
    Read at address  0x489B016C (0xb6f4916c): 0x00000000
    Read at address  0x489B0170 (0xb6f28170): 0x00000000
    Read at address  0x489B0174 (0xb6f80174): 0x00000000
    Read at address  0x489B0178 (0xb6ff8178): 0x00000000
    Read at address  0x489B017C (0xb6f5417c): 0x00000000
    Read at address  0x489B0180 (0xb6f9d180): 0x00000000
    Read at address  0x489B0184 (0xb6fd3184): 0x00000000
    Read at address  0x489B0188 (0xb6faf188): 0x00000000
    Read at address  0x489B018C (0xb6f0418c): 0x00000000
    Read at address  0x489B0190 (0xb6fec190): 0x00000000
    Read at address  0x489B0194 (0xb6f6f194): 0x00000000
    Read at address  0x489B0198 (0xb6f7b198): 0x00000000
    Read at address  0x489B019C (0xb6f4f19c): 0x00000000
    Read at address  0x489B01A0 (0xb6f6a1a0): 0x00000000
    Read at address  0x489B01A4 (0xb6fae1a4): 0x00000000
    Read at address  0x489B01A8 (0xb6f891a8): 0x00000000
    Read at address  0x489B01AC (0xb6fa91ac): 0x00000000
    Read at address  0x489B01B0 (0xb6f391b0): 0x00000000
    Read at address  0x489B01B4 (0xb6f3f1b4): 0x00000000
    Read at address  0x489B01B8 (0xb6f631b8): 0x00000000
    Read at address  0x489B01BC (0xb6f611bc): 0x00000000
    Read at address  0x489B01C0 (0xb6f901c0): 0x00000000
    Read at address  0x489B01C4 (0xb6f691c4): 0x00000000
    Read at address  0x489B01C8 (0xb6f481c8): 0x00000000
    Read at address  0x489B01CC (0xb6f3e1cc): 0x00000000
    Read at address  0x489B01D0 (0xb6f601d0): 0x00000000
    Read at address  0x489B01D4 (0xb6fd01d4): 0x00000000
    Read at address  0x489B01D8 (0xb6fdf1d8): 0x00000000
    Read at address  0x489B01DC (0xb6f601dc): 0x00000000
    Read at address  0x489B01E0 (0xb6fe61e0): 0x00000000
    Read at address  0x489B01E4 (0xb6efc1e4): 0x00000000
    Read at address  0x489B01E8 (0xb6fd21e8): 0x00000000
    Read at address  0x489B01EC (0xb6fc41ec): 0x00000000
    Read at address  0x489B01F0 (0xb6f871f0): 0x00000000
    Read at address  0x489B01F4 (0xb6fe41f4): 0x00000000
    Read at address  0x489B01F8 (0xb6fa31f8): 0x00000000
    Read at address  0x489B01FC (0xb6f4c1fc): 0x00000000
    Read at address  0x489B0200 (0xb6fae200): 0x00004000
    Read at address  0x489B0204 (0xb6fed204): 0x00000000
    Read at address  0x489B0208 (0xb6fae208): 0x00000000
    Read at address  0x489B020C (0xb6f0520c): 0x00000000
    Read at address  0x489B0210 (0xb6fac210): 0x0B404304
    Read at address  0x489B0214 (0xb6efd214): 0x84203000
    Read at address  0x489B0218 (0xb6f63218): 0x00000A00
    Read at address  0x489B021C (0xb6f5d21c): 0x05000000
    Read at address  0x489B0220 (0xb6fa2220): 0x0B404504
    Read at address  0x489B0224 (0xb6fc0224): 0x84ACD000
    Read at address  0x489B0228 (0xb6f2b228): 0x00000A00
    Read at address  0x489B022C (0xb6fc822c): 0x05000000
    Read at address  0x489B0230 (0xb6fbd230): 0x0B404704
    Read at address  0x489B0234 (0xb6fe4234): 0x85397000
    Read at address  0x489B0238 (0xb6f2b238): 0x00000A00
    Read at address  0x489B023C (0xb6f0723c): 0x05000000
    Read at address  0x489B0240 (0xb6ff0240): 0x0B404904
    Read at address  0x489B0244 (0xb6f84244): 0x85C61000
    Read at address  0x489B0248 (0xb6f0d248): 0x00000A00
    Read at address  0x489B024C (0xb6f6d24c): 0x05000000
    Read at address  0x489B0250 (0xb6fcd250): 0x00004000
    Read at address  0x489B0254 (0xb6f38254): 0x00000000
    Read at address  0x489B0258 (0xb6f64258): 0x00000000
    Read at address  0x489B025C (0xb6f4e25c): 0x00000000
    Read at address  0x489B0260 (0xb6fec260): 0x00004000
    Read at address  0x489B0264 (0xb6f2b264): 0x00000000
    Read at address  0x489B0268 (0xb6f12268): 0x00000000
    Read at address  0x489B026C (0xb6f6526c): 0x00000000
    Read at address  0x489B0270 (0xb6fef270): 0x00004000
    Read at address  0x489B0274 (0xb6f52274): 0x00000000
    Read at address  0x489B0278 (0xb6f7a278): 0x00000000
    Read at address  0x489B027C (0xb6fd327c): 0x00000000
    Read at address  0x489B0280 (0xb6f12280): 0x00000000
    Read at address  0x489B0284 (0xb6fc5284): 0x00000000
    Read at address  0x489B0288 (0xb6fa0288): 0x00000000
    Read at address  0x489B028C (0xb6f1b28c): 0x00000000
    Read at address  0x489B0290 (0xb6f84290): 0x00000000
    Read at address  0x489B0294 (0xb6fce294): 0x00000000
    Read at address  0x489B0298 (0xb6f7c298): 0x00000000
    Read at address  0x489B029C (0xb6f7729c): 0x00000000
    Read at address  0x489B02A0 (0xb6f452a0): 0x00000000
    Read at address  0x489B02A4 (0xb6f382a4): 0x00000000
    Read at address  0x489B02A8 (0xb6f722a8): 0x00000000
    Read at address  0x489B02AC (0xb6fbd2ac): 0x00000000
    Read at address  0x489B02B0 (0xb6fde2b0): 0x00000000
    Read at address  0x489B02B4 (0xb6f852b4): 0x00000000
    Read at address  0x489B02B8 (0xb6eff2b8): 0x00000000
    Read at address  0x489B02BC (0xb6f7b2bc): 0x00000000
    Read at address  0x489B02C0 (0xb6ff42c0): 0x00000000
    Read at address  0x489B02C4 (0xb6f632c4): 0x00000000
    Read at address  0x489B02C8 (0xb6f242c8): 0x00000000
    Read at address  0x489B02CC (0xb6fd92cc): 0x00000000
    Read at address  0x489B02D0 (0xb6fd72d0): 0x00000000
    Read at address  0x489B02D4 (0xb6fc42d4): 0x00000000
    Read at address  0x489B02D8 (0xb6fcc2d8): 0x00000000
    Read at address  0x489B02DC (0xb6fe02dc): 0x00000000
    Read at address  0x489B02E0 (0xb6fba2e0): 0x00000000
    Read at address  0x489B02E4 (0xb6fe52e4): 0x00000000
    Read at address  0x489B02E8 (0xb6f0d2e8): 0x00000000
    Read at address  0x489B02EC (0xb6f062ec): 0x00000000
    Read at address  0x489B02F0 (0xb6f7e2f0): 0x00000000
    Read at address  0x489B02F4 (0xb6f032f4): 0x00000000
    Read at address  0x489B02F8 (0xb6feb2f8): 0x00000000
    Read at address  0x489B02FC (0xb6f252fc): 0x00000000
    Read at address  0x489B0300 (0xb6fd6300): 0x00000009
    Read at address  0x489B0304 (0xb6f09304): 0x6A054321
    Read at address  0x489B0308 (0xb6fba308): 0x00000000
    Read at address  0x489B030C (0xb6f8f30c): 0x00000000
    Read at address  0x489B0310 (0xb6f05310): 0x00000000
    Read at address  0x489B0314 (0xb6fe0314): 0x00004197
    Read at address  0x489B0318 (0xb6f77318): 0x00000000
    Read at address  0x489B031C (0xb6f7231c): 0x00000000
    Read at address  0x489B0320 (0xb6fce320): 0x00000000
    Read at address  0x489B0324 (0xb6fa8324): 0x00000000
    Read at address  0x489B0328 (0xb6f9a328): 0x00000000
    Read at address  0x489B032C (0xb6f2032c): 0x00000000
    Read at address  0x489B0330 (0xb6f39330): 0x02D0011E
    Read at address  0x489B0334 (0xb6f5b334): 0x02D0025E
    Read at address  0x489B0338 (0xb6fcd338): 0x02D0039E
    Read at address  0x489B033C (0xb6f6733c): 0x02D004DE
    Read at address  0x489B0340 (0xb6f0a340): 0x00000000
    Read at address  0x489B0344 (0xb6f10344): 0x00000000
    Read at address  0x489B0348 (0xb6f8b348): 0x00000000
    Read at address  0x489B034C (0xb6fb534c): 0x00000000
    Read at address  0x489B0350 (0xb6fc8350): 0x00000000
    Read at address  0x489B0354 (0xb6f17354): 0x00000000
    Read at address  0x489B0358 (0xb6f52358): 0x00000000
    Read at address  0x489B035C (0xb6f5935c): 0x00000000
    Read at address  0x489B0360 (0xb6f7d360): 0x00000000
    Read at address  0x489B0364 (0xb6f90364): 0x00000000
    Read at address  0x489B0368 (0xb6f4f368): 0x00000000
    Read at address  0x489B036C (0xb6fa136c): 0x00000000
    
    

    Regards

    Deepika

  • Hi Deepika,

    Can you try below few changes?

    1, disable pixel processing context. bit0 in (0x489B00C0 to 0x489B00CC) should be set to 0.

    2, can you check DDR clock and provide correct clock to the driver?

    Regards,

    Brijesh

  • Hi Brijesh,

    Thanks for reply.

    "disable pixel processing context. bit0 in (0x489B00C0 to 0x489B00CC) should be set to 0."

    I will try this and let you know

    "can you check DDR clock and provide correct clock to the driver?"

    Our DDR is running at 666MHz. So Should I set 600MHz as the CSI Clock?

    One more doubt

    How to verify that data is coming (if its actually coming) from any virtual channel.

    Regards,

    Deepika

  • Hi Deepika,

    This is not DDR (memory) clock, what i was asking about was lane speed. At what lane speed maxim deserializer is outputting? 

    I see you have enabled 4 channels, are you enabling all 4 channels in the serdes?

    Regards,

    Brijesh

  • Hi Brijesh,

    The deser can support uto 1.5Gbps per lane. I have kept 800Mbps currently in the use case. Right now I have enabled 1 channel in the Deser, but all the 4 channels in the CAL.

    Should I enable just 1 data lane in CAL and check?

    Also should i disable pixel processing after CAL configurations?

    Thanks

    Deepika

  • Hi Brijesh,

    With single lane  also CSI2 is going out of reset. But no frames are coming. I checked the CAL_CSI2_STATUS0. It is zero.

     0x489b00c0 is d0014

     0x489b00c4 is 150014

     0x489b00c8 is 1d0014
     0x489b00cC is 250014

    Stll no frames received at CAL


    [HOST] [IPU1-0] 78.697797 s: [ ISSCAPTURE ] Link Statistics,
    [HOST] [IPU1-0] 78.697858 s: ******************************
    [HOST] [IPU1-0] 78.697919 s:
    [HOST] [IPU1-0] 78.697980 s: Elapsed time = 23237 msec
    [HOST] [IPU1-0] 78.698072 s:
    [HOST] [IPU1-0] 78.698102 s:
    [HOST] [IPU1-0] 78.698133 s: Input Statistics,
    [HOST] [IPU1-0] 78.698194 s:
    [HOST] [IPU1-0] 78.698255 s: CH | In Recv | In Drop | In User Drop | In Process
    [HOST] [IPU1-0] 78.698316 s: | FPS | FPS | FPS | FPS
    [HOST] [IPU1-0] 78.698407 s: --------------------------------------------------
    [HOST] [IPU1-0] 78.698499 s:
    [HOST] [IPU1-0] 78.698529 s: Output Statistics,
    [HOST] [IPU1-0] 78.698590 s:
    [HOST] [IPU1-0] 78.698621 s: CH | Out | Out | Out Drop | Out User Drop
    [HOST] [IPU1-0] 78.698712 s: | ID | FPS | FPS | FPS
    [HOST] [IPU1-0] 78.698773 s: ---------------------------------------------

    Thanks

    Deepika

  • Deepika,

    No, don't need to change to single lane  mode. Keep it 4 lane mode. 

    Since you are using 800Mbps in your deserializer, please change IssCaptureLink_Csi2Params.csi2PhyClk to 400 in the capture and try it.

    Regards

    Brijesh

  • Hi Brijesh,

    Reverted back to 4 lane. Tried with 400Mbps in the csi2Phyclk . Same result.

    What could be the reason that CSI2 Phy is out of reset, but still no CAL capture successful.

    Any thing else we need to check in the Deser side?

    Thanks

    Deepika

  • Deepika,

    Can you check if continuous clock output is enabled in the deserializer? 

    Rgds,

    Brijesh

  • Hi Brijesh,

    We discussed with the SERDES vendor, they said that as the sensor is streaming continuously, the clock from the Deser wouldd be continuous.

    Regards,

    Deepika

  • Hi Brijesh,

    We were able to capture frames from the SERDES, We changed the CAL DDR clock to 266MHz.

    There was one calculation between the pixel clock of the sensor and the CSI2 lane speed from the deserialzer.With this calculation we were able to to get capture frames.There is no frame drop on the capture link.

    As we are using HLOS use case,I have added a null link in order to save frame.Our custom board display is still not up so we need to save frame in order to check the camera data.

    The image saved from the NULL Link is not proper.



    [HOST] [IPU1-0] 37.372354 s: [ ISSCAPTURE ] Link Statistics,
    [HOST] [IPU1-0] 37.372445 s: ******************************
    [HOST] [IPU1-0] 37.372506 s:
    [HOST] [IPU1-0] 37.372537 s: Elapsed time = 7221 msec
    [HOST] [IPU1-0] 37.372598 s:
    [HOST] [IPU1-0] 37.372659 s: Get Full Buf Cb = 12.4 fps
    [HOST] [IPU1-0] 37.372720 s: Put Empty Buf Cb = 12.4 fps
    [HOST] [IPU1-0] 37.372811 s: Driver/Notify Cb = 11.90 fps
    [HOST] [IPU1-0] 37.372872 s:
    [HOST] [IPU1-0] 37.372903 s: Input Statistics,
    [HOST] [IPU1-0] 37.372964 s:
    [HOST] [IPU1-0] 37.373025 s: CH | In Recv | In Drop | In User Drop | In Process
    [HOST] [IPU1-0] 37.373116 s: | FPS | FPS | FPS | FPS
    [HOST] [IPU1-0] 37.373208 s: --------------------------------------------------
    [HOST] [IPU1-0] 37.373269 s: 0 | 12. 4 0. 0 0. 0 12. 4
    [HOST] [IPU1-0] 37.373421 s:
    [HOST] [IPU1-0] 37.373452 s: Output Statistics,
    [HOST] [IPU1-0] 37.373513 s:
    [HOST] [IPU1-0] 37.373543 s: CH | Out | Out | Out Drop | Out User Drop
    [HOST] [IPU1-0] 37.373635 s: | ID | FPS | FPS | FPS
    [HOST] [IPU1-0] 37.373696 s: ---------------------------------------------
    [HOST] [IPU1-0] 37.373787 s: 0 | 0 12. 4 0. 0 0. 0
    [HOST] [IPU1-0] 37.374214 s:

    Thanks

    Deepika

  • Hi Brijesh,

    I am not able to attach the captured image in this post,neither I am able to share you as an e2e message

    The camera is sending YUV422 UYVY with 1280*960 resolution.

    Thanks

    Deepika

  • Front_Null_Dump_1.txt

    Attached the file as a .txt. Please change it to .yuv when you are viewing it.

    Thanks,

    Deepika

  • Hi Deepika,

    Few questions,

    1, it seems only 640 pixels are captured in each line, is this correct? If not, there is still configuration issue. 

    2, is the input format YUV422 8bit? Could you please confirm the same? 

    Could you again capture CAL registers and share them?

    Regards,

    Brijesh 

  • Hi Brijesh,

    1) With which tool have u tried viewing it? According to camera vendor the resolution is 1280 * 960.

    2) Format is 8-bit YCbCr data (uyvy) as mentioned in a 2 page datasheet of camera vendor

    I am sending the CAL register dump in the e2e message as I am nt able to upload here.

    Thanks

    Deepika

  • Hi Brijesh,

    According to Deser datasheet:

    The deserializer receives serialized data from up to four
    input links. The maximum active frame width accepted
    is 1280 pixels.The input frames are synchronized and combined in to a single (4 * W * H)

    Right now as we are capturing using a single camera, can I change the input resolution at the capture side to 640*960?

    Thanks,

    Deepika

  • Deepika,

    #1, I just used hex viewer, i see data as 0x0 after 1280 bytes, so looks like only 640 pixels are captured.

    #2, ok, thanks. This is because data is captured, but does not look correct.

    #3, No, this seems to some CAL configuration issue.  Lets check CAL registers. it should be easy to figure out why only 640 pixels are captured. But i want to first check why data is not captured correctly. 

    Regards,

    Brijesh

  • Hi Brijesh,

    Should I remove the CAL_PIX_PROC_i ( 0th Bit of Pixel processing is written 0 to disable it) which we have added in the code?

    Thanks,

    Deepika

  • Deepika,

    Yep, can you disable it? 

    Regards,

    Brijesh

  • Deepika,

    One more change, XSIZE field in CAL_WR_DMA_XSIZE register is set to 160, it should be set to 320 for 1280 YUV422 format. Can you try changing it?

    Rgds,

    Brijesh

  • Hi Brijesh,

    CAL_WR_DMA_XSIZE_k , what should be the value of k ? Should I set for all 1-10 ?

    Thanks

    Deepika

  • Hi Brijesh,

    I was checking the CAL register dump only the registers 0x489B021C, 0x489B022C, 0x489B023C, 0x489B024C are set with XSIZE =160 (0x5000000) i am only changing these registers with the value  0xA000000(XSIZE=320)

    I will share the yuv image and the CAL register dump

    Thanks,

    Deepika

  • Hi Brijesh,

    Attaching the register dump and the image as e2e message. Though I have cleared my cache I am not able to upload any flle.

    Thanks,

    Deepika

  • Hi Deepika,

    I dont see any image or attachment. 

    Regards,

    Brijesh

  • register_dump_CAL_WR_DMA_XSIZE_change.txt
    root@dra7xx-evm:~# ./devmem2.sh 0000 036c
    Read at address  0x489B0000 (0xb6ff5000): 0x40000300
    Read at address  0x489B0004 (0xb6f31004): 0xA3C90469
    Read at address  0x489B0008 (0xb6f43008): 0x00000000
    Read at address  0x489B000C (0xb6f0000c): 0x00000000
    Read at address  0x489B0010 (0xb6ff5010): 0x00000008
    Read at address  0x489B0014 (0xb6f34014): 0x00000000
    Read at address  0x489B0018 (0xb6f97018): 0x00000000
    Read at address  0x489B001C (0xb6ff401c): 0x00000000
    Read at address  0x489B0020 (0xb6f44020): 0x00000000
    Read at address  0x489B0024 (0xb6f1b024): 0x00000000
    Read at address  0x489B0028 (0xb6fb0028): 0x00000000
    Read at address  0x489B002C (0xb6f7602c): 0x00000000
    Read at address  0x489B0030 (0xb6faa030): 0x00000002
    Read at address  0x489B0034 (0xb6f40034): 0x00000000
    Read at address  0x489B0038 (0xb6f52038): 0x00000000
    Read at address  0x489B003C (0xb6efd03c): 0x00000000
    Read at address  0x489B0040 (0xb6f10040): 0x00000000
    Read at address  0x489B0044 (0xb6f03044): 0x00000000
    Read at address  0x489B0048 (0xb6f24048): 0x00000000
    Read at address  0x489B004C (0xb6f4804c): 0x00000000
    Read at address  0x489B0050 (0xb6faa050): 0x00000000
    Read at address  0x489B0054 (0xb6fef054): 0x00000000
    Read at address  0x489B0058 (0xb6fb8058): 0x00000000
    Read at address  0x489B005C (0xb6f4205c): 0x00000000
    Read at address  0x489B0060 (0xb6f33060): 0x00000000
    Read at address  0x489B0064 (0xb6fdd064): 0x00000000
    Read at address  0x489B0068 (0xb6f82068): 0x00000000
    Read at address  0x489B006C (0xb6fbc06c): 0x00000000
    Read at address  0x489B0070 (0xb6fbc070): 0x00000000
    Read at address  0x489B0074 (0xb6fc8074): 0x00000000
    Read at address  0x489B0078 (0xb6f63078): 0x00000000
    Read at address  0x489B007C (0xb6efe07c): 0x00000000
    Read at address  0x489B0080 (0xb6fcb080): 0x00000000
    Read at address  0x489B0084 (0xb6f98084): 0x00000000
    Read at address  0x489B0088 (0xb6fe1088): 0x00000000
    Read at address  0x489B008C (0xb6f3e08c): 0x00000000
    Read at address  0x489B0090 (0xb6f20090): 0x00000000
    Read at address  0x489B0094 (0xb6fd6094): 0x00000000
    Read at address  0x489B0098 (0xb6fb0098): 0x00000000
    Read at address  0x489B009C (0xb6fca09c): 0x00000000
    Read at address  0x489B00A0 (0xb6f2b0a0): 0x00000000
    Read at address  0x489B00A4 (0xb6f650a4): 0x00000000
    Read at address  0x489B00A8 (0xb6f810a8): 0x00000000
    Read at address  0x489B00AC (0xb6f300ac): 0x00000000
    Read at address  0x489B00B0 (0xb6f750b0): 0x00000000
    Read at address  0x489B00B4 (0xb6fcf0b4): 0x00000000
    Read at address  0x489B00B8 (0xb6fce0b8): 0x00000000
    Read at address  0x489B00BC (0xb6f3d0bc): 0x00000000
    Read at address  0x489B00C0 (0xb6f4a0c0): 0x000D0015
    Read at address  0x489B00C4 (0xb6f6a0c4): 0x00150015
    Read at address  0x489B00C8 (0xb6f4f0c8): 0x001D0015
    Read at address  0x489B00CC (0xb6fd00cc): 0x00250015
    Read at address  0x489B00D0 (0xb6fdc0d0): 0x00000000
    Read at address  0x489B00D4 (0xb6fca0d4): 0x00000000
    Read at address  0x489B00D8 (0xb6fc70d8): 0x00000000
    Read at address  0x489B00DC (0xb6f510dc): 0x00000000
    Read at address  0x489B00E0 (0xb6f570e0): 0x00000000
    Read at address  0x489B00E4 (0xb6fb60e4): 0x00000000
    Read at address  0x489B00E8 (0xb6fd60e8): 0x00000000
    Read at address  0x489B00EC (0xb6f970ec): 0x00000000
    Read at address  0x489B00F0 (0xb6f3d0f0): 0x00000000
    Read at address  0x489B00F4 (0xb6fe50f4): 0x00000000
    Read at address  0x489B00F8 (0xb6f200f8): 0x00000000
    Read at address  0x489B00FC (0xb6f9c0fc): 0x00000000
    Read at address  0x489B0100 (0xb6fef100): 0x0A40C07E
    Read at address  0x489B0104 (0xb6f55104): 0x00000000
    Read at address  0x489B0108 (0xb6ffb108): 0x00000000
    Read at address  0x489B010C (0xb6f8010c): 0x00000000
    Read at address  0x489B0110 (0xb6f5c110): 0x00000000
    Read at address  0x489B0114 (0xb6fa5114): 0x00000000
    Read at address  0x489B0118 (0xb6f77118): 0x00000000
    Read at address  0x489B011C (0xb6fed11c): 0x00000000
    Read at address  0x489B0120 (0xb6f21120): 0x00000000
    Read at address  0x489B0124 (0xb6fc2124): 0x00010000
    Read at address  0x489B0128 (0xb6f84128): 0x00000000
    Read at address  0x489B012C (0xb6f5c12c): 0x00000000
    Read at address  0x489B0130 (0xb6fdb130): 0x08080000
    Read at address  0x489B0134 (0xb6f59134): 0x00000000
    Read at address  0x489B0138 (0xb6f39138): 0x00000000
    Read at address  0x489B013C (0xb6f1b13c): 0x00000000
    Read at address  0x489B0140 (0xb6fc8140): 0x00000000
    Read at address  0x489B0144 (0xb6f3e144): 0x00000000
    Read at address  0x489B0148 (0xb6f83148): 0x00000000
    Read at address  0x489B014C (0xb6fad14c): 0x00000000
    Read at address  0x489B0150 (0xb6f04150): 0x00000000
    Read at address  0x489B0154 (0xb6f6b154): 0x00000000
    Read at address  0x489B0158 (0xb6f43158): 0x00000000
    Read at address  0x489B015C (0xb6f1615c): 0x00000000
    Read at address  0x489B0160 (0xb6fd9160): 0x00000000
    Read at address  0x489B0164 (0xb6feb164): 0x00000000
    Read at address  0x489B0168 (0xb6f36168): 0x00000000
    Read at address  0x489B016C (0xb6fa516c): 0x00000000
    Read at address  0x489B0170 (0xb6f0e170): 0x00000000
    Read at address  0x489B0174 (0xb6f44174): 0x00000000
    Read at address  0x489B0178 (0xb6f75178): 0x00000000
    Read at address  0x489B017C (0xb6f4617c): 0x00000000
    Read at address  0x489B0180 (0xb6fa3180): 0x00000000
    Read at address  0x489B0184 (0xb6f10184): 0x00000000
    Read at address  0x489B0188 (0xb6f93188): 0x00000000
    Read at address  0x489B018C (0xb6f1a18c): 0x00000000
    Read at address  0x489B0190 (0xb6fdd190): 0x00000000
    Read at address  0x489B0194 (0xb6f37194): 0x00000000
    Read at address  0x489B0198 (0xb6f66198): 0x00000000
    Read at address  0x489B019C (0xb6f2a19c): 0x00000000
    Read at address  0x489B01A0 (0xb6ff31a0): 0x00000000
    Read at address  0x489B01A4 (0xb6f031a4): 0x00000000
    Read at address  0x489B01A8 (0xb6f3f1a8): 0x00000000
    Read at address  0x489B01AC (0xb6f911ac): 0x00000000
    Read at address  0x489B01B0 (0xb6fa21b0): 0x00000000
    Read at address  0x489B01B4 (0xb6f971b4): 0x00000000
    Read at address  0x489B01B8 (0xb6f001b8): 0x00000000
    Read at address  0x489B01BC (0xb6fa01bc): 0x00000000
    Read at address  0x489B01C0 (0xb6fc01c0): 0x00000000
    Read at address  0x489B01C4 (0xb6f2e1c4): 0x00000000
    Read at address  0x489B01C8 (0xb6ff41c8): 0x00000000
    Read at address  0x489B01CC (0xb6fa61cc): 0x00000000
    Read at address  0x489B01D0 (0xb6f021d0): 0x00000000
    Read at address  0x489B01D4 (0xb6fe11d4): 0x00000000
    Read at address  0x489B01D8 (0xb6fa11d8): 0x00000000
    Read at address  0x489B01DC (0xb6f101dc): 0x00000000
    Read at address  0x489B01E0 (0xb6fde1e0): 0x00000000
    Read at address  0x489B01E4 (0xb6fc81e4): 0x00000000
    Read at address  0x489B01E8 (0xb6f9d1e8): 0x00000000
    Read at address  0x489B01EC (0xb6fd51ec): 0x00000000
    Read at address  0x489B01F0 (0xb6ff31f0): 0x00000000
    Read at address  0x489B01F4 (0xb6ff31f4): 0x00000000
    Read at address  0x489B01F8 (0xb6ff41f8): 0x00000000
    Read at address  0x489B01FC (0xb6fee1fc): 0x00000000
    Read at address  0x489B0200 (0xb6fc0200): 0x00004000
    Read at address  0x489B0204 (0xb6fa5204): 0x00000000
    Read at address  0x489B0208 (0xb6ffa208): 0x00000000
    Read at address  0x489B020C (0xb6f9020c): 0x00000000
    Read at address  0x489B0210 (0xb6f87210): 0x0F004300
    Read at address  0x489B0214 (0xb6ff9214): 0x846B3000
    Read at address  0x489B0218 (0xb6ff1218): 0x00000A00
    Read at address  0x489B021C (0xb6f9221c): 0x0A000000
    Read at address  0x489B0220 (0xb6f34220): 0x0F004500
    Read at address  0x489B0224 (0xb6fea224): 0x84DBB000
    Read at address  0x489B0228 (0xb6f3b228): 0x00000A00
    Read at address  0x489B022C (0xb6fdf22c): 0x0A000000
    Read at address  0x489B0230 (0xb6fb6230): 0x0F004700
    Read at address  0x489B0234 (0xb6f23234): 0x85973000
    Read at address  0x489B0238 (0xb6f26238): 0x00000A00
    Read at address  0x489B023C (0xb6fef23c): 0x0A000000
    Read at address  0x489B0240 (0xb6f15240): 0x0F004900
    Read at address  0x489B0244 (0xb6fe3244): 0x8652B000
    Read at address  0x489B0248 (0xb6f2a248): 0x00000A00
    Read at address  0x489B024C (0xb6fed24c): 0x0A000000
    Read at address  0x489B0250 (0xb6fcc250): 0x00004000
    Read at address  0x489B0254 (0xb6f74254): 0x00000000
    Read at address  0x489B0258 (0xb6f49258): 0x00000000
    Read at address  0x489B025C (0xb6f0d25c): 0x00000000
    Read at address  0x489B0260 (0xb6f52260): 0x00004000
    Read at address  0x489B0264 (0xb6fb6264): 0x00000000
    Read at address  0x489B0268 (0xb6f8e268): 0x00000000
    Read at address  0x489B026C (0xb6f6126c): 0x00000000
    Read at address  0x489B0270 (0xb6f6b270): 0x00004000
    Read at address  0x489B0274 (0xb6f91274): 0x00000000
    Read at address  0x489B0278 (0xb6f06278): 0x00000000
    Read at address  0x489B027C (0xb6f3927c): 0x00000000
    Read at address  0x489B0280 (0xb6f4d280): 0x00000000
    Read at address  0x489B0284 (0xb6f4b284): 0x00000000
    Read at address  0x489B0288 (0xb6f47288): 0x00000000
    Read at address  0x489B028C (0xb6f3228c): 0x00000000
    Read at address  0x489B0290 (0xb6fa7290): 0x00000000
    Read at address  0x489B0294 (0xb6f52294): 0x00000000
    Read at address  0x489B0298 (0xb6f59298): 0x00000000
    Read at address  0x489B029C (0xb6fc029c): 0x00000000
    Read at address  0x489B02A0 (0xb6f1f2a0): 0x00000000
    Read at address  0x489B02A4 (0xb6fe42a4): 0x00000000
    Read at address  0x489B02A8 (0xb6ffb2a8): 0x00000000
    Read at address  0x489B02AC (0xb6f4f2ac): 0x00000000
    Read at address  0x489B02B0 (0xb6f532b0): 0x00000000
    Read at address  0x489B02B4 (0xb6f2e2b4): 0x00000000
    Read at address  0x489B02B8 (0xb6f032b8): 0x00000000
    Read at address  0x489B02BC (0xb6f152bc): 0x00000000
    Read at address  0x489B02C0 (0xb6fc32c0): 0x00000000
    Read at address  0x489B02C4 (0xb6f262c4): 0x00000000
    Read at address  0x489B02C8 (0xb6f512c8): 0x00000000
    Read at address  0x489B02CC (0xb6f902cc): 0x00000000
    Read at address  0x489B02D0 (0xb6f692d0): 0x00000000
    Read at address  0x489B02D4 (0xb6f552d4): 0x00000000
    Read at address  0x489B02D8 (0xb6f802d8): 0x00000000
    Read at address  0x489B02DC (0xb6fb82dc): 0x00000000
    Read at address  0x489B02E0 (0xb6f152e0): 0x00000000
    Read at address  0x489B02E4 (0xb6f152e4): 0x00000000
    Read at address  0x489B02E8 (0xb6ff82e8): 0x00000000
    Read at address  0x489B02EC (0xb6fb12ec): 0x00000000
    Read at address  0x489B02F0 (0xb6fe62f0): 0x00000000
    Read at address  0x489B02F4 (0xb6fc02f4): 0x00000000
    Read at address  0x489B02F8 (0xb6f492f8): 0x00000000
    Read at address  0x489B02FC (0xb6fea2fc): 0x00000000
    Read at address  0x489B0300 (0xb6fca300): 0x00000008
    Read at address  0x489B0304 (0xb6f08304): 0x60054321
    Read at address  0x489B0308 (0xb6f82308): 0x00000000
    Read at address  0x489B030C (0xb6f3230c): 0x00000000
    Read at address  0x489B0310 (0xb6f9c310): 0x00000000
    Read at address  0x489B0314 (0xb6fbe314): 0x00004197
    Read at address  0x489B0318 (0xb6f4c318): 0x00000000
    Read at address  0x489B031C (0xb6f2931c): 0x00000000
    Read at address  0x489B0320 (0xb6f90320): 0x00000000
    Read at address  0x489B0324 (0xb6fcf324): 0x00000000
    Read at address  0x489B0328 (0xb6f36328): 0x00000000
    Read at address  0x489B032C (0xb6fd632c): 0x00000000
    Read at address  0x489B0330 (0xb6fd5330): 0x03C0011E
    Read at address  0x489B0334 (0xb6f82334): 0x03C0025E
    Read at address  0x489B0338 (0xb6f99338): 0x03C0039E
    Read at address  0x489B033C (0xb6fee33c): 0x03C004DE
    Read at address  0x489B0340 (0xb6f48340): 0x00000000
    Read at address  0x489B0344 (0xb6f05344): 0x00000000
    Read at address  0x489B0348 (0xb6f64348): 0x00000000
    Read at address  0x489B034C (0xb6fa634c): 0x00000000
    Read at address  0x489B0350 (0xb6ff6350): 0x0000006D
    Read at address  0x489B0354 (0xb6ff4354): 0x00000000
    Read at address  0x489B0358 (0xb6fc1358): 0x00000000
    Read at address  0x489B035C (0xb6f1e35c): 0x00000000
    Read at address  0x489B0360 (0xb6efc360): 0x00000000
    Read at address  0x489B0364 (0xb6f8f364): 0x00000000
    Read at address  0x489B0368 (0xb6fb0368): 0x00000000
    Read at address  0x489B036C (0xb6f0f36c): 0x00000000
    
    
    
    image_dump.txt

    Hi Brijesh,

    Attaching the CAL register dump and image_dump.txt. PLease rename the image_dump.txt to .yuv

    Thanks,

    Deepika

  • Hi Deepika,

    Can you try 8bit pixel extract and 8bit packing? 

    Rgds,

    Brijesh

  • Hi Brijesh,

    What about pixel processing? I have already disabled it.

    Thanks

    Deepika

  • CAL_pix_extract_pack.txt
    root@dra7xx-evm:~# ./de[   49.894004] random: nonblocking pool is initialized
    vmem2.sh 0000 036c
    Read at address  0x489B0000 (0xb6fcf000): 0x40000300
    Read at address  0x489B0004 (0xb6fc4004): 0xA3C90469
    Read at address  0x489B0008 (0xb6fe2008): 0x00000000
    Read at address  0x489B000C (0xb6f0000c): 0x00000000
    Read at address  0x489B0010 (0xb6f40010): 0x00000008
    Read at address  0x489B0014 (0xb6fe2014): 0x00000000
    Read at address  0x489B0018 (0xb6f58018): 0x00000000
    Read at address  0x489B001C (0xb6fa201c): 0x00000000
    Read at address  0x489B0020 (0xb6ff3020): 0x00000000
    Read at address  0x489B0024 (0xb6f77024): 0x00000000
    Read at address  0x489B0028 (0xb6f62028): 0x00000000
    Read at address  0x489B002C (0xb6f2702c): 0x00000000
    Read at address  0x489B0030 (0xb6f4a030): 0x00000002
    Read at address  0x489B0034 (0xb6fe6034): 0x00000000
    Read at address  0x489B0038 (0xb6fa4038): 0x00000000
    Read at address  0x489B003C (0xb6ff103c): 0x00000000
    Read at address  0x489B0040 (0xb6fe1040): 0x00000000
    Read at address  0x489B0044 (0xb6f73044): 0x00000000
    Read at address  0x489B0048 (0xb6fef048): 0x0000001E
    Read at address  0x489B004C (0xb6f6104c): 0x0000001E
    Read at address  0x489B0050 (0xb6ffb050): 0x00000000
    Read at address  0x489B0054 (0xb6ff4054): 0x00000000
    Read at address  0x489B0058 (0xb6f5d058): 0x00000000
    Read at address  0x489B005C (0xb6f3605c): 0x00000000
    Read at address  0x489B0060 (0xb6f28060): 0x00000000
    Read at address  0x489B0064 (0xb6f56064): 0x00000000
    Read at address  0x489B0068 (0xb6f53068): 0x00000000
    Read at address  0x489B006C (0xb6fcd06c): 0x00000000
    Read at address  0x489B0070 (0xb6f87070): 0x00000000
    Read at address  0x489B0074 (0xb6f06074): 0x00000000
    Read at address  0x489B0078 (0xb6ff7078): 0x00000000
    Read at address  0x489B007C (0xb6fbc07c): 0x00000000
    Read at address  0x489B0080 (0xb6f35080): 0x00000000
    Read at address  0x489B0084 (0xb6f28084): 0x00000000
    Read at address  0x489B0088 (0xb6f2e088): 0x00000000
    Read at address  0x489B008C (0xb6fbd08c): 0x00000000
    Read at address  0x489B0090 (0xb6fe7090): 0x00000000
    Read at address  0x489B0094 (0xb6f16094): 0x00000000
    Read at address  0x489B0098 (0xb6f66098): 0x00000000
    Read at address  0x489B009C (0xb6f4009c): 0x00000000
    Read at address  0x489B00A0 (0xb6eff0a0): 0x00000000
    Read at address  0x489B00A4 (0xb6ff60a4): 0x00000000
    Read at address  0x489B00A8 (0xb6ff20a8): 0x00000000
    Read at address  0x489B00AC (0xb6f590ac): 0x00000000
    Read at address  0x489B00B0 (0xb6f920b0): 0x00000000
    Read at address  0x489B00B4 (0xb6f130b4): 0x00000000
    Read at address  0x489B00B8 (0xb6fda0b8): 0x00000000
    Read at address  0x489B00BC (0xb6fa80bc): 0x00000000
    Read at address  0x489B00C0 (0xb6fc70c0): 0x00080008
    Read at address  0x489B00C4 (0xb6f500c4): 0x00100004
    Read at address  0x489B00C8 (0xb6f4d0c8): 0x00180004
    Read at address  0x489B00CC (0xb6f460cc): 0x00200004
    Read at address  0x489B00D0 (0xb6ffb0d0): 0x00000000
    Read at address  0x489B00D4 (0xb6f5d0d4): 0x00000000
    Read at address  0x489B00D8 (0xb6f920d8): 0x00000000
    Read at address  0x489B00DC (0xb6f940dc): 0x00000000
    Read at address  0x489B00E0 (0xb6f000e0): 0x00000000
    Read at address  0x489B00E4 (0xb6f1f0e4): 0x00000000
    Read at address  0x489B00E8 (0xb6fce0e8): 0x00000000
    Read at address  0x489B00EC (0xb6fd50ec): 0x00000000
    Read at address  0x489B00F0 (0xb6f2b0f0): 0x00000000
    Read at address  0x489B00F4 (0xb6f280f4): 0x00000000
    Read at address  0x489B00F8 (0xb6fa70f8): 0x00000000
    Read at address  0x489B00FC (0xb6f200fc): 0x00000000
    Read at address  0x489B0100 (0xb6fc9100): 0x0A40C07E
    Read at address  0x489B0104 (0xb6f12104): 0x00000000
    Read at address  0x489B0108 (0xb6f23108): 0x00000000
    Read at address  0x489B010C (0xb6f4410c): 0x00000000
    Read at address  0x489B0110 (0xb6fb2110): 0x00000000
    Read at address  0x489B0114 (0xb6f20114): 0x00000000
    Read at address  0x489B0118 (0xb6ff4118): 0x00000000
    Read at address  0x489B011C (0xb6fa511c): 0x00000000
    Read at address  0x489B0120 (0xb6f15120): 0x00000000
    Read at address  0x489B0124 (0xb6f92124): 0x00010000
    Read at address  0x489B0128 (0xb6f02128): 0x00000000
    Read at address  0x489B012C (0xb6fa112c): 0x00000000
    Read at address  0x489B0130 (0xb6f74130): 0x08080000
    Read at address  0x489B0134 (0xb6fa3134): 0x00000000
    Read at address  0x489B0138 (0xb6f7e138): 0x00000000
    Read at address  0x489B013C (0xb6fd513c): 0x00000000
    Read at address  0x489B0140 (0xb6f5e140): 0x00000000
    Read at address  0x489B0144 (0xb6f34144): 0x00000000
    Read at address  0x489B0148 (0xb6fdd148): 0x00000000
    Read at address  0x489B014C (0xb6fc614c): 0x00000000
    Read at address  0x489B0150 (0xb6fba150): 0x00000000
    Read at address  0x489B0154 (0xb6fd4154): 0x00000000
    Read at address  0x489B0158 (0xb6fb7158): 0x00000000
    Read at address  0x489B015C (0xb6ff415c): 0x00000000
    Read at address  0x489B0160 (0xb6efd160): 0x00000000
    Read at address  0x489B0164 (0xb6f63164): 0x00000000
    Read at address  0x489B0168 (0xb6f43168): 0x00000000
    Read at address  0x489B016C (0xb6fb616c): 0x00000000
    Read at address  0x489B0170 (0xb6f9f170): 0x00000000
    Read at address  0x489B0174 (0xb6f01174): 0x00000000
    Read at address  0x489B0178 (0xb6f38178): 0x00000000
    Read at address  0x489B017C (0xb6f0a17c): 0x00000000
    Read at address  0x489B0180 (0xb6f04180): 0x00000000
    Read at address  0x489B0184 (0xb6fec184): 0x00000000
    Read at address  0x489B0188 (0xb6fae188): 0x00000000
    Read at address  0x489B018C (0xb6fba18c): 0x00000000
    Read at address  0x489B0190 (0xb6fd5190): 0x00000000
    Read at address  0x489B0194 (0xb6fa1194): 0x00000000
    Read at address  0x489B0198 (0xb6fd1198): 0x00000000
    Read at address  0x489B019C (0xb6f4419c): 0x00000000
    Read at address  0x489B01A0 (0xb6f931a0): 0x00000000
    Read at address  0x489B01A4 (0xb6f181a4): 0x00000000
    Read at address  0x489B01A8 (0xb6fd01a8): 0x00000000
    Read at address  0x489B01AC (0xb6f5e1ac): 0x00000000
    Read at address  0x489B01B0 (0xb6f021b0): 0x00000000
    Read at address  0x489B01B4 (0xb6fe71b4): 0x00000000
    Read at address  0x489B01B8 (0xb6f4c1b8): 0x00000000
    Read at address  0x489B01BC (0xb6fea1bc): 0x00000000
    Read at address  0x489B01C0 (0xb6f591c0): 0x00000000
    Read at address  0x489B01C4 (0xb6fc01c4): 0x00000000
    Read at address  0x489B01C8 (0xb6f5b1c8): 0x00000000
    Read at address  0x489B01CC (0xb6eff1cc): 0x00000000
    Read at address  0x489B01D0 (0xb6f0d1d0): 0x00000000
    Read at address  0x489B01D4 (0xb6f7b1d4): 0x00000000
    Read at address  0x489B01D8 (0xb6f581d8): 0x00000000
    Read at address  0x489B01DC (0xb6f0f1dc): 0x00000000
    Read at address  0x489B01E0 (0xb6f2e1e0): 0x00000000
    Read at address  0x489B01E4 (0xb6f491e4): 0x00000000
    Read at address  0x489B01E8 (0xb6fa11e8): 0x00000000
    Read at address  0x489B01EC (0xb6f6f1ec): 0x00000000
    Read at address  0x489B01F0 (0xb6f311f0): 0x00000000
    Read at address  0x489B01F4 (0xb6ff01f4): 0x00000000
    Read at address  0x489B01F8 (0xb6feb1f8): 0x00000000
    Read at address  0x489B01FC (0xb6f5b1fc): 0x00000000
    Read at address  0x489B0200 (0xb6fbc200): 0x00004000
    Read at address  0x489B0204 (0xb6f93204): 0x00000000
    Read at address  0x489B0208 (0xb6f81208): 0x00000000
    Read at address  0x489B020C (0xb6faa20c): 0x00000000
    Read at address  0x489B0210 (0xb6f71210): 0x0F004304
    Read at address  0x489B0214 (0xb6f98214): 0x84203000
    Read at address  0x489B0218 (0xb6f05218): 0x00000A00
    Read at address  0x489B021C (0xb6fc521c): 0x0A000000
    Read at address  0x489B0220 (0xb6fcf220): 0x0F004504
    Read at address  0x489B0224 (0xb6fed224): 0x84DBB000
    Read at address  0x489B0228 (0xb6ff4228): 0x00000A00
    Read at address  0x489B022C (0xb6f0822c): 0x0A000000
    Read at address  0x489B0230 (0xb6f05230): 0x0F004704
    Read at address  0x489B0234 (0xb6f24234): 0x85973000
    Read at address  0x489B0238 (0xb6ff5238): 0x00000A00
    Read at address  0x489B023C (0xb6f7523c): 0x0A000000
    Read at address  0x489B0240 (0xb6f3a240): 0x0F004904
    Read at address  0x489B0244 (0xb6fb7244): 0x8652B000
    Read at address  0x489B0248 (0xb6fd1248): 0x00000A00
    Read at address  0x489B024C (0xb6f4a24c): 0x0A000000
    Read at address  0x489B0250 (0xb6efd250): 0x00004000
    Read at address  0x489B0254 (0xb6fe8254): 0x00000000
    Read at address  0x489B0258 (0xb6fcb258): 0x00000000
    Read at address  0x489B025C (0xb6f7525c): 0x00000000
    Read at address  0x489B0260 (0xb6efd260): 0x00004000
    Read at address  0x489B0264 (0xb6f5c264): 0x00000000
    Read at address  0x489B0268 (0xb6f3b268): 0x00000000
    Read at address  0x489B026C (0xb6fc326c): 0x00000000
    Read at address  0x489B0270 (0xb6f18270): 0x00004000
    Read at address  0x489B0274 (0xb6fd7274): 0x00000000
    Read at address  0x489B0278 (0xb6f07278): 0x00000000
    Read at address  0x489B027C (0xb6faa27c): 0x00000000
    Read at address  0x489B0280 (0xb6f89280): 0x00000000
    Read at address  0x489B0284 (0xb6fd7284): 0x00000000
    Read at address  0x489B0288 (0xb6fde288): 0x00000000
    Read at address  0x489B028C (0xb6f8828c): 0x00000000
    Read at address  0x489B0290 (0xb6f43290): 0x00000000
    Read at address  0x489B0294 (0xb6f16294): 0x00000000
    Read at address  0x489B0298 (0xb6f45298): 0x00000000
    Read at address  0x489B029C (0xb6fda29c): 0x00000000
    Read at address  0x489B02A0 (0xb6fc52a0): 0x00000000
    Read at address  0x489B02A4 (0xb6fd12a4): 0x00000000
    Read at address  0x489B02A8 (0xb6f8e2a8): 0x00000000
    Read at address  0x489B02AC (0xb6feb2ac): 0x00000000
    Read at address  0x489B02B0 (0xb6f5d2b0): 0x00000000
    Read at address  0x489B02B4 (0xb6f112b4): 0x00000000
    Read at address  0x489B02B8 (0xb6ff52b8): 0x00000000
    Read at address  0x489B02BC (0xb6ffb2bc): 0x00000000
    Read at address  0x489B02C0 (0xb6ffa2c0): 0x00000000
    Read at address  0x489B02C4 (0xb6f152c4): 0x00000000
    Read at address  0x489B02C8 (0xb6f392c8): 0x00000000
    Read at address  0x489B02CC (0xb6f5f2cc): 0x00000000
    Read at address  0x489B02D0 (0xb6f452d0): 0x00000000
    Read at address  0x489B02D4 (0xb6f622d4): 0x00000000
    Read at address  0x489B02D8 (0xb6fd42d8): 0x00000000
    Read at address  0x489B02DC (0xb6fda2dc): 0x00000000
    Read at address  0x489B02E0 (0xb6f082e0): 0x00000000
    Read at address  0x489B02E4 (0xb6f652e4): 0x00000000
    Read at address  0x489B02E8 (0xb6f802e8): 0x00000000
    Read at address  0x489B02EC (0xb6fe32ec): 0x00000000
    Read at address  0x489B02F0 (0xb6f6d2f0): 0x00000000
    Read at address  0x489B02F4 (0xb6ffb2f4): 0x00000000
    Read at address  0x489B02F8 (0xb6f4a2f8): 0x00000000
    Read at address  0x489B02FC (0xb6fe12fc): 0x00000000
    Read at address  0x489B0300 (0xb6f26300): 0x00000009
    Read at address  0x489B0304 (0xb6f24304): 0x6A054321
    Read at address  0x489B0308 (0xb6fa1308): 0x00000000
    Read at address  0x489B030C (0xb6fc230c): 0x00000000
    Read at address  0x489B0310 (0xb6f99310): 0x00000000
    Read at address  0x489B0314 (0xb6f23314): 0x00004197
    Read at address  0x489B0318 (0xb6f9c318): 0x00000000
    Read at address  0x489B031C (0xb6f1731c): 0x00000000
    Read at address  0x489B0320 (0xb6f2f320): 0x00000000
    Read at address  0x489B0324 (0xb6f77324): 0x00000000
    Read at address  0x489B0328 (0xb6f8e328): 0x00000000
    Read at address  0x489B032C (0xb6fe032c): 0x00000000
    Read at address  0x489B0330 (0xb6fc0330): 0x03C0011E
    Read at address  0x489B0334 (0xb6f0b334): 0x03C0025E
    Read at address  0x489B0338 (0xb6f43338): 0x03C0039E
    Read at address  0x489B033C (0xb6ff633c): 0x03C004DE
    Read at address  0x489B0340 (0xb6ff7340): 0x00000000
    Read at address  0x489B0344 (0xb6ff6344): 0x00000000
    Read at address  0x489B0348 (0xb6f1b348): 0x00000000
    Read at address  0x489B034C (0xb6fbc34c): 0x00000000
    Read at address  0x489B0350 (0xb6f41350): 0x00000012
    Read at address  0x489B0354 (0xb6f51354): 0x00000000
    Read at address  0x489B0358 (0xb6fd3358): 0x00000000
    Read at address  0x489B035C (0xb6fb835c): 0x00000000
    Read at address  0x489B0360 (0xb6fdc360): 0x00000000
    Read at address  0x489B0364 (0xb6f39364): 0x00000000
    Read at address  0x489B0368 (0xb6f5f368): 0x00000000
    Read at address  0x489B036C (0xb6f6536c): 0x00000000
    
    
    
    pixel_extract.txt

    Hi Brijesh,

    Attaching the image pixel_extract.txt ,please change it to .yuv.

    The pixel processing is disabled here.

    CAL register dump is also added for your reference.

    Thanks,

    Deepika

  • Hi Deepika,

    In the captured image, most of the pixel values are 0, except one or two initialize lines. Also data does not seem to be correct. There are repeated patterns for multiple pixels.

    In the register i see that WR DMA is configured correctly and since pixel proc ctx is disabled, this data is directly coming from sensor. So i would suggest to check your sensor configuration. sensor does not seem to give out correct data.

    Regards,

    Brijesh

  • Thanks for the suggestion Brijesh, will check with the sensor vendor.

  • Hi Brijesh,

    The sensor guys suggested us to change the resolution from 1280 * 960 to 1280 * 800. With this change we were able to get some image where at least we can make out something. Also if I remove the U and V component of YUV422 image, I am getting a proper monochromatc image.

    I am attaching the image(as txt) for your reference.Please change it to YUV.

    Also the frame coming per second is 15 whereas the expected fps is 30. Can the processor do anything with the frames coming to it.

    Front_Null_Dump.txt

    Thanks,

    Deepika

  • Hi Deepika,

    ok atleast luma looks correct. 

    Can you now try disabling pixel processing context? With it disabled, pixel data would be written to memory as it arrives. There would not any change in the pixels. 

    I still suspect chroma is not correct from the sensor itself. So lets check by disabling pixel processing context.

    Regards,

    Brijesh

  • Hi Brijesh,

    Pixel processing is already disabled, also 8 bit extraction and packing is  enabled. 

    Should I enable pixel processing ?

    Please find the value of the Pixel processing registers:

    0x489b00C0 --- 0x80008

    0x489b00C4 ---   0x100004

    0x489b00C8 ----  0x180004

    0x489b00CC ---   0x200004

    Thanks,

    Deepika

  • Pixel extract will be used only if pixel processing is enabled. In this case, data will written as it arrives to the CAL/capture module. Wondering why only chroma gets affected. 

    Yes, can you try enabling pixel processing context and try pixel extract with 8bit, 16bit values?

    Regards,

    Brijesh

  • Hi Brijesh,

    Should I try with both 8 bit and 16 bit extraction and packing?

    Thanks,

    Deepika