AVR128n 256n Port

dgheyl wrote on Wednesday, March 28, 2007:

FYI - I just ported FreeRTOS to the ATMega2561.  I had previously ported it to the ATMega128 and figured this port would be simple.  What I didn’t realize is that these newer processors push 3 bytes onto the stack for a Call subroutine.  That means that pxPortInitialiseStack() in port.c has to be modified to put an extra byte on the stack for each task. This took a bit of debugging since I hadn’t read the entire 449 page manual.


nobody wrote on Thursday, April 12, 2007:

Have you already modified the code? I´m having problems with my ATMEGA162, vTaskDelay and vTaskDelayUntil don´t work, the processor hangs itself. I think I have the same problem.

embeddedc wrote on Thursday, April 12, 2007:

See https://sourceforge.net/forum/message.php?msg_id=4256666 for a reply to your other post.