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.

Starterware MCASP example Problem

I am using Starterware C6748_StarterWare_1_20_03_03 and CCS v4.2.

I am using MCASP example of starterware the problem is that when i perform processing on audio then delay will occur and it will distort the audio.

I am using C6748 at 300MHz .

Before using this DSP i use C6713 at 225MHz and perform same processing on audio and on this processor it will work fine.

So now what is the problem with C6748 that it will slow down the processing i think edma3 mcasp and codec and initialized correctly.

If anyone has a answer please reply.

  • Check your memory allocation and cache configuration.

    Weiwei Zheng

  • Thanks for reply.

    How can i check the memory and cache .

  • Post your .cmd file and the content of your l1cfg,l2cfg registers here.

  • // ============================================================================
    // Linker Command File for Linking c674 DSP Programs
    //
    // These linker options are for command line linking only. For IDE linking,
    // you should set your linker options in Project Properties.
    // -c Link Using C Conventions
    // -stack 0x1000 Software Stack Size
    // -heap 0x1000 Heap Area Size
    // ===========================================================================
    -stack 0x1000
    -heap 0x1000

    // ============================================================================
    // Specify the System Memory Map
    // ============================================================================
    MEMORY
    {
    L1P: o = 0x11E00000 l = 0x00008000
    L1D: o = 0x11F00000 l = 0x00008000
    L2: o = 0x11800000 l = 0x00040000
    DDR2: o = 0xC0000000 l = 0x08000000
    }

    // ============================================================================
    // Specify the Sections Allocation into Memory
    // ============================================================================
    SECTIONS
    {
    .cinit > DDR2 // Initialization Tables
    .pinit > DDR2 // Constructor Tables
    .init_array > DDR2 //
    .binit > DDR2 // Boot Tables
    .const > DDR2 // Constant Data
    .switch > DDR2 // Jump Tables
    .text > DDR2 // Executable Code
    .text:_c_int00: align=1024 > DDR2 // Entrypoint

    GROUP (NEARDP_DATA) // group near data
    {
    .neardata
    .rodata
    .bss // note: removed fill = 0
    } > DDR2
    .far: fill = 0x0, load > DDR2 // Far Global & Static Variables
    .fardata > DDR2 // Far RW Data
    .stack > DDR2 // Software System Stack
    .sysmem > DDR2 // Dynamic Memory Allocation Area

    .cio > DDR2 // C I/O Buffer
    .vecs > DDR2 // Interrupt Vectors
    }

    This is my .cmd file and i dont know where is l1cfg,l2cfg registers.

  • I think  you may have not set your cache properly.  TMS320C674x DSP Megamodule Reference Guide may be helpful。