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.

HWI interrupt on CCS5.5 and macros syntax

hi everyone

i am using CCS 5.5 to work on TMS320C6713. i used to work on CCS3.3 and moved to 5.5 recently... when i am implementing one of the examples that come with CCS3.3 (audio_app; a project that takes sound in and produce it out back using BIOS SWI), i copied the same code and did the same configuration for the TCF file.

what the code should do: input the voice from the codec (then McBSP) to a Buffer via EDMA, when buffer is full, the EDMA should trigger HWI 8, which will dispatch to SWI (named processBuffer)  and the interrupt the CPU will copy data in buffer to another Xmt buffer and another EDMA should get the data out to the codec.

the problem is that the Rcv Buffer is getting filled (indicating the EDMA is working) but HWI is never getting triggered, so SWI is not occurring as well.

another thing: CCS is giving me warnings about the syntax of some macros (such as EDMA), knowing that they are just copied and pasted from the CCS3.3 project files.. should there be any change in syntax?

  • aziz shammas said:
    CCS is giving me warnings about the syntax of some macros (such as EDMA), knowing that they are just copied and pasted from the CCS3.3 project files.. should there be any change in syntax?

    These warnings are likely coming from the Eclipse indexer and not the compiler tools.
    http://processors.wiki.ti.com/index.php/Projects_and_Build_Handbook_for_CCS#Indexer

    If the build (as seen in the CCS build console) completes without errors then you should be fine.

    aziz shammas said:
    the problem is that the Rcv Buffer is getting filled (indicating the EDMA is working) but HWI is never getting triggered, so SWI is not occurring as well.

    This question will be better answered by the experts in the C6000 device forum so I will move the thread there.

  • Aziz,

    Which version of BIOS are you using?

    With earlier versions of CCS and BIOS, there may have been more help for you in terms of getting all of the hardware connections made for your interrupts.

    Since you are getting the data transfers to complete, you will need to complete the path from the EDMA interrupt flag output to the DSP's interrupt input. You may be able to do this with the BIOS GUI or you may need to use manual settings in code.

    Online, our help that is directly for C6713 will most likely only use CCS 3.3. I doubt those have been updated. But you could look at the more recent workshops, such as for the C6748, and look at how they setup the EDMA and interrupts. The C6713 will be different, but the commands they introduce may help you with doing the manual connections.

    In CCSv5.5, you can halt the processor after you have had some of the transfers completed. With the memory or register views, you can look at the registers from the EDMA and the DSP to see which bits are set or not. This may help you find what needs to be done to get your system working.

    Regards,
    RandyP