![]() ![]() The XMOS xtimecomposer tools provide an interface to allow 3rd party and user applications to connect into the xscope server which runs on the XMOS xtag. The xtag debug adapter itself is powered by an xcore multicore microcontroller. The secret to this performance is a high speed USB 2.0 connection to the 4-wire xconnect port using the xtag debug adapter. Data rates of 1MSPS are possible allowing the multiple variables from inner control loops to be captured or high bit rate audio streams to be analyzed. xscope provides high level information at very high performance. This is exactly what xscope provides real-time, in-circuit instrumentation of user specified data probes, without affecting your design or device operation. It is also desirable to observe high level and relevant data, such as state variables, input/output values in control loops or even directly observe data streams. The answer is low intrusive data collection, which must allow the system to run without changing its behavior or introducing timing effects. This means debugging in circuit requires a way of monitoring the system and exporting data without affecting the code you are observing. Single stepping using a debugger may have little value since hard real-time systems break once a deadline has been missed. Once a system is subject to real-time stimuli it can be difficult to track down causes of unexpected behavior. 1ΔΆ 1 Overview 1.1 Introduction Debugging in circuit can be challenging. The XMOS tools manual contains information regarding the use of xscope and how to use it via code running on an xcore processor Copyright 2014 XMOS Ltd. ![]() For descriptions of XMOS related terms found in this document please see the XMOS Glossary 1. Documentation related to these aspects which are not specific to this application note are linked to in the References appendix. Prerequisites This document assumes familiarity with the XMOS xcore architecture, the XMOS tool chain and the xc language. It can also be run on the XMOS simulator if required. Required tools and libraries xtimecomposer Tools - Version 13.2 Required hardware This application note is designed to run on any XMOS xcore multicore microcontroller The example code provided with the application has been implemented and tested on the XMOS startkit but there is no dependancy on this board and it can be modified to run on any development board which has xscope support available. Example code for both the xcore and host system is provided to enable an end-to-end demonstration of this capability. This allows communication to and from the xcore processor via a simple API and socket connection which can be enabled. The xtimecomposer development tools provide an xscope endpoint library which can be used to interface a custom application into the xscope server provided. The code associated with this application note demonstrates a simple console application running on a host PC which can communicate to the xcore multicore microcontroller via the xscope system. 1 Application Note: AN00152 xscope - Bi-Directional Endpoint This application note shows how to create a simple example which uses the XMOS xscope application trace system to provide bi-directional communication with a custom application running on a host machine.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |