Hello everybody,
I have a doubt about stack in DSP/BIOS tasks.
In fact I'm currently using a DM642 based platform and I have these
doubts:
1) the stack size of task seems to be limited to about 32 KB. Is this
correct? Why is used this threshold?
2) how is allocated the stack? It seems that there is some hole in stack, but
I don't know which alignment strategies are adopted by the DSP/BIOS.
Is there someone that can provide me some more info and may be some document
that explain these concerns?
Thanks a lot Gio
DSP/BIOS stack doubts
Started by ●November 28, 2006
Reply by ●November 29, 20062006-11-29
Hello, Gio
--- Giovanni Parodi wrote:
> Hello everybody,
> I have a doubt about stack in DSP/BIOS tasks.
> In fact I'm currently using a DM642 based platform
> and I have these doubts:
> 1) the stack size of task seems to be limited to
> about 32 KB. Is this correct? Why is used this
> threshold?
> 2) how is allocated the stack? It seems that
> there is some hole in stack, but I don't know which
> alignment strategies are adopted by the DSP/BIOS.
> Is there someone that can provide me some more info
> and may be some document that explain these
> concerns?
If DSP/BIOS for DM642 is same with DSP/BIOS for C6711,
in which I am working, you will find stack setting for
TSK object in its Properties page (right mouse over
your TSK object and select Properties). Documents:
DSP/BIOS API Reference Guide and DSP/BIOS User's Guide.
--- Giovanni Parodi wrote:
> Hello everybody,
> I have a doubt about stack in DSP/BIOS tasks.
> In fact I'm currently using a DM642 based platform
> and I have these doubts:
> 1) the stack size of task seems to be limited to
> about 32 KB. Is this correct? Why is used this
> threshold?
> 2) how is allocated the stack? It seems that
> there is some hole in stack, but I don't know which
> alignment strategies are adopted by the DSP/BIOS.
> Is there someone that can provide me some more info
> and may be some document that explain these
> concerns?
If DSP/BIOS for DM642 is same with DSP/BIOS for C6711,
in which I am working, you will find stack setting for
TSK object in its Properties page (right mouse over
your TSK object and select Properties). Documents:
DSP/BIOS API Reference Guide and DSP/BIOS User's Guide.
Reply by ●December 11, 20062006-12-11
Today my program on C6713 wasn't working when I INCREASED task stack size (
from 4k to 16k ) !!
Anyone met/solved such problem ?
The reason is very difficult to trace because it somehow spoils UART communication, but I can't find how. I checked map files for projects with different stacks sizes - they are exactly the same except the stack size and all stuff placed after the stack which is moved forward.
And related question - if each task has its own stack, what is than "run-time stack" ?
Gregor
Anyone met/solved such problem ?
The reason is very difficult to trace because it somehow spoils UART communication, but I can't find how. I checked map files for projects with different stacks sizes - they are exactly the same except the stack size and all stuff placed after the stack which is moved forward.
And related question - if each task has its own stack, what is than "run-time stack" ?
Gregor