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.

Dma Channel Map does not exist in device simulator c6678

hi

q1)

I dont know is it true that Dma Channel Map does not exist on simulator.

nothing given in user guide of c6678 related to this DCHMAP ( or may be i am looking at wrong replace )

http://processors.wiki.ti.com/index.php/TCI6616/C6670/TCI6608/C6678/TCI6618_Device_simulator_User_Guide

q2)

how much sense does it make while allocating resource through resource manager.

q3)

I am using direct call from framework component to allocate resource

RMAN_assignResources((IALG_Handle)codecHandle, (IRES_Fxns*)resFxns, scratchId);

Which paramater decide whether i have to use dma or go in legacy way

Thanks

anshul

  • Hi Anshul,

    if you are using simulator you should use memcpy instead of DMA transfers. Which platform are you using in your simulator? also do you have source code or codec libraries? if it is the first option please check if there is any compilation switch for choosing between memcpy and DMA.

    Thank you,

    Paula

  • Hi

    do u mean that i need to check omly decoder sample example on simulator

    thanks

    anshul

  • Anshul,

    The Enhanced Direct Memory Access (EDMA3) Controller User Guide has detailed information on DCHMAP register.

    http://processors.wiki.ti.com/index.php/Framework_Components_RMAN_Users_Guide

    In terms of using DMA channels, if you are using the Framework Components, then you should stick with RMAN_assignResources for getting any of the resources including any of the DMA channels.

    Xiaohui

  • Hi Anshul, could you give us a little bit of background on your end goal (codec, platform, product). About your previously DMA + simulator question, the idea on enabling DMA on simulator is for profiling?. If so do you have the option to use an EVM?. Thanks for your help, trying to understand better your use case and goals so we can point you out to the right sources of information.

    Paula

  • hi paula

    end goal :  run sv04 on simulator.

    codec : h264hpdec or h264hpenc

    platform: c6678 (for time being)

    product : ??( in what sense)

    DMA + simulator was not required for profiling, it was just because sv04 was using some dma and getting stuck over there.

    and i wanted to know whether dma exist in simulator or not. if still any one know "does dma exist on simulator" please answer me

    I dont  have evm but i can borrow it from my friend.

    use_case:: video tanscoding from cctv camera input and low resolution output to my mobile.  In college cameras are already installed so

    and there are not lot of option in codecs and raw video is very big to distribute it  using wif.

    i cant use videotranscode example , that thing is not for dspc8681.

    Hi

    i got answer of q2, that i should stick RMAN_assignResources

    i have not read that documented but i feel like that will have my answer of q3

    anyway thanks i have not marked ur reply as answered, waiting for answer of q1

    thanks

    anshul

  • Anshul,

    Regarding q1, you need to use C6678 Functional Simulator.  It supports EDMA and most of the peripherals on the device.  You should be able to access all the EDMA registers such as checking their contents through the simulator.  As I mentioned in the previous post, all the EDMA related information including its registers such as their physical addresses can be found in EDMA user guide.

    Xiaohui

  • Anshul,

    One debugging tip for sv04, you can desable the optimization flags in dsp/mkrel/c64x/makedefs.mk  

    #PC-- commented for dubugging

    #C_OPT_FLAGS  = -mt -mw -os -o3 --optimize_with_debug

    Then, do a "make clean" and "make sv04" (you can use make sv04 "FLAT=YES"). This will permit you to step into sv04 framework code.

    If you are still having issues debugging sv04 please let us know.

    Thanks,

    Paula