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.

TDA4VMXEVM: VISS node hangs on process with specific H3A settings

Part Number: TDA4VMXEVM

Hello,

The sensor we are working with has 1744x1536 resolution. When the following H3A settings are applied, the system hangs on VISS process - on
tivxEventWait(vissObj->waitForProcessCmpl, TIVX_EVENT_TIMEOUT_WAIT_FOREVER) call.

The H3A settings:
enableALowComp = 0
enableMedFilt = 0
midFiltThreshold = 255
startX = 2
startY = 18
width = 60
height = 60
horzCount = 29
vertCount = 25
horzIncr = 6
vertIncr = 10
blackLineVertStart = 1534
blackLineHeight = 2
outMode = 2
sumShift = 0
satLimit = 992
mode = 0

The system is working normally when using the following settings:
enableALowComp = 0
enableMedFilt = 0
midFiltThreshold = 255
startX = 2
startY = 18
width = 40
height = 24
horzCount = 32
vertCount = 29
horzIncr = 4
vertIncr = 4
blackLineVertStart = 1534
blackLineHeight = 2
outMode = 2
sumShift = 0
satLimit = 992
mode = 0

But when using the working settings - not the whole image is covered and the statistics may not be as accurate. Is there a way to resolve this issue?
Any suggestions or recommendations would be appreciated.

Regards,
Todor

  • Todor,

    Can you try making number of windows a multiple of 8? e.g. 32x24.

    Regards,

    Mayank

  • Hi Mayank,

    We changed the horizontal count and vertical count to 24 but it had no effect. The system still hangs.

    Regards,
    Todor

  • Todor,

    Can you please check the following

    horzIncr = 6
    vertIncr = 10

    Can you try with 4, 4?

  • Hello Mayank,

    Changing horizontal and vertical incr to 4 did not resolve the issue and the system hangs.

    But aren't these increments related to the paxel/window width and height values?
    In the documentation it is stated that the accumulators are 16 bit and changing the incr's values to 4 may cause overflow.

    Thank you for the support!

    Regards,
    Todor

  • Hello Todor,

    I tried to reproduce the issue but I couldn't. Here is what I did:

    1. Modified AR0820 sensor from 3840x2160 to 1744x1536

    2. Modified the DCC file AR0820_viss_h3a_aewb_cfg.xml as per your configuration

    3. Ran vx_app_single_cam

    No hang was observed. Can you please let me know how you are configuring H3A - is it through DCC or some other interface?

    Regards,

    Mayank

  • Hello Mayank,

    We are not using DCC to configure the H3A engine. But when reading the related H3A registers - all the settings are written there - so it doesn't seem to be related to the way of writing the configuration.

    I tried reproducing the issue with IMX390.

    These are the 3 H3A configurations I used for debugging:
    a) For 1920x1080 resolution
    enableALowComp = 0
    enableMedFilt = 0
    midFiltThreshold = 0
    startX = 0
    startY = 16
    width = 60
    height = 36
    horzCount = 32
    vertCount = 29
    horzIncr = 6
    vertIncr = 6
    blackLineVertStart = 1078
    blackLineHeight = 2
    outMode = 2
    sumShift = 0
    satLimit = 992

    b) For 1744x1080 resolution
    enableALowComp = 0
    enableMedFilt = 0
    midFiltThreshold = 0
    startX = 0
    startY = 16
    width = 60
    height = 36
    horzCount = 29
    vertCount = 29
    horzIncr = 6
    vertIncr = 6
    blackLineVertStart = 1078
    blackLineHeight = 2
    outMode = 2
    sumShift = 0
    satLimit = 992

    c) Working settings
    enableALowComp = 0
    enableMedFilt = 0
    midFiltThreshold = 0
    startX = 0
    startY = 16
    width = 40
    height = 36
    horzCount = 32
    vertCount = 29
    horzIncr = 4
    vertIncr = 6
    blackLineVertStart = 1078
    blackLineHeight = 2
    outMode = 2
    sumShift = 0
    satLimit = 992

    The (a) settings work correctly when the sensor is running with 1920x1080 resolution. I tried the following:

    1. Modified the IMX390 sensor's resolution from 1920x1080 to 1744x1080

    2. Used the H3A configuration for the 1920x1080 resolution (a)
      The system hangs.

    3. Used the H3A configuration for the 1744x1080 resolution (b)
       The system hangs.

    4. Used the settings labeled as (c)
       No system hanging is observed.


    When the window width and horizontal increment are changed to 40 and 4 - the hang is not observed.

    VISS_RAWFE_H3A_PCR register has a field BUSYAEWB, but it's 0 after the hang occurs.
    I've been looking for some other helpful debug registers for this case. Are there any other registers you would suggest looking at?

    Thank you for the support!

    Regards,
    Todor

  • Thanks Todor,

    I will get back to you soon.

    Regards,

    Mayank

  • Todor,

    Can you please share a dump of H3A registers - working and crashing?

    Regards,

    Mayank

  • Hi Mayank,

    Sure, a registry dump containing the previously performed cases for IMX390 is attached.

    case a)
    
    VISS_RAWFE_H3A_PID          Unsigned / Readable,Writeable   0x4D010000
    VISS_RAWFE_H3A_PCR          Unsigned / Readable,Writeable   0xF80507F8
    VISS_RAWFE_H3A_AFPAX1       Unsigned / Readable,Writeable   0x00000000
    VISS_RAWFE_H3A_AFPAX2       Unsigned / Readable,Writeable   0x00000000
    VISS_RAWFE_H3A_AFPAXSTART   Unsigned / Readable,Writeable   0x00000000
    VISS_RAWFE_H3A_AFIIRSH      Unsigned / Readable,Writeable   0x00000000
    VISS_RAWFE_H3A_AFBUFST      Unsigned / Readable,Writeable   0x00000000
    VISS_RAWFE_H3A_AFCOEF010    Unsigned / Readable,Writeable   0x00000000
    VISS_RAWFE_H3A_AFCOEF032    Unsigned / Readable,Writeable   0x00000000
    VISS_RAWFE_H3A_AFCOEF054    Unsigned / Readable,Writeable   0x00000000
    VISS_RAWFE_H3A_AFCOEF076    Unsigned / Readable,Writeable   0x00000000
    VISS_RAWFE_H3A_AFCOEF098    Unsigned / Readable,Writeable   0x00000000
    VISS_RAWFE_H3A_AFCOEF0010   Unsigned / Readable,Writeable   0x00000000
    VISS_RAWFE_H3A_AFCOEF110    Unsigned / Readable,Writeable   0x00000000
    VISS_RAWFE_H3A_AFCOEF132    Unsigned / Readable,Writeable   0x00000000
    VISS_RAWFE_H3A_AFCOEF154    Unsigned / Readable,Writeable   0x00000000
    VISS_RAWFE_H3A_AFCOEF176    Unsigned / Readable,Writeable   0x00000000
    VISS_RAWFE_H3A_AFCOEF198    Unsigned / Readable,Writeable   0x00000000
    VISS_RAWFE_H3A_AFCOEF1010   Unsigned / Readable,Writeable   0x00000000
    VISS_RAWFE_H3A_AEWWIN1      Unsigned / Readable,Writeable   0x1103A71F
    VISS_RAWFE_H3A_AEWINSTART   Unsigned / Readable,Writeable   0x00100000
    VISS_RAWFE_H3A_AEWINBLK     Unsigned / Readable,Writeable   0x04360000
    VISS_RAWFE_H3A_AEWSUBWIN    Unsigned / Readable,Writeable   0x00000202
    VISS_RAWFE_H3A_AEWBUFST     Unsigned / Readable,Writeable   0x00000000
    VISS_RAWFE_H3A_AEWCFG       Unsigned / Readable,Writeable   0x00000200
    VISS_RAWFE_H3A_LINE_START   Unsigned / Readable,Writeable   0x00000000
    VISS_RAWFE_H3A_VFV_CFG1     Unsigned / Readable,Writeable   0x00000000
    VISS_RAWFE_H3A_VFV_CFG2     Unsigned / Readable,Writeable   0x00000000
    VISS_RAWFE_H3A_VFV_CFG3     Unsigned / Readable,Writeable   0x00000000
    VISS_RAWFE_H3A_VFV_CFG4     Unsigned / Readable,Writeable   0x00000000
    VISS_RAWFE_H3A_HVF_THR      Unsigned / Readable,Writeable   0x00000000
    VISS_RAWFE_H3A_ADVANCED     Unsigned / Readable,Writeable   0x00000000
    
    Note: In this case it can be observed that the BUSYAEWB bit in the VISS_RAWFE_H3A_PCR register is 1. And a system hang is observed.
    ---
    case b)
    
    VISS_RAWFE_H3A_PID          Unsigned / Readable,Writeable   0x4D010000
    VISS_RAWFE_H3A_PCR          Unsigned / Readable,Writeable   0xF80107F8
    VISS_RAWFE_H3A_AFPAX1       Unsigned / Readable,Writeable   0x00000000
    VISS_RAWFE_H3A_AFPAX2       Unsigned / Readable,Writeable   0x00000000
    VISS_RAWFE_H3A_AFPAXSTART   Unsigned / Readable,Writeable   0x00000000
    VISS_RAWFE_H3A_AFIIRSH      Unsigned / Readable,Writeable   0x00000000
    VISS_RAWFE_H3A_AFBUFST      Unsigned / Readable,Writeable   0x00000000
    VISS_RAWFE_H3A_AFCOEF010    Unsigned / Readable,Writeable   0x00000000
    VISS_RAWFE_H3A_AFCOEF032    Unsigned / Readable,Writeable   0x00000000
    VISS_RAWFE_H3A_AFCOEF054    Unsigned / Readable,Writeable   0x00000000
    VISS_RAWFE_H3A_AFCOEF076    Unsigned / Readable,Writeable   0x00000000
    VISS_RAWFE_H3A_AFCOEF098    Unsigned / Readable,Writeable   0x00000000
    VISS_RAWFE_H3A_AFCOEF0010   Unsigned / Readable,Writeable   0x00000000
    VISS_RAWFE_H3A_AFCOEF110    Unsigned / Readable,Writeable   0x00000000
    VISS_RAWFE_H3A_AFCOEF132    Unsigned / Readable,Writeable   0x00000000
    VISS_RAWFE_H3A_AFCOEF154    Unsigned / Readable,Writeable   0x00000000
    VISS_RAWFE_H3A_AFCOEF176    Unsigned / Readable,Writeable   0x00000000
    VISS_RAWFE_H3A_AFCOEF198    Unsigned / Readable,Writeable   0x00000000
    VISS_RAWFE_H3A_AFCOEF1010   Unsigned / Readable,Writeable   0x00000000
    VISS_RAWFE_H3A_AEWWIN1      Unsigned / Readable,Writeable   0x1103A71C
    VISS_RAWFE_H3A_AEWINSTART   Unsigned / Readable,Writeable   0x00100000
    VISS_RAWFE_H3A_AEWINBLK     Unsigned / Readable,Writeable   0x04360000
    VISS_RAWFE_H3A_AEWSUBWIN    Unsigned / Readable,Writeable   0x00000202
    VISS_RAWFE_H3A_AEWBUFST     Unsigned / Readable,Writeable   0x00000000
    VISS_RAWFE_H3A_AEWCFG       Unsigned / Readable,Writeable   0x00000200
    VISS_RAWFE_H3A_LINE_START   Unsigned / Readable,Writeable   0x00000000
    VISS_RAWFE_H3A_VFV_CFG1     Unsigned / Readable,Writeable   0x00000000
    VISS_RAWFE_H3A_VFV_CFG2     Unsigned / Readable,Writeable   0x00000000
    VISS_RAWFE_H3A_VFV_CFG3     Unsigned / Readable,Writeable   0x00000000
    VISS_RAWFE_H3A_VFV_CFG4     Unsigned / Readable,Writeable   0x00000000
    VISS_RAWFE_H3A_HVF_THR      Unsigned / Readable,Writeable   0x00000000
    VISS_RAWFE_H3A_ADVANCED     Unsigned / Readable,Writeable   0x00000000
    
    Note: In this case it can be observed that the BUSYAEWB bit in the VISS_RAWFE_H3A_PCR register is 0. Yet the system is hanging.
    ---
    case c)
    
    VISS_RAWFE_H3A_PID          Unsigned / Readable,Writeable   0x4D010000
    VISS_RAWFE_H3A_PCR          Unsigned / Readable,Writeable   0xF80107F8
    VISS_RAWFE_H3A_AFPAX1       Unsigned / Readable,Writeable   0x00000000
    VISS_RAWFE_H3A_AFPAX2       Unsigned / Readable,Writeable   0x00000000
    VISS_RAWFE_H3A_AFPAXSTART   Unsigned / Readable,Writeable   0x00000000
    VISS_RAWFE_H3A_AFIIRSH      Unsigned / Readable,Writeable   0x00000000
    VISS_RAWFE_H3A_AFBUFST      Unsigned / Readable,Writeable   0x00000000
    VISS_RAWFE_H3A_AFCOEF010    Unsigned / Readable,Writeable   0x00000000
    VISS_RAWFE_H3A_AFCOEF032    Unsigned / Readable,Writeable   0x00000000
    VISS_RAWFE_H3A_AFCOEF054    Unsigned / Readable,Writeable   0x00000000
    VISS_RAWFE_H3A_AFCOEF076    Unsigned / Readable,Writeable   0x00000000
    VISS_RAWFE_H3A_AFCOEF098    Unsigned / Readable,Writeable   0x00000000
    VISS_RAWFE_H3A_AFCOEF0010   Unsigned / Readable,Writeable   0x00000000
    VISS_RAWFE_H3A_AFCOEF110    Unsigned / Readable,Writeable   0x00000000
    VISS_RAWFE_H3A_AFCOEF132    Unsigned / Readable,Writeable   0x00000000
    VISS_RAWFE_H3A_AFCOEF154    Unsigned / Readable,Writeable   0x00000000
    VISS_RAWFE_H3A_AFCOEF176    Unsigned / Readable,Writeable   0x00000000
    VISS_RAWFE_H3A_AFCOEF198    Unsigned / Readable,Writeable   0x00000000
    VISS_RAWFE_H3A_AFCOEF1010   Unsigned / Readable,Writeable   0x00000000
    VISS_RAWFE_H3A_AEWWIN1      Unsigned / Readable,Writeable   0x1102671F
    VISS_RAWFE_H3A_AEWINSTART   Unsigned / Readable,Writeable   0x00100000
    VISS_RAWFE_H3A_AEWINBLK     Unsigned / Readable,Writeable   0x04360000
    VISS_RAWFE_H3A_AEWSUBWIN    Unsigned / Readable,Writeable   0x00000201
    VISS_RAWFE_H3A_AEWBUFST     Unsigned / Readable,Writeable   0x00000000
    VISS_RAWFE_H3A_AEWCFG       Unsigned / Readable,Writeable   0x00000200
    VISS_RAWFE_H3A_LINE_START   Unsigned / Readable,Writeable   0x00000000
    VISS_RAWFE_H3A_VFV_CFG1     Unsigned / Readable,Writeable   0x00000000
    VISS_RAWFE_H3A_VFV_CFG2     Unsigned / Readable,Writeable   0x00000000
    VISS_RAWFE_H3A_VFV_CFG3     Unsigned / Readable,Writeable   0x00000000
    VISS_RAWFE_H3A_VFV_CFG4     Unsigned / Readable,Writeable   0x00000000
    VISS_RAWFE_H3A_HVF_THR      Unsigned / Readable,Writeable   0x00000000
    VISS_RAWFE_H3A_ADVANCED     Unsigned / Readable,Writeable   0x00000000
    
    Note: No system hang is observed with these settings.
    

    Thank you for the support!

    Regards,
    Todor