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.

CCS/TMS320C6670: CCS/TMS320C6670

Part Number: TMS320C6670

Tool/software: Code Composer Studio

Hi all,

I'm using CCS v5.0 for TMS320C6670 Evaluation Module 
On Board XDS560v2 Emulator
Hereby my problem is i'm allocating dynamic memory to some structure and size of structure is very big and is unable to give that much memory giving "Error in accessing address in memory".please help me in this.
Also one more thing i want to know how to change my current memory to "DDR3". 
Thanks,

Lalit Kumar,

Asmaitha Wireless.

  • Hi Lalit Kumar,

    I've forwarded this to the experts. Their feedback should be posted here.

    BR
    Tsvetolin Shulev
  • Hello,

    I don't know how familiar you are with building projects, and whether or not you are using BIOS.  In either case, you can examine the .map file to see how much memory is available for each type.  The sections seen here are defined in a .cmd file that the linker uses.  If using BIOS, sections are defined in BIOS's .cfg file.

    If your structure is very large, you may consider not allocating it dynamically, but rather statically.  For example, the .map file may contain this:

    MEMORY
    {
      DDR3:     origin = 0x08000000 length = 0x40000000
    }

    SECTIONS
    {
       mydata:       >   DDR3
    }

    Then in your code, you can statically allocate the struct like this:

    #pragma DATA_SECTION(mystruct, "mydata")
    uint32_t  mystruct[MY_STRUCT_SIZE];