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.

TDA4VM: Enhanced Capture Module (ECAP) - Init Procedure

Part Number: TDA4VM

Hi,

We are using ARM72 (QNX) on TDA4V processor. We need to use one of ECAP modules available, but we have problems accessing ECAP registers, the system crashes.

Is there any init sequence that must be executed before using ECAP? Any help regarding this issues will be nice.

Best Regards,

Stefan.

  • Hi Stefan,

    There are a few reasons a module's registers would not be accessible.   In the case of the ECAP module the most likely candidate is the module has not been enabled.

    From QNX command line a quick test to reproduce that ECAP0 timestamp counter register can not be accessed in the default PSDKQA 7.0 configuration:

    in32 0x03100000

    ERROR:   Unhandled External Abort received on 0x80000000 at EL3!

    To address this added the below code to the sciclient test application, to enable ECAP0 module state, and rebuilt:

    status = Sciclient_pmSetModuleState(TISCI_DEV_ECAP0,
            TISCI_MSG_VALUE_DEVICE_SW_STATE_ON,
            TISCI_MSG_FLAG_AOP,
            SCICLIENT_SERVICE_WAIT_FOREVER);

     When running the sample application which enables ECAP0 module state, prior to the register read, the register read passes:

    in32 0x03100000

    0x03100000 : 0x00000000

    Regards,

    kb