Skip to main content
Visitor II
July 9, 2006
Question

Maximum Stack usage while using Cosmic+ST7

  • July 9, 2006
  • 2 replies
  • 641 views
Posted on July 09, 2006 at 18:39

Maximum Stack usage while using Cosmic+ST7

    This topic has been closed for replies.

    2 replies

    y_gudekarAuthor
    Visitor II
    July 6, 2006
    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
    Visitor II
    July 9, 2006
    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)