thanks4opensource / buck50

STM32F103 logic analyzer and more
GNU General Public License v3.0
565 stars 57 forks source link

Can't configure trigger for edge triggering #12

Open nexysm opened 2 years ago

nexysm commented 2 years ago

I am using logic command in order to record a digital signal of about 19.2 kbaud and I want to set trigger in falling edge. I tried this: $1.50: trigger trigger 0=0xxxxxxx-1-0 st1 trigger 1=1xxxxxxx-0-1 st2

logic doesn't capture anything. I also tried to reverse the logic: $1.50: trigger trigger 0=1xxxxxxx-1-0 st1 trigger 1=0xxxxxxx-0-1 st2

Also, no 0 catches samples.

$1.50: trigger trigger 0=0xxxxxxx-0-1 st1 trigger 1=1xxxxxxx-1-0 st2

Captures the signal, but it complains about: Infinite triggers "pass" loop: 1 -> 1. In this case the digital signal is broken and not correctly shown as with the next command.

If I try with this trigger: trigger 0=0xxxxxxx-0-0 st1 I get samples and I see the signal.

However, trigger 0=1xxxxxxx-0-0 st1 doesn't trigger logic although I would expect the same behavior as before.

thanks4opensource commented 2 years ago

Trigger commands must be written one per line. Your second example, if entered correctly, should trigger on a falling edge on input PB11.

$1.50: trigger 0=1xxxxxxx-1-0 st1
$1.50: trigger 1=0xxxxxxx-0-1 st2

Enter a plain trigger command to list the current trigger states and confirm that they're what you want.

nexysm commented 2 years ago

For some reason, the text is shown in a single line, but I copied the output from a plain trigger. THe first and the second cases doesn't capture anything. Only the third one.