Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

avrstkchk

avrstkchk is a simple static stack analyzer tool for AVR microcontrollers. It generates worst case stack usage and function call graph directly from assembly generated from .elf files. It can also detect recursion and simulate recursion call depth. Simulating ISR call depth will be added in future. Since it depends on assembly instructions, it only works for AVR platforms.

TODO

  • Detect recursion
  • Simulate recursion call depth
  • Calculate function call depth
  • Simulate ISR call depth
  • Build a GUI
  • Refactor code

Usage

Windows

  • Install Lua Binaries

    Add path of Lua Binaries folder to the environment variables

  • dump the .text section from your .elf file into an .asm file

    avr-objdump -d [path to your .elf] > something.asm
    
  • Run

    lua55 avrstkchk.lua [path to your asm file]
    

About

A simple static stack analyzer for AVR microcontrollers

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages