Code Monkey home page Code Monkey logo

mbed-visual-memory-tracer's Introduction

Visual Memory Tracer for Mbed OS

Work in progress.

Enable your application

Your application needs memory tracing enabled. To enable this in your application:

  1. Set a high serial baud rate to avoid a large slowdown in your application.

  2. Add the visual memory tracer library to your project:

    $ mbed add https://github.com/janjongboom/mbed-visual-memory-tracer-lib
    
  3. Enable the following macros in your mbed_app.json:

    {
        "macros": [
            "MBED_MEM_TRACING_ENABLED",
            "MBED_HEAP_STATS_ENABLED=1"
        ]
    }
  4. Initialize the tracer library by placing initialization code in both mbed_main and main:

    #include "mbed.h"
    #include "mbed_vis_mem_tracer.h"
    
    extern "C" void mbed_main() {
        mbed_vismem_preinit();
    }
    
    int main() {
        mbed_vismem_init();
    
        // ... rest of your application
    }

Preferably use a separate UART port for the trace information.

Run the tracer

Set your serial port and baud rate in tracer.js, then run:

  1. npm install
  2. node tracer.js

To get the symbols from your application, run arm-none-eabi-objdump -S path/to/your.elf. Will automate this in the future.

mbed-visual-memory-tracer's People

Contributors

janjongboom avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.