cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Explorer
Explorer
327 Views
Registered: ‎02-18-2013

ILA cross trigger doesn´t work

I have a design with an AXI4Lite Bus and an ILA attached to that bus:

Design.png

The configuration of the ILA looks like this:

ILA.png

I generate a bitstream, export the bitstream to the SDK and write my application software:

#include "xgpio.h"
#include "xparameters.h"

u32 Counter = 0x06;
u32 Status = XST_SUCCESS;

XGpio Gpio;

int main()
{
	Status = XGpio_Initialize(&Gpio, XPAR_LED_DEVICE_ID);
	if(Status != XST_SUCCESS)
	{
		xil_printf("GPIO Initialization failed: %lu\r\n", Status);
		return XST_FAILURE;
	}

	while(1)
	{
		XGpio_DiscreteWrite(&Gpio, 1, Counter);
		for(u32 Delay = 0; Delay < 0xFFFFFF; Delay++);
		XGpio_DiscreteClear(&Gpio, 1, Counter);
		for(u32 Delay = 0; Delay < 0xFFFFFF; Delay++);

		if(Counter < 0x0F)
		{
			Counter++;
		}
		else
		{
			Counter = 0x00;
		}

		xil_printf("Counter: %lu\n\r", Counter);
	}

	return 0;
}

Now I create a new debug setting:

Setting.png

I launch this debug settings and wait for the debugger to jump at the entry point at "main". Now I open the hardware manager in Vivado, connect to my target, add the signals to the ILA and change the trigger mode to "TRIG_IN_ONLY" :

ILA_Vivado.png

Now the ILA got armed by clicking "Run trigger for this ILA core" and after that step I resume my application (F8) to jump to a breakpoint at

XGpio_DiscreteWrite(&Gpio, 1, Counter);

but my ILA doesn´t trigger. The status is "Waiting for Trigger".

So what is wrong with my settings?

 

0 Kudos
1 Reply
Highlighted
Explorer
Explorer
316 Views
Registered: ‎02-18-2013

Re: ILA cross trigger doesn´t work

Okay I think I found the solution for the problem. It seems that I have to switch the Cross Trigger settings in my debug configuration.
Why do I have to set "CPUDBGACK0" as input and the "FTM trigger" as output? I want to hold the ILA when a break point is hit. So I assumed that the signals should go from the CPU to the ILA and not from the ILA to the CPU.

Can someone explain this to me?

Thank you!

0 Kudos