Skip to content

thread max_stack() returns always aligned stacksize-4 in rtos5 #5522

Closed
@kseverinkangas-zg

Description

@kseverinkangas-zg

Description

  • Type: Bug
  • Priority: Minor

Bug

Target
K64F

Toolchain:
ARM

Toolchain version:
5.06
mbed-cli version:
1.1.1

mbed-os sha:
78474a5

Expected behavior
Should return maximum stack memory usage to date

Actual behavior
Calling max_stack() returns: aligned stacksize-4
Steps to reproduce


Enhancement

Reason to enhance or problem with existing solution

Suggested enhancement
thread stack should be filled with the osRtxStackFillPattern pattern instead of hardcoded 0xE25A2EA5U.
rtx_thread.c already sets the first byte to osRtxStackMagicWord (0xE25A2EA5U) and the rest is filled with the osRtxStackFillPattern.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions