nobody wrote on Monday, April 03, 2006:
I have an ATMega128 which has 32k of external RAM; I use the GCC port of FreeRTOS using winAVR 2006*.
I’d really like to use the XRAM for things like queues etc, as well as be able to use pvPortMalloc routines to allocate memory in this region. I believe I can do this relatively easily by using the __heap_start and __heap_end linker directives. However, I would like the stacks to remain in the internal memory of the AVR. Is there an easy way for FreeRTOS to handle this? Would I have to generate an extra pvPortMalloc routine to allocate memory in the external memory (pvPortXRAMMalloc())? Or will FreeRTOS automatically allocate the stacks in the internal memory and the rest of the heap in the external memory?
Matt van de Werken.