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.

How to create a new memory section when using DSP/BIOS and Textual Configuration (Tconf) tool

I should allocate some part of RAM with fixed addresses for exchange buffer with FPGA. FPGA works as a master and put data to this memory and DM648 should pickup the data. Textual Configuration (Tconf) allows allocation of a new output sections in memory (that translates to linker MEMORY directive). But to use this allocated memory in the code using "#pragma DATA_SECTION" pragma I should create a named section by linker SECTION directive. And I can not find any way to create section using CCS graphical or textual configuration tools. I really do not want to use a pointer to point to this new MEMORY area. What can I do to create a SECTION using Configuration tool or maybe I can use some other memory management technique?

 

  • When you create a new memory in the graphical tool that corresponds to a definition inside a MEMORY directive in the linker command file.  If you'd like to create your own SECTIONS definition then you can create a second linker command file.  For example, let's say you use the graphical tool to partition your external memory into two pieces:  DDR and DDR_FPGA.  You can then create a linker command file like this:

    user_linker.cmd said:

    SECTIONS

    {

    mysect > DDR_FPGA

    }

    Then in your code you can do something like this:

    app.c said:

    #pragma DATA_SECTION(myarray, "mysect")

    int myarray[ARRAY_SIZE];