[riot-users] Stack Size

Robert Hartung hartung at ibr.cs.tu-bs.de
Fri Jan 26 08:49:21 CET 2018


Oh. Code at [1]

[1]
https://gitlab.ibr.cs.tu-bs.de/hartung/ieee802154-radio-eval/blob/master/software/main.c

On 26.01.2018 08:43, Robert Hartung wrote:
> Good morning everyone,
> 
> ps says:
> 
> 2018-01-26 08:39:52,570 - INFO # 	pid | name                 | state
> Q | pri | stack  ( used) | base addr  | current
> 2018-01-26 08:39:52,618 - INFO # 	  1 | idle                 | pending
> Q |  15 |    128 (   74) |     0x2252 |     0x228f
> 2018-01-26 08:39:52,666 - INFO # 	  2 | main                 | running
> Q |   7 |    512 (  316) |     0x22d2 |     0x23e2
> 2018-01-26 08:39:52,714 - INFO # 	  3 | at86rf2xx            | bl rx
> _ |   2 |    256 (  230) |     0x27fe |     0x285f
> 2018-01-26 08:39:52,762 - INFO # 	  4 | dump_thread          | bl rx
> _ |   8 |   1279 ( 1277) |     0x1ce5 |     0x2004
> 2018-01-26 08:39:52,811 - INFO # 	  5 | send_thread          | bl rx
> _ |   9 |   1279 ( 1277) |     0x17e6 |     0x1b73
> 2018-01-26 08:39:52,842 - INFO # 	    | SUM                  |
>  |     |   3454 ( 3174)
> 
> 
> If I double the stack size for dump_thread and send_thread then again
> the used size indicated only two free bytes.
> 
> Is there a quick answer to it? Why is the used stack size growing right
> after the init, if I increase it? Does it indicate that the stack is too
> small anyway?
> 
> Thanks,
> Robert
> 

-- 
Robert Hartung, M.Sc.

Technische Universität Braunschweig
Institut für Betriebssysteme und Rechnerverbund
Mühlenpfordtstr. 23, Raum 115
38106 Braunschweig

Fon: +49 (531) 391 - 3264
Fax: +49 (531) 391 - 5936
E-Mail: hartung at ibr.cs.tu-bs.de


More information about the users mailing list