Avex, I think the problem is here: unsigned char buff[512]; Please use unsigned char *buff; buff = NutHeapAlloc(512); Harald