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.