Hi, is there a short explanation how is the relationship between these stack parameters in the chibios/rt plugin's "Threads" window, pls ?
ch debugger plugin - stack info
Moderators: RoccoMarco, lbednarz, tfAteba
- Giovanni
- Site Admin
- Posts: 14895
- Joined: Wed May 27, 2009 8:48 am
- Has thanked: 1202 times
- Been thanked: 997 times
Re: ch debugger plugin - stack info
Address is the base address of the Working Area where the Thread structure is located.
Stack is the current position of the stack pointer.
StkLimit is the stack limit.
StkUnused is an estimation of the unused stack area.
Giovanni
Stack is the current position of the stack pointer.
StkLimit is the stack limit.
StkUnused is an estimation of the unused stack area.
Giovanni
Re: ch debugger plugin - stack info
So roughly
StkUnused ~ Stack - StkLimit
With main it gives a bigger StkUnused, though. Therefore I asked..
Thanks, p.
PS: the time values are in ms I guess.
StkUnused ~ Stack - StkLimit
With main it gives a bigger StkUnused, though. Therefore I asked..
Thanks, p.
PS: the time values are in ms I guess.
- Giovanni
- Site Admin
- Posts: 14895
- Joined: Wed May 27, 2009 8:48 am
- Has thanked: 1202 times
- Been thanked: 997 times
Re: ch debugger plugin - stack info
No, it is not so simple.
The unused stack is the area starting from StkLimit whose filler value has not been altered, regardless of the current stack position.
Giovanni
The unused stack is the area starting from StkLimit whose filler value has not been altered, regardless of the current stack position.
Giovanni