Hello All. I try to port FreRtos to atmega2560 WinAVR I modified this piece in port.c
usAddress = ( unsigned portSHORT ) pxCode;
*pxTopOfStack = ( portSTACK_TYPE ) ( usAddress & ( unsigned portSHORT ) 0x00ff ); pxTopOfStack--;usAddress >>= 8;
*pxTopOfStack = ( portSTACK_TYPE ) ( usAddress & ( unsigned portSHORT ) 0x00ff ); pxTopOfStack--;/* AND THE THIRD BYTE */ usAddress >>= 8;
*pxTopOfStack = ( portSTACK_TYPE ) ( usAddress & ( unsigned portSHORT ) 0x00ff ); pxTopOfStack--; /* end of AND THE THIRD BYTE */and changed timer interrupt settings to make interrupt work. But still it resets even if I have only Idle Hook Task with only one vTaskDelay function inside. Could somebody point what I had overlooked? Thanks Alex.