Atmel Studio中 percepio trace使用方法

RTOS


Usage of Percepio Trace

  1. Do settings

    • Project > properties(alt+F7) > Tool > interface > SWD (not JTAG)

    • Debug > percepio trace > trace settings
      here the Frequency is the freq of your MCU clock.

    trace setting

    • Debug > percepio trace > enable trace
  2. Do some test

    Start debuging and make sure Trace was enabled.

    trace_enable

    when the Debug started the Trace bar will look like below and were selectable.

    trace_started

    The Profiling contains sampling functions.

    trace_profiling

    • Profiling
      Then let us set a breakpoint and the chart of sampling and Control-Flow will be showen
      It shows the time of each function taken.

    trace_PC

    • Control-Flow

    trace_Flow

    • Data Plot
      Next let us look at Data Plot.
      In the code page select a variable and right click check add data plot
      and start Debug the Data Plot will show the figure of the variable.

    http://7xifyp.com1.z0.glb.clouddn.com/trace_DataPlot.png

    Here the Data Plot just can show the 1D variable, I’m looking for method to plot 1D array variable.
    If you know, please leave message to me.
    Thank you.

Reference:

  1. Atmel Studio Integrated Development Environment With FreeRTOS Awareness
  2. Debugging on Atmel Studio with Percepio Trace-youtube

TOP


Next: 2016末 Previous: 博客补全

You May Also Enjoy :

Hilbert Transform in ARM M4

Blog search

If you think my article can help you, please click on the ad to support me! ↓↓↓