Search

Technical Discussion Group Forum

This forum is provided for user discussion. While Beacon EmbeddedWorks support staff and engineers participate, Beacon EmbeddedWorks does not guarantee the accuracy of all information within in the Technical Discussion Group (TDG).

The "Articles" forums provide brief Articles written by Beacon EmbeddedWorks engineers that address the most frequently asked technical questions.

To receive email notifications when updates are posted for a Beacon EmbeddedWorks product download, please subscribe to the TDG Forum of interest.

TDG Forum

PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 17 Mar 2010 03:33 PM by  nanou
Not enough memory
 0 Replies
Sort:
You are not authorized to post a reply.
Author Messages
nanou
New Member
New Member
Posts:


--
17 Mar 2010 03:33 PM
    Hi,

    I am using a C6748 DSP and I don't have enough memory while using my code with a lot of functions.

    I have a memory error when using this function to create arrays:

    char *SngAlloc(int n, size_t sz)
    {
    char *c;
    if ((c = (char *)calloc(n, sz)) == NULL)
    printf("[SngAlloc] Not enough memory\n");
    return c;
    }

    and my memory sections are:

    SECTIONS
    {

    .text > L3_CBA_RAM ( shared RAM)
    .switch > L3_CBA_RAM
    .data > L3_CBA_RAM
    .cinit > L3_CBA_RAM
    .pinit > L3_CBA_RAM
    .bss > L3_CBA_RAM
    .far > DDR
    .const > L3_CBA_RAM
    .printf > L3_CBA_RAM
    .cio > L3_CBA_RAM
    .sysmem > L3_CBA_RAM
    .stack > L3_CBA_RAM
    }

    I tried to change these sections but still don't work, I don't know where(in which section) calloc variables are created and how can I optimise it. Thank you
    You are not authorized to post a reply.