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.

TDA3MV: Interrupts for Dual Clock Comparator (DCC) on TDA3MV

Part Number: TDA3MV
Other Parts Discussed in Thread: SYSBIOS

Hello,

I have configured Dual Clock Comparator (DCC) on TDA3x to generate DCCx_IRQ_ERROR (x:1-7) in case of clock drifts which are connected to
 IRQ_CROSSBAR_234 (and so forth) and are not mapped by default to any device INTC. I have mapped them to IPU_IRQ_60  (and so forth) on my system. 

Using the sysbios apis the hwi is configured. Code snipnet as below


Hwi_Params hwiParams;
Hwi_Params_init(&hwiParams);
hwiParams.enableInt = false;
hwiParams.maskSetting = Hwi_MaskingOption_SELF;

m_hwiHandle = Hwi_create(60, &isr, &hwiParams, NULL);

UINT32 isNotEnabled = Hwi_enableInterrupt(60);

Issue : The issue which I encounter is the Hwi_enableInterrupt does not enable the interrupt and the API always return 1 when the application is loaded from the flash. But, in debug mode (using JTAG and GEL files), the interrupt is ALWAYS enabled.

Question: Do we need to map DCCx_IRQ_ERROR interrupts through Error Signaling Module (ESM) module as given in SPRAC27 or can it be used as a standalone?

Thanks

Richard






 

  • Hi Richard,

        What software are you using?
    To get the DCC interrupt to IPU, you need to do following:

    1. Enable interrupt at the DCC module
    2. Configure the cross-bar
    3. Enable/configure interrupt line towards the core(IPU)

    Once you have taken care of the above, you should be able to get the interrupt.

    Can you please try to step through the code when booting from the flash and see why 'Hwi_enableInterrupt()' is returning '1'? 

    You can add a wait loop in the application and boot it from flash. Let the application run for a few seconds and then connect to the core through CCS. While doing so, please remove any gel files loaded.

    Thanks & Regards,
    Vivek Dhande.

    Texas Instruments (India) Pvt Ltd