Thanks for answering, I changed the fuses with the usbtiny programmer to Extended:FF, High:DE, Low:FF. The only difference from the standard is that I disabled the Brown out detection. I uploaded the sketch through the programmer, because otherwise I had the error of non existing bootloader. I searched around on how to install a new bootloader but I couldn't find any newbie guides. The sketch that I am trying to run was running perfectly previously so I doubt there is a bug.The sketch was made to test if an Arduino functions properly. It does that by doing four tests. One for conditional operations, arithmetical, SRAM and flash. Below are the two latter tests:
void run_flash_test()
{
for(int repeat=0;repeat<1000;repeat++)
{
//flash_check
for(unsigned char i=0;i<16;i++)
{
flash_check=(flash_check ^ svalue1) + svalue2;
flash_check=(flash_check<<((svalue3+flash_check)&7)) + (flash_check>>((svalue3+flash_check)&7)) + svalue4;
}
}
}
void run_sram_test()
{
for(int repeat=0;repeat<10;repeat++)
{
//SRAM check
for(int i=0;i<2405;i++)
{
value1=(value1+value2+value3+value4+sram_check)&1;
value2=(value2+value1+value3+value4+sram_check)&1+1;
value3=(value3+value1+value2+value4+sram_check)&1+2;
value4=(value4+value1+value2+value3+sram_check)&1+3;
sram_check=(sram_check<<1)+(sram_check>>7)+value1+value2+value3+value4;
}
}
}
The sketch was written by Svarichevsky Mikhail, not me.
When everything works fine, it outputs specific values for sram_check and flash_check on an LCD display. If the screen displays some other numbers, then something is not right. But in my case, nothing is displayed on the screen.