VxWorks使用memPartInfoGet函数查看运行时内存状况,编译通过了,download失败,这是怎么回事?
#include "VxWorks.h"
#include "memLib.h"
#include "logLib.h"
void check(void)
{
MEM_PART_STATS tParStat;
memPartInfoGet(memSysPartId, &tParStat);
logMsg("it is ok %lu\n",tParStat.numBytesFree,0,0,0,0,0);
}