Help with LED blinking (beginner's tutorial)

I followed the Beginning Embedded Electronics tutorial and it seems like my hex file was successfully transferred to my ATMEGA8:

conrad@conrad-laptop:~/Desktop/AVR/blink_1MHz.zip_FILES$ avrdude -p m8 -c avrispmkII -P usb -Uflash:w:blink_1MHz.hex -B 10

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.01s

avrdude: Device signature = 0x1e9307

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 “blink_1MHz.hex”

avrdude: input file blink_1MHz.hex auto detected as Intel Hex

avrdude: writing flash (248 bytes):

Writing | ################################################## | 100% 0.15s

avrdude: 248 bytes of flash written

avrdude: verifying flash memory against blink_1MHz.hex:

avrdude: load data flash data from input file blink_1MHz.hex:

avrdude: input file blink_1MHz.hex auto detected as Intel Hex

avrdude: input file blink_1MHz.hex contains 248 bytes

avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 0.12s

avrdude: verifying …

avrdude: 248 bytes of flash verified

avrdude: safemode: Fuses OK

avrdude done. Thank you.

I have an LED connected to pin 28 as shown in the tutorial, together with a 330 ohm resistor towards ground. The problem is that the LED is not blinking. I have tried to change the polarity.

I tried a different makefile and code and now it’s working :expressionless: