Categories

{{ selectedCategory.name }}

{{ topic.Title }} {{ topic.Ddate | formatDate }}

{{ topic.Content }}

No topics found!

ARM Cortex-M0+: How to configure MTB trace?

05-Jul-2021
Solution:

1. Open Hardware menu / CPU Options / SoC tab

2. Select MTB as Trace Capture method from the drop-down menu.

3. Open SoC Advanced tab in the same dialog and configure Trace Buffer:

  • Buffer Size in kB
  • Buffer Address

Note that SRAM memory area available for the Trace Buffer should not be used by the application. 


3.  Open View menu / Analyzer.

4. Click Analyzer Configuration button (hammer icon) from the Analyzer toolbar. Application must be loaded and Debug session has to be established. 

5. Check Manual Configuration/Recorder configuration.

6. For additional settings press Configure.

MTB runs in a cyclic mode. When the option Stop Trace When Full (or Stop CPU When Full) is left unchecked, the MTB Trace Buffer will be continuously filled meaning once the buffer is full, the new trace information will overwrite the old trace information. 

MTB runs in a cyclic mode. When the option Stop Trace When Full (or Stop CPU When Full) is left unchecked, the MTB Trace Buffer will be continuously filled meaning once the buffer is full, the new trace information will overwrite the old trace information. 


7. Run the application by pressing Run button from the Debug menu toolbar or pressing F5 (shortcut).

8. Start recording by pressing Begin New Session button from the Analyzer toolbar. Refer to winIDEA Help for more information about Analyzer Recording. 

9. Recording stops if:

  • Application is stopped;
  • Recording is stopped in the Analyzer by clicking the Stop button;
  • The Trace Buffer is full (depends on the configuration).

Cortex-M0+ devices record changes in the program flow and store trace data packets in a configurable Trace Buffer located in On-Chip SRAM Memory. MTB trace provides simple instruction trace capability for advanced debug, however it does not provide time information (time stamps) and data trace capability. 


More resources: 

Was this answer helpful?

Sorry this article didn't answer your question, we'd love to hear how we can improve it.
Note: This form won't submit a case. We'll just use it to make this article better.

Similar topics

{{ topic.Title }} {{ topic.Ddate | formatDate }}

{{ topic.Content }}

No similar topics found!

Other topics in the same category

{{ topic.Title }} {{ topic.Ddate | formatDate }}

{{ topic.Content }}

No topics found!