This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How large is the nrf51822's stack?

I'm concerned about stack overflow as I consider using a linear fit function which declares 5 local variables as floats and accepts 5 pointers.

5floats * 4B/float + 5pointers * 4B /pointer => 40B?

Parents Reply
  • I agree with Hoang, by default we declare 2KB of stack for application (in arm_startup_nrf51.s file) and it should be plenty of space for your variables. If you think the answer from Hoang is correct, please accept the answer.

Children
No Data