фьюзы теперь дефолтные как с завода.
Код: Выделить всё
avrdude -c usbasp -p m8 -U flash:w:main.hex:i
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.02s
avrdude: Device signature = 0x1e9307 (probably m8)
avrdude: NOTE: "flash" memory has been specified, an erase cycle will be performed
To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: reading input file "main.hex"
avrdude: writing flash (68 bytes):
Writing | ################################################## | 100% 1.04s
avrdude: 68 bytes of flash written
avrdude: verifying flash memory against main.hex:
avrdude: load data flash data from input file main.hex:
avrdude: input file main.hex contains 68 bytes
avrdude: reading on-chip flash data:
Reading | ################################################## | 100% 0.60s
avrdude: verifying ...
avrdude: 68 bytes of flash verified
avrdude: safemode: Fuses OK (E:FF, H:99, L:C1)
avrdude done. Thank you.
Код: Выделить всё
#include <avr/io.h>
int main( void )
{
DDRB=0b11111111;
PORTB=0b11111111;
while(1){
}
return 0;
}
Если порт паленый то как МК шьется? ведь MOSI MISO и SCK на порту B
заливаю эту же прошивку в другой МК на порту B лог 1.


