Voltage glitching with black box approach

Hi everyone,

I just have few question about the possibility of using the Voltage Glitch mode of the CW-Lite module.

By my side, I followed a tutorial to perform voltage glitching on a target and that was my configuration :
scope.glitch.clk_src = "clkgen"
scope.glitch.output = "glitch_only"
scope.glitch.trigger_src = "ext_single"

I don’t have any question about the “clk_src” because I already know the possibilities of using it.

However, I would like to know how to use the “trigger_src” on the “manual” mode. How to use this mode ?

On the same topic, I would like to know (in the case of voltage glitching) if it is possible to use a diferent “.output” mode ? What are those modes and their impact (or way to use) ?

Is it still possible to trigger the glitch with the parameters we initially used if I change my configuration (“width”, “ext_offset”, “repeat”, “offset”) or there is a diferent way ?

Thank you to your response !

Hi Theophile,
Most of these can be answered by reading help(scope.glitch).
When trigger_src = 'manual', the glitch is issued by calling scope.glitch.manual_trigger()

Is it still possible to trigger the glitch with the parameters we initially used if I change my configuration (“width”, “ext_offset”, “repeat”, “offset”) or there is a diferent way ?

I’m not sure I understand that question. If you have a particular initial glitch configuration and you alter any of those parameters, returning that altered parameter to its original value will bring you back to your initial configuration. Or did you mean something else? If so try explaining with code?

Jean-Pierre

Hi Jean-Pierre,

Thanks to your return it helped me a lot !

About my question as follow :

Is it still possible to trigger the glitch with the parameters we initially used if I change my configuration (“width”, “ext_offset”, “repeat”, “offset”) or there is a diferent way ?

My question wasn’t very clear… In fact, I was wondering if setting “trigger_src” to “manual” always involved using the injection parameters (“ext_offset”, “repeat”, “offset” and “width”) as in “ext_single” mode ?

Théophile

Yes, with the exception of ext_offset, which doesn’t have any effect when trigger_src = 'manual'.

Jean-Pierre

Thanks again to your last return Jean-pierre !

I just have a last question even if it’s not in the same topic as I asked until now… I followed the tutorial Glitching_third_party but I was wondering if with the few connections made, it’s still possible to flash target from JupyterNotebook (especially STM32X target) ?

Théophile

I haven’t run it myself, but based on the updated notebook, it looks like yes; have a look at:
jupyter/courses/faultapp1/LPC1114_Fuse_Bypass.ipynb

Jean-Pierre