cancel
Showing results for 
Search instead for 
Did you mean: 

Maximum Stack usage while using Cosmic+ST7

y_gudekar
Associate II
Posted on July 09, 2006 at 18:39

Maximum Stack usage while using Cosmic+ST7

2 REPLIES 2
y_gudekar
Associate II
Posted on July 06, 2006 at 12:22

Hello,

* We are using ST72F561R9 with STVD7 IDE & Cosmic Compiler,

* We have used SCI & TimerA interrupts,

* Memory model used is Short stack

1. The map file shows the stack usage as Please see the attached file.

2. The default stack size of the MCU is 256 bytes.

3. Is 92 shown by the map file, a correct figure or the stack may go beyond that at any particular instance (Nested interrupt requests)?

4. We are using function pointers in our code. Will this affect the stack usage in a hidden way?

Regards,

Yogesh/Amit

________________

Attachments :

Part_of_map_file.txt : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I0DW&d=%2Fa%2F0X0000000bVZ%2FRp._eurOCABCZDHIHANdlzauBpIhUVRpp3pyo59_1H8&asPdf=false
luca239955_st
Associate III
Posted on July 09, 2006 at 18:39

Hi,

the stack size calculated by the compiler is a worst case scenario that takes into account everything apart from nested interrupts and recursive functions.

Regards,

Luca (Cosmic)