FreeRTOS Support Archive
The FreeRTOS support forum is used to obtain active support directly from Real
Time Engineers Ltd. In return for using our top quality software and services for
free, we request you play fair and do your bit to help others too! Sign up
to receive notifications of new support topics then help where you can.
This is a read only archive of threads posted to the FreeRTOS support forum.
The archive is updated every week, so will not always contain the very latest posts.
Use these archive pages to search previous posts. Use the Live FreeRTOS Forum
link to reply to a post, or start a new support thread.
[FreeRTOS Home] [Live FreeRTOS Forum] [FAQ] [Archive Top] [April 2005 Threads] Using the ATmega323 port for AT90s8515 Posted by Nobody/Anonymous on April 26, 2005 Hi, I'm a weird issue after porting to the AT90s8515. I have only modified portTOTAL_HEAP_SIZE ((set to 384) and portCOMPARE_MATCH_A_INTERRUPT_ENABLE (set to 0x40) from the ATmega323 port, to match the 8515 device.
All seems to work well when I just have one simple task that toggles a LED every 100mS. When I add another task to flash another LED using the same code (albiet in a new function) the first task seems works at an accelerated rate and the second task appears to execute once and then halts (only debugging by the LED's). I'm using the vTaskDelayUntil function to delay the task. All my variables are local to each function.
Any idea's?
I have been
RE: Using the ATmega323 port for AT90s8515 Posted by Nobody/Anonymous on April 26, 2005 Do you have any external RAM? I don't think the 8515 has enough internal RAM.
384 heap size is probably your problem. I suspect creating the second task is running out of ram.
RE: Using the ATmega323 port for AT90s8515 Posted by Nobody/Anonymous on April 26, 2005 I thought that may be the case but I have changed the portMINIMAL_STACK_SIZE from the original size (85) down to 30 and still the same issue. The 8515 has 512bytes Ram, a quick count means even with the Stack Size of 100 I should be able to fit three, even four tasks, if not using any global variables.
RE: Using the ATmega323 port for AT90s8515 Posted by Nobody/Anonymous on April 26, 2005 30 bytes of stack is unfortunately not enough to save the AVR context - so you will get stack corruption for sure.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|