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.

RTOS/66AK2H14: OUT OF MEMORY (Pointer point to 0x000000 address)

Part Number: 66AK2H14

Tool/software: TI-RTOS

Hi,

Hope you are doing good.

I want to initialize a memory using Malloc but i get NULL pointer (0x0000000).

pBandState->pInputPDWS->pPDW = (In_PDW*)malloc(sizeof(In_PDW) * 2048);

where In_PDW is a structure of 24 bytes 

typedef struct In_PDW 

{

UWord8 ANT;
UWord8 POP;
UWord8 LPI;
UWord8 LPI_valid;
UWord8 Blanking;
UWord8 ST;
UWord8 Filter_Applied;
UWord8 NASA_Secrets;

UWord16 RF,PW;
UWord8 RF_V;
UWord8 OV;
UWord8 BC;
UWord8 N;

UWord64 TOA;
UWord16 Pa,Pb,Pc,Pd;
}In_PDW;

please guide me to solve this issue.

  • We're looking into this.

    Best Regards,
    Yordan
  • YOur post is missing lot of key information required to provide any kind of analysis or debug. Please take some time to provide details of your implementation.

    Are you implementing this on the DSP or the ARM. Is this your custom software or you are developing code using TI PRocessor SDK
    You selected RTOS. Are you using TI RTOS or is this bare-metal. What compiler are you using ? Have you allocated any Heap or indicated to the compiler which memory section it should allocate the heap. Attach source files, linker command file ,compiler settings.

    If you are using TI RTOS, you will find Sasha`a response here quite helpful:
    e2e.ti.com/.../204052

    Regards,
    Rahul
  • Hi Rahul,

    Hope you are doing good.

    1) Well, I am implementing it on DSP Core. I have applied same thing on ARM and it works.

    2) I am using TI Processor SDK and using TI RTOS

    3) i am using Code Composer Studio 6.1  

    4) I didnt get and i dont know how to allocate any heap or indicate to complier about memory section, i have noidea in this regard please guide me os hsare any document if possible.

    5) I will share the compiler setting in next comment.

    Thank You.

  • Compiler Settings: