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.

EVM-OMAP-L137/c6747: program flow goes to HWI_INT8 in EDMA ping pong test

Other Parts Discussed in Thread: CCSTUDIO, TMS320C6747

Hi,

I want to send audio data from mic to EVM board , then use a audio talkthrough(using ping pong buffers) and send from EVM board to another PC via ethernet cable (UDP protocol). For this, I am combining the

1.EDMA ping pong test (main.prj) in the directory :C:\Program Files\Texas Instruments\edma3_lld_01_11_03_01\examples\edma3_driver\evm6747\ccs3 (dma_ping_pong_test.c) with

2. Cfgdemo.prj from the path: C:\CCStudio_v3.3\ndk_2_0_0_0\packages\ti\ndk\example\network\cfgdemo\evm6747

I am using ccs v 4 and EVM OMAP L137/TMS320C6747 on Windows 7 PC

When I run the EDMA ping pong test, it passes successfully. But when I merge EDMA ping pong test with cfgdemo.prj(ie. I copy EDMA code and paste into cfgdemo code), then, the EDMA initialization passes successfully, but during data transfer via EDMA,  the program flow goes to HWI_INT8 and never returns back.

Do I need to go to the .tcf file (evmboard.tcf) and change the scheduling/HWI/HWI_8 from HWI_unused to _ECM_dispatch? (also do I need to change interrupt selection number?)

I have attached the projets herewith.1538.ToTI.zip

thanks for your attention.

  • No expert on this stuff. I believe calling edma3init() will setup the interrupt handler at runtime. I see that edma3init() is called from echo() but I can't find where echo() is called from. Must be one of those automagic tcf things. In my limited experience, the interrupt selection numbers should not be changed. All of TI's code seems to assume certain hard-coded values.

    Perhaps you should port the cfgdemo code into the ping pong project. The EDMA code seems more complicated of the two. I'd also suggect a line-by-line merging of the TCF files. I did that by editing the TCF file itself. I don't know if there is a more elegant way through CCS.

  • Hi Norma,

    Thank you for your reply. Yes it worked after porting cfgdemo into ping pong project and changing the .tcf file of ping pong project  line by line with the reference cfgdemo project

    Thanks a lot. I will mark this as verified answer!