This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

RTX stack size

The manual says:
"Stack size used by RTX kernel is configured in STARTUP.S. Minimum size is 128 bytes, however 256 bytes is recommended when interrupts are used."
However the map file says:
" 144 26 32 8 2128 2829 rtx_config.o 64 26 288 0 2128 720 startup_stm32f10x_md_vl.o"
This shows that stack size is assigned twice:
1. 2128 by rtx_config.o
2. 2128 by startup_stm32f10x_md_vl.o
What is wrong?
donald

Parents
  • Thanks for your patience.
    However my questions don't touch stack space in general, as you answered.
    I'm only concerned about initial stack defined in startup.s:
    Stack_Size EQU 0x0000100

    AREA STACK, NOINIT, READWRITE, ALIGN=3
    Stack_Mem SPACE Stack_Size

    Where is Stack_Mem located?
    Could You please point me a reference to the manual, where API explains
    how to get the address (from C/C++ perspective) to assembly allocated initial stack ( in startup.s)?
    All other questions which I've asked are side effects of this main issue.
    donald

Reply
  • Thanks for your patience.
    However my questions don't touch stack space in general, as you answered.
    I'm only concerned about initial stack defined in startup.s:
    Stack_Size EQU 0x0000100

    AREA STACK, NOINIT, READWRITE, ALIGN=3
    Stack_Mem SPACE Stack_Size

    Where is Stack_Mem located?
    Could You please point me a reference to the manual, where API explains
    how to get the address (from C/C++ perspective) to assembly allocated initial stack ( in startup.s)?
    All other questions which I've asked are side effects of this main issue.
    donald

Children