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.

TMS320C6657: TMS320C6657

Part Number: TMS320C6657

Hi
How to configure serial port mcbsp hardware interrupt in cfg file

  • I have tested the MCBSP  and EDMA  with ping pong the example provided is not using MCBSP interrupt
    which is important for as.
    can you please provide with MCBSP interrupt
    since we are reusing code chip 6424.


  • Hi,

    As our expert handling this topic is on leave till Dec 15, the response will be delayed.

    Thanks.

  • as i understand, the event number for the mcbsp is found on the secondary event table 
    Table 6-27. CIC0 Event Inputs (Secondary Interrupts for C66x CorePacs) on page  109 
    in the file tms320c6657.pdf.
    in the file sprugw4a i found example, but in the linking process it fails on missing function 
    definition like CSL_intcGlobalEnable, CSL_intcGlobalNmiEnable, CSL_intcHwControl,
    CSL_intcInit, CSL_intcIOpen, CSL_intcPlugEventHandler
    this functions are define in the "ti/csl/src/intc/csl_intc.h" but the code is missing
    for sum of the function 

  • Hi, Thanks for additional data. As mentioned previously, our expert handling this topic is on leave till Dec 15, the response will be delayed.

    Thanks.

  • Doron,

    I am able to find both the declarations and definitions too.

    For example, for the function, "CSL_intcPlugEventHandler", it is given in csl_intcPlugEventHandler.c located at 

    C:\ti\pdk_c665x_2_0_16\packages\ti\csl\src\intc\

     

    CSL_Status CSL_intcPlugEventHandler (
        CSL_IntcHandle                        hIntc,
        const CSL_IntcEventHandlerRecord     *eventHandlerRecord
    )
    {
        volatile Uint16  i;
        CSL_Status status = (CSL_Status)CSL_ESYS_FAIL;
    
        CSL_dint();
    
        /* Search for free entry and plug in handler */
        
        for (i = 0; i < CSL_intcNumEvents; i++) {
            if (CSL_intcEventHandlerRecord_p[i].handler == CSL_INTC_EVTHANDLER_NONE){
                /* Plug in Handler */
                CSL_intcEventHandlerRecord_p[i].handler =
                    eventHandlerRecord->handler;
                CSL_intcEventHandlerRecord_p[i].arg =
                    eventHandlerRecord->arg;    
                /* Establish mapping */
                CSL_intcEventOffsetMap[hIntc->eventId] = (Int8)i;
                status = CSL_SOK;
                break;          
            }
        
        }
        CSL_rint();
        
        return status;
    }
    

    Regards

    Shankari G