xScope monitoring in AVB demo

Sub forums for various specialist XMOS applications. e.g. USB audio, motor control and robotics.
gavaz
Junior Member
Posts: 4
Joined: Thu Feb 21, 2013 5:17 pm

xScope monitoring in AVB demo

Post by gavaz »

Hi,
I am trying to monitor some network and audio traffic within the app_simple_avb_demo 5.2.0beta5 (I'm using the XR-AVB-LC-BRD board). I noticed that there is allready an initialization function of xScope inside the main.xc:

Code: Select all

void xscope_user_init(void)
{
  xscope_register_no_probes();
  // Enable XScope printing
  xscope_config_io(XSCOPE_IO_BASIC);
}
I suppose I have to replace the call of xscope_register_no_probes(); with something like

Code: Select all

	xscope_register (2 ,
			XSCOPE_CONTINUOUS ,  " Channel 1-2   Left OUT",   XSCOPE_UINT ,  "mV"
			XSCOPE_CONTINUOUS ,  " Channel 1-2   Right OUT",  XSCOPE_UINT ,  "mV"
	);
Afterwards I thought I should call something like this:

Code: Select all

  unsigned int inL = 0;
  p_din[0] :> inL;
  xscope_probe_data_pred (0 , inL);
In main.xc it is not possible to define anything else but channels and tiles. So I but the above code into audio_i2s.h where the audio processing is done. But on the one hand it is not possible to define any variables as it is in the main.xc and on the other hand I'm getting errors like "Xprobe error: unknown data type (235525286)"

Could somebody tell me where to place some xScope related code to get some debug information about network / audio / clock traffic?

Thanks!