Hello
I was testing this challenge in the archive folder on the CWNano, the one with glitch1, glitch2.
I programed the STM with glitch1 function, I verified it’s programmed successfully, however I can’t seem to be able to glitch it and break it out of the loop and make it put 1234 to uarts, should this challenge work with CW nano.
It seems pretty basic, so I started with this challenge, but for some reason it’s not working.
Thanks.
void glitch1(void)
{
led_ok(1);
led_error(0);
//Some fake variable
volatile uint8_t a = 0;
putch('A');
//External trigger logic
trigger_high();
trigger_low();
//Should be an infinite loop
while(a != 2){
;
}
led_error(1);
led_error(1);
led_error(1);
led_error(1);
led_error(1);
led_error(1);
led_error(1);
led_error(1);
led_error(1);
uart_puts("1234");
led_error(1);
led_error(1);
led_error(1);
led_error(1);
led_error(1);
led_error(1);
led_error(1);
led_error(1);
//Several loops in order to try and prevent restarting
while(1){
;
}
while(1){
;
}
while(1){
;
}
while(1){
;
}
while(1){
;
}
for some reason glitching is not affecting the target board in any way, I just bought it so I don’t know if it’s something to do with the board , or I’m doing something wrong(even I’m just running through jupyter one by one.)
the image shows that after running the glitch the success count and reset count are always 0, and also , this is the output of scope.