I am using the CW lite with the XMEGA target and the CW5 jupyter notebooks.
I am using the basic capture loop as in the examples and I was already able to capture many traces.
Now, I started getting the following error: “WARNING:root:Trigger not found in ADC data. No data reported!”
Some more information:
The error only happens sometimes in the loop: In some iterations, scope.get_last_trace() returns nothing but in most iterations, scope.get_last_trace() returns a trace that looks like what I expected.
In all iterations, even the ones with the error, target.readOutput() returns a correct output
The error started occurring after I changed the c source file for the XMEGA. Many changes were made, but most notably, I added “#include <util/delay.h>” and use the function “_delay_us(100);” after the trigger. I do this to create an empty signal around my function, so that when I do the t-test, I can verify that there is no leakage in the signal-free zone. If i reduce the delay duration, the probability of the error also decreases.
Can you explain me why this error happens?
Is there a better way to create a pause after the trigger?