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.

How to change a frame data in HelloWorld Alg DM8168?

The platform is DM8168 EVM + Daughter Card + DVRRDK3.0

The Arm side, I change the code fllow:

    helloWorldPrm.inQueParams.prevLinkId    = ipcFramesInDspId;
    helloWorldPrm.inQueParams.prevLinkQueId = 0;
    helloWorldPrm.maxStride= 1920*1080*2;
    helloWorldPrm.maxWidth= 1920;
    helloWorldPrm.maxHeight= 1080;
    helloWorldPrm.createOutBuf1= 1;
    helloWorldPrm.maxChannels= 1;
    helloWorldPrm.numBufsPerCh= 1;

The DSP side in the HelloWorldLink_processData function of helloWorldLink_priv.c, I change the fllow:

    UInt8 *p = pFrame->addr[0][0];
    UInt32 curTime;
    curTime = Utils_getCurTimeInMsec();
    UInt32 YUV_test;
    for(YUV_test = 0; YUV_test < 1920*1080*2; YUV_test ++ )
    {
     int mod = YUV_test % 4;
     *(p + YUV_test)= 0xff;
     /*if(mod == 0)
      *(p + YUV_test)= 0xff;
     else if(mod == 1)
       *(p + YUV_test)= 0x80;
      else if(mod == 2)
       *(p + YUV_test)= 0xff;
       else if(mod == 3)
        *(p + YUV_test)= 0x80;*/

    }

Vps_printf("This is test point 67!!! ****HelloWorldLink_processData*****%d********%x*****%x*********\r\n\n\n",Utils_getCurTimeInMsec()-curTime,*p,*(p+1920*1080*2-1));

The problem is :

 when I used memset(pFrame->addr[0][0]),0x0f,1920*1080*2),there is no problem.

when I used 'for' circulate, used *(p + YUV_test)= 0xff; to change a frame data ,there is also no problem.

but when I use 'for' circulate, and used shield code, the system is down. the log is fllow:

 [c6xdsp ]  83111: IPC_FRAMES_IN   : Create in progress !!!
 [m3vpss ]  84545: HDMI: HDMI Config ... DONE !!!
 [c6xdsp ]  83111: SYSTEM: Opening ListMP [VPSS-M3_IPC_OUT_19] ...
 [m3vpss ]  84546: HDMI: Starting HDMI Transmitter ... DONE !!!
 [c6xdsp ]  83111: SYSTEM: Opening ListMP [VPSS-M3_IPC_IN_19] ...
 [m3vpss ]  84546: IPC_FRAMES_OUT   : Create in progress !!!
 [c6xdsp ]  83112: SYSTEM: Opening MsgQ [VPSS-M3_MSGQ] ...
 [m3vpss ]  84548: IPC_FRAMES_OUT   : Create Done !!!
 [c6xdsp ] IPC_FRAMES_IN:HEAPID:0       USED:304
 [c6xdsp ]  83113: IPC_FRAMES_IN   : Create Done !!!
 [c6xdsp ]  83113: HELLOWORLD : Create in progress !!!
 [c6xdsp ]  83113: HELLOWORLD    : Algorithm Create in progress !!!

 [c6xdsp ] > HELLOWORLDALG: Algorithm memory requirements queried ::
 [c6xdsp ] >      Number of buffers = 4
 [c6xdsp ] >      Persistent Internal Memory   = 16 bytes
 [c6xdsp ] >      Persistent External Memory   = 259200 bytes
 [m3vpss ]  84565: DISPLAY: Create in progress !!!
 [c6xdsp ] >      Scratch Internal Memory      = 102400 bytes
 [m3vpss ]  84566: DISPLAY: 0: Window size 1920x1080, 3840B
 [m3vpss ]  84566: DISPLAY: Create Done !!!
 [c6xdsp ] > HELLOWORLDALG: Initializing Hello World Algorithm...
 [m3vpss ]  84567: DISPLAY: Start in progress !!!
 [c6xdsp ] > HELLOWORLDALG: Application memory allocation ==> memTab #0
 [c6xdsp ]        Bytes    = 8
 [c6xdsp ]        Address  = 0x10800000
 [c6xdsp ]        Location = INTERNAL L1/2 MEM
 [c6xdsp ] > HELLOWORLDALG: Application memory allocation ==> memTab #1
 [c6xdsp ]        Bytes    = 102400
 [c6xdsp ]        Address  = 0x10800008
 [c6xdsp ]        Location = INTERNAL L1/2 MEM
 [c6xdsp ] > HELLOWORLDALG: Application memory allocation ==> memTab #2
 [c6xdsp ]        Bytes    = 259200
 [c6xdsp ]        Address  = 0x9ce86300
 [c6xdsp ]        Location = EXTERNAL DDR MEM
 [c6xdsp ] > HELLOWORLDALG: Application memory allocation ==> memTab #3
 [c6xdsp ]        Bytes    = 8
 [c6xdsp ]        Address  = 0x10819008
 [c6xdsp ]        Location = INTERNAL L1/2 MEM
 [c6xdsp ]  83115: HELLOWORLD    : Algorithm Create Done !!!
 [c6xdsp ] This is test point 67!!! ************pBaseAddr = 0x88000080********pBuf->addr = 80*****ff******

 [c6xdsp ]  83127: HELLOWORLD : Create Done !!!
 [m3vpss ]  84602: DISPLAY: Start Done !!!
 [c6xdsp ] This is test point 66!!! *******************************
 [m3vpss ]  84602: DISPLAY: HDDAC(BP0) : 57 fps, Latency (Min / Max) = ( 255 / 0 ), Callback Interval (Min / Max) = ( 255 / 0 ) !!!
 [m3vpss ]  84603: DISPLAY: UNDERFLOW COUNT: HDMI(BP0) 0, HDDAC(BP0) 0, DVO2(BP1) 0, SDDAC(SEC1) 1
 [m3vpss ]  84603: SYSTEM  : FREE SPACE : System Heap      = 6328 B, Mbx = 10239 msgs)
 [c6xdsp ] This is test point 66!!! ****************36864***************
 [m3vpss ]  84603: SYSTEM  : FREE SPACE : SR0 Heap         = 11003648 B (10 MB)
 [m3vpss ]  84603: CAPTURE: Start in progress !!!
 [m3vpss ]  84603: SYSTEM  : FREE SPACE : Frame Buffer     = 190567296 B (181 MB)
 [m3vpss ]  84603: CAPTURE: Start Done !!!
 [m3vpss ]  84604: SYSTEM  : FREE SPACE : Bitstream Buffer = 310949760 B (296 MB)
 [m3vpss ]  84604: SYSTEM  : FREE SPACE : Tiler 8-bit      = 134217728 B (128 MB)  - TILER ON
 [m3vpss ]  84604: SYSTEM  : FREE SPACE : Tiler 16-bit     = 134217728 B (128 MB)  - TILER ON

 
 [m3vpss ]  84829: SYSTEM: Opening MsgQ [HOST_MSGQ] ...
 [c6xdsp ] This is test point 67!!! ****HelloWorldLink_processData*****92********ff*****80*********
 [c6xdsp ] HELLO WORLD ALG: Process frame
 [c6xdsp ] This is test point 67!!! ****HelloWorldLink_processData*****92********ff*****80*********
 [c6xdsp ] This is test point 67!!! ****HelloWorldLink_processData*****91********ff*****80*********
 [c6xdsp ] This is test point 67!!! ****HelloWorldLink_processData*****91********ff*****80*********
 [c6xdsp ] This is test point 67!!! ****HelloWorldLink_processData*****91********ff*****80*********
 [c6xdsp ] This is test point 67!!! ****HelloWorldLink_processData*****91********ff*****80*********
 [c6xdsp ] This is test point 67!!! ****HelloWorldLink_processData*****92********ff*****80*********
 [c6xdsp ] This is test point 67!!! ****HelloWorldLink_processData*****92********ff*****80*********
 [c6xdsp ] This is test point 67!!! ****HelloWorldLink_processData*****92********ff*****80*********
 [c6xdsp ] This is test point 67!!! ****HelloWorldLink_processData*****92********ff*****80*********
 [c6xdsp ] This is test point 67!!! ****HelloWorldLink_processData*****92********ff*****80*********
 [c6xdsp ] This is test point 67!!! ****HelloWorldLink_processData*****92********ff*****80*********
 [c6xdsp ] This is test point 67!!! ****HelloWorldLink_processData*****91********ff*****80*********
 [c6xdsp ] This is test point 67!!! ****HelloWorldLink_processData*****91********ff*****80*********
 [c6xdsp ] This is test point 67!!! ****HelloWorldLink_processData*****92********ff*****80*********
 [c6xdsp ] This is test point 67!!! ****HelloWorldLink_processData*****92********ff*****80*********
 [c6xdsp ] This is test point 67!!! ****HelloWorldLink_processData*****91********ff*****80*********
 [c6xdsp ] This is test point 67!!! ****HelloWorldLink_processData*****92********ff*****80*********