Fault 2_1 Lab: ADC clipping error

Hello!

Sorry if this is mentioned already in another topic. I couldn’t find it with a quick search.

I recently got a CW Husky and I am going though the jupyter labs to get my bearings with the device. I am working on completing lab ‘Fault 2_1 = Introduction to Voltage Glitching’ and when I run the glitching loop including in the lab, my CW Husky will run the script for a minute and then the ADC and Glitch lights will start blinking together. This doesn’t seem to affect the script running at the moment, but we don’t get any more resets.

This is the output of scope.errors:
sam_errors = False
sam_led_setting = Default
XADC errors = False
ADC errors = ADC clipped,
extclk error = False
trace errors = False

I have tried lowering the gain with scope.gain.gain and setting it to values such as 10 or 5 instead of the default 22, but that doesn’t seem to fix it.

Any advice would be appreciated! This is all so new haha. Thanks again!

In this lab you’re not collecting power trace, so ADC clipping can be ignored. “ADC clipped” should be considered informative, and not necessarily an error. There are some cases where you absolutely want to avoid it, and others like this one where it doesn’t matter.

You can disable ADC level errors with:

scope.adc.lo_gain_errors_disabled = True
scope.adc.clip_errors_disabled = True
1 Like

Gotcha. That makes a little more sense. I ran the lab again and just decided to wait and we got some resets and a success. Thanks for helping! I’ll keep that in mind now!