data section in the firmware is not initialized after software reset
data section in the firmware is not initialized after software reset
after resetting the CPU with the command
echo 1 > /sys/class/mockturtle/trtl-0004-00/reset
echo 0 > /sys/class/mockturtle/trtl-0004-00/reset
the static variables remain unchanged,
for example if we reset the following code three times
int main() { static int a = 10; pp_printf("a = %d\n", a); a++; while(1); }
the output is
a = 10
a = 11
a = 12