cortex-m-stack 0.2.1

Stack usage tools for Cortex-M processors
Documentation
  • Coverage
  • 100%
    12 out of 12 items documented0 out of 10 items with examples
  • Size
  • Source code size: 23.23 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.12 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 25s Average build duration of successful builds.
  • all releases: 27s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • OpenDevicePartnership/cortex-m-stack
    5 1 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • Wassasin

cortex-m-stack

Methods for Cortex-M processors to determine stack size and how much of the stack has been or is being used.

Warning: this crate depends on the _stack_start and _stack_end symbols being set correctly. The cortex-m crates achieve this with their linker scripts, but the flip-link linker does not until PR #126 has landed.

Immediate stack usage

Use [current_stack_in_use] or [current_stack_free] to keep track of the memory usage at run-time.

Historical stack usage

First paint the stack using [repaint_stack] and then measure using [stack_painted] or [stack_painted_binary] to figure out how much stack was used between these two points.