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.

TDA4VL-Q1: Few Logs from C7x

Part Number: TDA4VL-Q1
Other Parts Discussed in Thread: TDA4VM

Tool/software:

Dear Sir,

This query is related to the last query,

I am seing these kind of logs after application freezes

[C7x_1 ]     54.723910 s: A0 =0xa1 A1 =0xb0767d28
[C7x_1 ]     54.723928 s: A2 =0x100 A3 =0xb0767d28
[C7x_1 ]     54.723938 s: A4 =0xf3 A5 =0xb10ac780
[C7x_1 ]     54.723948 s: A6 =0x403fff60 A7 =0x100
[C7x_1 ]     54.723957 s: A8 =0xb10ac780 A9 =0x100
[C7x_1 ]     54.723966 s: A10=0x403fff60 A11=0xb0e4d0d0
[C7x_1 ]     54.723976 s: A12=0xb07428b8 A13=0x0
[C7x_1 ]     54.723984 s: A14=0xb0e53240 A15=0x0
[C7x_1 ]     54.723994 s: D0 =0xb0767dcf D1 =0x40400005
[C7x_1 ]     54.724004 s: D2 =0xb060f7f0 D3 =0xb074ebd5
[C7x_1 ]     54.724014 s: D4 =0x184dd8c6 D5 =0x184dd800
[C7x_1 ]     54.724023 s: D6 =0x184e6e00 D7 =0x18480a00
[C7x_1 ]     54.724033 s: D8 =0xc04b9f24 D9 =0x184809fc
[C7x_1 ]     54.724042 s: D10=0xc04b9b24 D11=0x184809f8
[C7x_1 ]     54.724052 s: D12=0xc04b9d24 D13=0xb060f5c0
[C7x_1 ]     54.724062 s: D14=0xb060f4a8 D15=0xb060f350
[C7x_1 ]     54.724072 s: AM0=0x0 AM1=0x7f000000
[C7x_1 ]     54.724081 s: AM2=0x7fff AM3=0x35bfbe8e
[C7x_1 ]     54.724090 s: AM4=0x7fff AM5=0x3f0
[C7x_1 ]     54.724099 s: AM6=0xd800000 AM7=0x3e0a9555
[C7x_1 ]     54.724108 s: AL0=0xa8 AL1=0xb0767d28
[C7x_1 ]     54.724117 s: AL2=0x0 AL3=0x527efe00
[C7x_1 ]     54.724126 s: AL4=0x1 AL5=0x17026900
[C7x_1 ]     54.724135 s: AL6=0x0 AL7=0x0
[C7x_1 ]     54.724143 s: P0=0x0 P1=0xffffff
[C7x_1 ]     54.724152 s: P2=0xfffff P3=0xffff
[C7x_1 ]     54.724160 s: P4=0x2b128067 P5=0x20e5e580
[C7x_1 ]     54.724170 s: P6=0xd194a6f P7=0x26f2b727
[C7x_1 ]     54.724179 s: FPCR=0x10 FSR=0x31213115
[C7x_1 ]     54.724188 s: GFPGFR=0x700001d GPLY=0x0
[C7x_1 ]     54.724198 s: 
[C7x_1 ] =0xb07bfa40 [0]
[C7x_1 ]     54.729530 s: 0x0 [5]
[C7x_1 ]     54.729537 s: 0x0 [6]
[C7x_1 ]     54.729544 s: 0x0 [7]
[C7x_1 ]     54.729552 s: 0x0 [1]
[C7x_1 ]     54.729559 s: 0x0 [2]
[C7x_1 ]     54.729566 s: 0x0 [3]
[C7x_1 ]     54.729573 s: 0x0 [4]
[C7x_1 ]     54.729581 s: 0x0 [5]
[C7x_1 ]     54.729588 s: 0x0 [6]
[C7x_1 ]     54.729595 s: 0x184e9900 [7]
[C7x_1 ]     54.729603 s: 
[C7x_1 ] =0xb07bf200 [0]
[C7x_1 ]     54.729611 s: 
[C7x_1 ] =0xb07bf200 [0]
[C7x_1 ]     54.729619 s: 0x184ea100 [1]
[C7x_1 ]     54.729627 s: 0x184ea100 [2]
[C7x_1 ]     54.729635 s: 0x184ea100 [3]
[C7x_1 ]     54.729643 s: 0x184ea100 [4]
[C7x_1 ]     54.729651 s: 0x184ea100 [5]
[C7x_1 ]     54.729659 s: 0x0 [6]
[C7x_1 ]     54.729666 s: 0x0 [7]
[C7x_1 ]     54.729673 s: 0x0 [1]
[C7x_1 ]     54.729680 s: 0x0 [2]
[C7x_1 ]     54.729688 s: 0x75080000 [3]
[C7x_1 ]     54.729696 s: 0x0 [4]
[C7x_1 ]     54.729703 s: 0x0 [5]
[C7x_1 ]     54.729710 s: 0x0 [6]
[C7x_1 ]     54.729718 s: 0x0 [7]
[C7x_1 ]     54.729725 s: 
[C7x_1 ] =0xb07bf280 [0]
[C7x_1 ]     54.729733 s: 
[C7x_1 ] SE1_1=0xb07bf280 [0]
[C7x_1 ]     54.729741 s: 0x1 [1]
[C7x_1 ]     54.729748 s: 0x4 [2]
[C7x_1 ]     54.729756 s: 0x100 [3]
[C7x_1 ]     54.729763 s: 0x1 [4]
[C7x_1 ]     54.729771 s: 0x6c0 [5]
[C7x_1 ]     54.729778 s: 0x0 [6]
[C7x_1 ]     54.729785 s: 0xd006000 [7]
[C7x_1 ]     54.729793 s: 0x0 [1]
[C7x_1 ]     54.729800 s: 0x0 [2]
[C7x_1 ]     54.729808 s: 0x0 [3]
[C7x_1 ]     54.729815 s: 0x0 [4]
[C7x_1 ]     54.729822 s: 0x0 [5]
[C7x_1 ]     54.729830 s: 0x0 [6]
[C7x_1 ]     54.729837 s: 0x64802700 [7]
[C7x_1 ]     54.729845 s: 
[C7x_1 ] =0xb07bf300 [0]
[C7x_1 ]     54.729853 s: 
[C7x_1 ] =0xb07bf300 [0]
[C7x_1 ]     54.729861 s: 0x64802700 [1]
[C7x_1 ]     54.729869 s: 0x64802700 [2]
[C7x_1 ]     54.729877 s: 0x64802700 [3]
[C7x_1 ]     54.729885 s: 0x64802700 [4]
[C7x_1 ]     54.729892 s: 0x64802700 [5]
[C7x_1 ]     54.729900 s: 0x0 [6]
[C7x_1 ]     54.729908 s: 0x0 [7]
[C7x_1 ]     54.729915 s: 0x0 [1]
[C7x_1 ]     54.729922 s: 0x0 [2]
[C7x_1 ]     54.729929 s: 0x1380000 [3]
[C7x_1 ]     54.729937 s: 0x0 [4]
[C7x_1 ]     54.729944 s: 0x0 [5]
[C7x_1 ]     54.729952 s: 0x40 [6]
[C7x_1 ]     54.729959 s: 0x0 [7]
[C7x_1 ]     54.729966 s: 
[C7x_1 ] =0xb07bf440 [0]
[C7x_1 ]     54.729974 s: 
[C7x_1 ] =0xb07bf440 [0]
[C7x_1 ]     54.729982 s: 0x0 [1]
[C7x_1 ]     54.729990 s: 0x0 [2]
[C7x_1 ]     54.729997 s: 0x2 [3]
[C7x_1 ]     54.730004 s: 0x40 [4]
[C7x_1 ]     54.730012 s: 0x0 [5]
[C7x_1 ]     54.730019 s: 0x0 [6]
[C7x_1 ]     54.730026 s: 0x1004000 [7]
[C7x_1 ]     54.730034 s: 0x0 [1]
[C7x_1 ]     54.730042 s: 0x0 [2]
[C7x_1 ]     54.730049 s: 0x2 [3]
[C7x_1 ]     54.730057 s: 0x40 [4]
[C7x_1 ]     54.730064 s: 0x0 [5]
[C7x_1 ]     54.730071 s: 0x0 [6]
[C7x_1 ]     54.730078 s: 0x1004000 [7]
[C7x_1 ]     54.730086 s: 
[C7x_1 ] SA2CR=0xb07bf3c0 [0]
[C7x_1 ]     54.730095 s: 
[C7x_1 ] =0xb07bf3c0 [0]
[C7x_1 ]     54.730103 s: 0x0 [1]
[C7x_1 ]     54.730110 s: 0x0 [2]
[C7x_1 ]     54.730117 s: 0x0 [3]
[C7x_1 ]     54.730124 s: 0x0 [4]
[C7x_1 ]     54.730131 s: 0x0 [5]
[C7x_1 ]     54.730139 s: 0x0 [6]
[C7x_1 ]     54.730146 s: 0x0 [7]
[C7x_1 ]     54.730153 s: 0x3 [1]
[C7x_1 ]     54.730161 s: 0xffffffff [2]
[C7x_1 ]     54.730169 s: 0x30 [3]
[C7x_1 ]     54.730176 s: 0x1 [4]
[C7x_1 ]     54.730183 s: 0x0 [5]
[C7x_1 ]     54.730191 s: 0x0 [6]
[C7x_1 ]     54.730198 s: 0x5000000 [7]
[C7x_1 ]     54.730206 s: 
[C7x_1 ] SA0CNTR0=0xb07bf540 [0]
[C7x_1 ]     54.730214 s: 
[C7x_1 ] SA1CNTR0=0xb07bf540 [0]
[C7x_1 ]     54.730223 s: 0x0 [1]
[C7x_1 ]     54.730230 s: 0x0 [2]
[C7x_1 ]     54.730237 s: 0x0 [3]
[C7x_1 ]     54.730245 s: 0x0 [4]
[C7x_1 ]     54.730252 s: 0x0 [5]
[C7x_1 ]     54.730260 s: 0x0 [6]
[C7x_1 ]     54.730267 s: 0x0 [7]
[C7x_1 ]     54.730274 s: 0x0 [1]
[C7x_1 ]     54.730281 s: 0x0 [2]
[C7x_1 ]     54.730289 s: 0x0 [3]
[C7x_1 ]     54.730296 s: 0x0 [4]
[C7x_1 ]     54.730303 s: 0x0 [5]
[C7x_1 ]     54.730310 s: 0x0 [6]
[C7x_1 ]     54.730318 s: 0x0 [7]
[C7x_1 ]     54.730325 s: 
[C7x_1 ] SA2CNTR0=0xb07bf4c0 [0]
[C7x_1 ]     54.730334 s: 
[C7x_1 ] =0xb07bf4c0 [0]
[C7x_1 ]     54.730341 s: 0x0 [1]
[C7x_1 ]     54.730349 s: 0x0 [2]
[C7x_1 ]     54.730356 s: 0x0 [3]
[C7x_1 ]     54.730363 s: 0x0 [4]
[C7x_1 ]     54.730370 s: 0x0 [5]
[C7x_1 ]     54.730377 s: 0x0 [6]
[C7x_1 ]     54.730385 s: 0x0 [7]
[C7x_1 ]     54.730392 s: 0x14 [1]
[C7x_1 ]     54.730399 s: 0x12 [2]
[C7x_1 ]     54.730407 s: 0x30 [3]
[C7x_1 ]     54.730414 s: 0x1 [4]
[C7x_1 ]     54.730422 s: 0x2 [5]
[C7x_1 ]     54.730429 s: 0xfffffffc [6]
[C7x_1 ]     54.730437 s: 0x1e [7]

Could you please help me out to find the reason of the same.

Thanks and Regards,

Vyom Mishra

  • Hi Vyom,

    This looks to be the register dump output of the C7x exception handler. You can look at pdk/packages/ti/csl/arch/c7x/src/Exception.c and see this is coming from Exception_handler(). To debug why your application is freezing, you can trying to set a breakpoint at this function, and then see the function call stack from there to see where the exception could be originating from. 

    Best,

    Asha

  • Dear Asha,

    Thanks for the response!

    Can you please let me know the possible reason for the exception at particular functionality?

    because I have a for loop

    //example
    for(int i = 0; i<30; i++)
    
    {
    
    Functionality1();
    
    Functionality2();
    
    Functionality3();
    
    }

    This loop runs 3 times and then such logs are observed.

    Thanks and Regards,

    Vyom Mishra

  • Hi Vyom,

    It's difficult to say without knowing application details and what operations the C7x processor is performing - exceptions can be caused by many things. I would look back at my comment about using a debugger to narrow down where you are seeing the exception and report back. Seeing the function call stack and the state of the C7x registers can help narrow down the issue.

    Best,

    Asha

  • Hello Asha,

    I have already found the portion of the code which is causing this.

    //example
    for(int i = 0; i<30; i++)
    
    {
    printf("1");
    Functionality1();
    printf("2");
    Functionality2();
    printf("3");
    Functionality3();
    printf("4");
    }

    While debugging, I found that this loop runs 2 times, and in the second iteration printf("4"); is the last to run after that this exception occurs.

    I donot have the CCS Setup to debug the same, could you please let me know the possible reason for the exceptions if possible.

    Note:

    - In one of the custom kernel, due to the use of sprintf(); this kind of exception was observed.

    - The custom kernel I am working is already ported on C66(TDA4VM) J721E , I am migrating this to the J721S2 /TDA4VE/ C7x 

    Thanks and Regards,

    Vyom Mishra

  • Hello Vyom,

    Did you share the full log output of the C7x exception in your original post? The Exception_handler() function can print more register level information depending on the the exception.

    Best,

    Asha