I'm using NDK bundled with tirtos_sitara_2_00_01_23.
I'm testing http server, so I'm adding some web content as described in sprh524h.pdf:
void AddWebFiles(void)
{
efs_createfile("index.html", DEFAULT_SIZE, DEFAULT);
}
I cannot add any file, because efs_createfilecb always returns with no action performed, since mmAlloc always returns NULL:
void efs_createfilecb( char *name, INT32 length, UINT8 *pData,
EFSFUN pllDestroyFun, UINT32 MemMgrArg )
{
FILEHEADER *pfh;
/* Allocate the file header structure */
pfh = mmAlloc( sizeof(FILEHEADER) );
if( !pfh )
return;
mmAlloc (in /os/mem.c), performs this check at line 264 :
/* Here we didn't find a free or usable PIT, so we have an OOM */
/* error or a fatal error */
if( PITUsed != PITCount )
DbgPrintf(DBG_ERROR,"mmAlloc: PIT Used Sync");
goto MMA_ERROR;
looking at variables with debugger, PITUsed =0 and PITCount=0, so no error should come up.
There are no parentheses after if() statement, so if everything is ok BdgPrintf is not invoked, but gotoMMA_ERROR is always executed. Is this the expected behaviour?

