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.

McASP driver for SYS/BIOS

Other Parts Discussed in Thread: SYSBIOS

Greetings,

I wonder if it is possible to directly McASP by C674x core of DM814x. According to the following post, McASP driver for SYS/BIOS was supposed to be available on early 2012.

http://e2e.ti.com/support/embedded/tirtos/f/355/t/146486.aspx

Could you please direct me to this library? How can I use it to send PCM data from DSP to McASP?

Thanks,
Mohammad

  • Hi Mohammad,

    From what I understand you are using the TI-RTOS (Formerly known as SYS/BIOS), not EZSDK, is that correct?

    http://www.ti.com/tool/sysbios

    If correct, please ask in our TI-RTOS forum:

    http://e2e.ti.com/support/embedded/tirtos/f/355.aspx

    Best regards,
    Pavel

  • Hi Pavel,

    I'm using DVR-RDK v 4.0, running Linux on the ARM and SYS/BIOS on the DSP of DM814x. I was able to embedded an audio deocder to the DSP core and send the PCM samples back to the ARM using RPE package. The PCM samples are sent to McASP using ALSA and a dummy driver.

    Now, In order to decrease ARM load and have more control over PCM samples, I need to have a direct connection from DSP core to McASP. Please let me know how to do this. Thank you very much

    Regards
    Mohammad

  • Mohammad,

    Mohammad Kiaei said:
    I need to have a direct connection from DSP core to McASP.

    In term of hardware, the DSP to McASP access physical addresses are documented in the DM814x datasheet:

    DSP access McASP on the below base (physical) address:

    1. McASP0 CFG port at 0x08038000, McASP0 Data port at 0x46000000

    2. McASP1 CFG port at 0x0803C000, McASP1 Data port at 0x46400000

    3. McASP2 CFG port at 0x08050000, McASP2 Data port at 0x46800000

    4. McASP3 CFG port at 0x0A1A2000, McASP3 Data port at 0x0A1A5000

    5. McASP4 CFG port at 0x0A1A8000, McASP4 Data port at 0x0A1AB000

    6. McASP5 CFG port at 0x0A1AE000, McASP5 Data port at 0x0A1B1000

    I have also found the below links, please have a look, might be in help:

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

    http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/717/t/186595.aspx

    http://e2e.ti.com/support/embedded/tirtos/f/355/t/146832.aspx

    Regards,
    Pavel

  • Pavel Botev said:

    Mohammad,

    I need to have a direct connection from DSP core to McASP.

    In term of hardware, the DSP to McASP access physical addresses are documented in the DM814x datasheet:

    DSP access McASP on the below base (physical) address:

    1. McASP0 CFG port at 0x08038000, McASP0 Data port at 0x46000000

    2. McASP1 CFG port at 0x0803C000, McASP1 Data port at 0x46400000

    3. McASP2 CFG port at 0x08050000, McASP2 Data port at 0x46800000

    4. McASP3 CFG port at 0x0A1A2000, McASP3 Data port at 0x0A1A5000

    5. McASP4 CFG port at 0x0A1A8000, McASP4 Data port at 0x0A1AB000

    6. McASP5 CFG port at 0x0A1AE000, McASP5 Data port at 0x0A1B1000

    I have also found the below links, please have a look, might be in help:

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

    http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/717/t/186595.aspx

    http://e2e.ti.com/support/embedded/tirtos/f/355/t/146832.aspx

    Regards,
    Pavel

    [/quote]


    Can you please list the data ports for EDMA programming?

    I'm using

    McASP0 EDMA port of 0x46002000

    McASP1 EDMA port of 0x46402000

    but I'm unsure of the correct ports for McASP2,3,4 and 5.


    Thanks,

    Andrew

    Ps Yes, I've tried reading the datasheet!

  • Andrew,

    The EDMA can access McASP through the DAT/Data/DMA port or through the CFG/Config port. See DM814x TRM, section 16.2.12 EDMA Event Support and the below wiki:

    http://processors.wiki.ti.com/index.php/McASP_Tips#Port_inconsistency

    The McASP DAT/Data/DMA port addresses are (extracted from the DM814x datasheet):

    McASP0 data port: 0x46000000

    McASP1 data port: 0x46400000

    McASP2 data port: 0x46800000

    McASP3 data port: 0x4A1A5000

    McASP4 data port: 0x4A1AB000

    McASP5 data port: 0x4A1B1000

    Regards,
    Pavel