In certain cases, some glitch width/offset settings lead to a “double pulse”.
This happens when either:
Offset + Width > 50
(Width < 0) && (0 < Offset < abs(Width))
Since I’m using the Glitch Signal (HS2, “glitch only”) to trigger external equipment, I have to take care to avoid these special cases. (In fact, it took me quite a while to figure out what’s wrong when I saw the double pulses.)
So it would be nice to have some extra checks that throw a warning if the user is running in such problems.
Did anyone else run into this?
What method do you recommend for triggering external equipment with the CW-Lite?
Since I want to use the ext_offset and repeat settings, I guess I can’t use the actual trigger output, right?
By the way, I’ve noticed that whenever I change the glitch width/offset settings, I happen to see a long train of glitch pulses on HS2. Is there a way to prevent this?
This is a known issue that popped up when we fixed another bug related to glitch generation: https://github.com/newaetech/chipwhisperer/issues/261. It’s possible that the train of glitches is also related to this update. Thanks for the suggesting regarding the warning, I’ll talk to Colin about implementing it
You should be able to trigger external equipment using the glitch port on the ChipWhisperer if you want to keep HS2 open, which will also allow you to use the ext_offset and repeat settings. Keep in mind that the glitch port is open drain.
EDIT: Alright, I think I’ve tracked down what’s happening. I believe this is a bug with the glitch module that was recently fixed. There’s a separate issue with large negative offsets (reported as <-45, was <-49 on my CWLite) that was introduced in the new glitch module. Updating to the newest release should solve your issue
I’m going to get some code to you than calculate a hash of the bitstream being loaded so we can know for sure if the correct bitstream is being loaded. In the meantime can you try performing a glitch at an offset of -49. IIRC width can be positive or negative here, but probably best to try both).
Also, I don’t think it affected anything here, but you have the HP voltage glitch on as well (scope.io.glitch_hp = True)
Ah, I overlooked that on your last message.
I just tried it - and it works. Also, I can’t even reproduce the issue now.
I’m not sure what happened.
I did update the FW before the weekend, but I did reboot the PC during the weekend.
My best guess is that some old code wasn’t updated directly after the git pull and required a reboot.
I’ll keep on experimenting, but I’m pretty sure it’s fixed now.