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
  • Did you real what i wrote?
    Have you looked at the actual API?
    If you use user-supplied stacks when you start a thread, then you can see the stack as just any buffer. So if you know that the thread has ended, then you can start a new thread and supply the exact same stack.

    And if you have multiple threads that needs same-size stacks, then RTX have memory functions supporting allocation/release of these memory blocks similar to how you multiple times assigns data to specific indices of an array.

    Start experimenting with the API instead of just asking questions. We just can't answer your questions without you understanding the API. And if you understand the API, then the reasons for most of your questions will go a way.

    Programming is about combining LEGO pieces in different patterns. No one can describe all possible patterns which means that developers needs to be creative. The RTX manual do describe the individual LEGO pieces you have available.

Reply
  • Did you real what i wrote?
    Have you looked at the actual API?
    If you use user-supplied stacks when you start a thread, then you can see the stack as just any buffer. So if you know that the thread has ended, then you can start a new thread and supply the exact same stack.

    And if you have multiple threads that needs same-size stacks, then RTX have memory functions supporting allocation/release of these memory blocks similar to how you multiple times assigns data to specific indices of an array.

    Start experimenting with the API instead of just asking questions. We just can't answer your questions without you understanding the API. And if you understand the API, then the reasons for most of your questions will go a way.

    Programming is about combining LEGO pieces in different patterns. No one can describe all possible patterns which means that developers needs to be creative. The RTX manual do describe the individual LEGO pieces you have available.

Children