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.

Fatal Error unhandled Exception

Other Parts Discussed in Thread: SYSBIOS

Hi TI,

I am working on a DM8148 Custom Board ,i am using latest EZSDK 5_05_02 . We have integrated drivers for custom video decoders in the hdvpss source in the EZSDK 5_05_01_04 . Now i am trying to migrate to hdvpss source in the latest EZSDK 5_05_02 . I have done the integration of the drivers for the video decoders in the latest hdvpss source . Using the latest hdvpss fimware when i ran the OMX app ,I see my app hangs at capture control ( TVP ) state execute and the logdump shows the below error .

N:VPSS  P:2 #:01997 T:000000023dc38f7b M:xdc.runtime.Main S:Starting Video Decoder Capture Driver
N:VPSS  P:2 #:01998 T:000000023dc4aa95 M:xdc.runtime.Main S: CAPTUREAPP: Detect video in progress for inst 0 !!!
N:VPSS  P:2 #:01999 T:000000023dc9f197 M:xdc.runtime.Main S:FATAL ERROR: ErrorCode:0x1. Unhandled Exception:
N:VPSS  P:2 #:02000 T:000000023dca7495 M:xdc.runtime.Main S:Exception occurred in ThreadType_Task
N:VPSS  P:2 #:02001 T:000000023dcadd59 M:xdc.runtime.Main S:handle: 0x9f1ff6a0.
N:VPSS  P:2 #:02002 T:000000023dcb40d5 M:xdc.runtime.Main S:stack base: 0x9f1fce98.
N:VPSS  P:2 #:02003 T:000000023dcba653 M:xdc.runtime.Main S:stack size: 0x2800.
N:VPSS  P:2 #:02004 T:000000023dcc086d M:xdc.runtime.Main S:R0 = 0x9f1a85f0  R8  = 0xffffffff
N:VPSS  P:2 #:02005 T:000000023dcc7b15 M:xdc.runtime.Main S:R1 = 0x10060003  R9  = 0xffffffff
N:VPSS  P:2 #:02006 T:000000023dccea1f M:xdc.runtime.Main S:R2 = 0x9f1ff4e4  R10 = 0xffffffff
N:VPSS  P:2 #:02007 T:000000023dcd5c83 M:xdc.runtime.Main S:R3 = 0x9f1ff4e8  R11 = 0xffffffff
N:VPSS  P:2 #:02008 T:000000023dcdcd7b M:xdc.runtime.Main S:R4 = 0x013b0bf6  R12 = 0x00000018
N:VPSS  P:2 #:02009 T:000000023dce3f91 M:xdc.runtime.Main S:R5 = 0xffffffff  SP(R13) = 0x9f1ff298
N:VPSS  P:2 #:02010 T:000000023dceb2cf M:xdc.runtime.Main S:R6 = 0xffffffff  LR(R14) = 0x9f684211
N:VPSS  P:2 #:02011 T:000000023dcf27d3 M:xdc.runtime.Main S:R7 = 0xffffffff  PC(R15) = 0x013b0bf6
N:VPSS  P:2 #:02012 T:000000023dcf9b6d M:xdc.runtime.Main S:PSR = 0xa0000000
N:VPSS  P:2 #:02013 T:000000023dcffd95 M:xdc.runtime.Main S:ICSR = 0x0440f803
N:VPSS  P:2 #:02014 T:000000023dd05ee9 M:xdc.runtime.Main S:MMFSR = 0x00
N:VPSS  P:2 #:02015 T:000000023dd0baa3 M:xdc.runtime.Main S:BFSR = 0x01
N:VPSS  P:2 #:02016 T:000000023dd113b9 M:xdc.runtime.Main S:UFSR = 0x0000
N:VPSS  P:2 #:02017 T:000000023dd172cf M:xdc.runtime.Main S:HFSR = 0x40000000
N:VPSS  P:2 #:02018 T:000000023dd1d295 M:xdc.runtime.Main S:DFSR = 0x00000000
N:VPSS  P:2 #:02019 T:000000023dd233c9 M:xdc.runtime.Main S:MMAR = 0xe000ed34
N:VPSS  P:2 #:02020 T:000000023dd293ed M:xdc.runtime.Main S:BFAR = 0xe000ed38
N:VPSS  P:2 #:02021 T:000000023dd2f5f5 M:xdc.runtime.Main S:AFSR = 0x00000000
N:VPSS  P:2 #:02022 T:000000023dd3544f M:xdc.runtime.Main S:FATAL ERROR: ErrorCode:0x1. Terminating Execution...

Can anyone from TI help me out in interpreting the above error ? any help is appreciated .

N Sivaramkrishna .

Mistral Solutions Pvt Ltd .

  • Hello,

    It seems to me is that VPSS M3 core crashed.

    Could you check for errors, when the VPSS module is loading at the beginning ?

    Best Regards,

    Margarita

  • Hi Margarita,

    Thanks for the reply . I don't see any errors when VPSS and the hdvpss,hdvicp firmwares are loaded . Now I am getting this type of error logs in the CCS console ,

    [Cortex_M3_ISS]  CAPTUREAPP: Detect video in progress for inst 0 !!!
    [Cortex_M3_ISS] [t=0x00000003:70c68a79] ti.sysbios.family.arm.m3.Hwi: ERROR: line 850: E_hardFault: FORCED
    [Cortex_M3_ISS] ti.sysbios.family.arm.m3.Hwi: line 850: E_hardFault: FORCED
    [Cortex_M3_ISS] [t=0x00000003:70c93fff] ti.sysbios.family.arm.m3.Hwi: ERROR: line 927: E_busFault: IBUSERR
    [Cortex_M3_ISS] ti.sysbios.family.arm.m3.Hwi: line 927: E_busFault: IBUSERR
    [Cortex_M3_ISS] Exception occurred in background thread.
    [Cortex_M3_ISS] Exception occurred in ThreadType_Task.
    [Cortex_M3_ISS] Task handle: 0x9f1ff6a0.
    [Cortex_M3_ISS] Task stack base: 0x9f1fce98.
    [Cortex_M3_ISS] Task stack size: 0x2800.
    [Cortex_M3_ISS] R0 = 0x9f1a85f0  R8  = 0xffffffff
    [Cortex_M3_ISS] R1 = 0x10060003  R9  = 0xffffffff
    [Cortex_M3_ISS] R2 = 0x9f1ff4e4  R10 = 0xffffffff
    [Cortex_M3_ISS] R3 = 0x9f1ff4e8  R11 = 0xffffffff
    [Cortex_M3_ISS] R4 = 0x02fa9176  R12 = 0x00000018
    [Cortex_M3_ISS] R5 = 0xffffffff  SP(R13) = 0x9f1ff298
    [Cortex_M3_ISS] R6 = 0xffffffff  LR(R14) = 0x9f684235
    [Cortex_M3_ISS] R7 = 0xffffffff  PC(R15) = 0x02fa9176
    [Cortex_M3_ISS] PSR = 0xa0000000
    [Cortex_M3_ISS] ICSR = 0x0440f803
    [Cortex_M3_ISS] MMFSR = 0x00
    [Cortex_M3_ISS] BFSR = 0x01
    [Cortex_M3_ISS] UFSR = 0x0000
    [Cortex_M3_ISS] HFSR = 0x40000000
    [Cortex_M3_ISS] DFSR = 0x00000000
    [Cortex_M3_ISS] MMAR = 0xe000ed34
    [Cortex_M3_ISS] BFAR = 0xe000ed38
    [Cortex_M3_ISS] AFSR = 0x00000000
    [Cortex_M3_ISS] Terminating execution...

    I can step through the code in CCS , I see the crash is happening at retVal = channel->drv->drvOps->control(channel->drvHandle,cmd,cmdArgs,cmdStatusArgs);when the IOCTL_VPS_VIDEO_DECODER_GET_VIDEO_STATUS is called from OMX layer .

    But sometimes this error won't come I can see the app executing fine without any problems . Can you help me out in interpreting the above stack dump ,so that i can find out what's responsible for the error .

    Thanks,

    N Sivaramkrishna .

  • Hi ,

    One thing i forgot to tell you , I have just updated the HDVPSS and HDVICP fimwares to EZSDK 5_05_02 ,but the linux kernel ,u-boot are from the older EZSDK 5_05_01_04 .

    Even my OMX app is compiled against the older component sources (ezsdk 5_05_01) . Is this the safe way to do ? Can we use the new firmware and older linux kernel ,u-boot,filesystem from EZSDK 5_05_01 .

    I am also seeing the below warning when the HDVPSS firmware is getting loaded .

    VPSS_FVID2: M3 firmware version 0x1000145 is newer,driver may not work properly.

    Can you please clarify the above usage ? Do you think this may be reason for the M3 throwing exceptions ?

    Thanks,

    N Sivaramkrishna .



  • Hello,

    Can you please tell the name of your local field engineer? Thank you.

    Best Regards,

    Margarita