After downloading, let's confirm the assembler works. Create a file blink.asm :
Most distributions have it in their repositories. On Ubuntu/Debian: sudo apt-get install gcc-avr binutils-avr avr-libc . 3. Lightweight Alternative: AVRA (AVR Assembler) avr assembler download
Microchip Studio for AVR
LOOP: ; Turn LED on sbi PORTB, 5 ldi r16, 0xFF call DELAY ; Turn LED off cbi PORTB, 5 ldi r16, 0xFF call DELAY rjmp LOOP After downloading, let's confirm the assembler works
You need a .hex file to upload to the chip. Run avr-objcopy -O ihex main.o main.hex . 5. Summary Table Microchip Studio Beginners, Debugging, Simulating AVR-GCC (AVR-AS) Pro-level, CLI, Automation AVRA Lightweight, Atmel-compatible Conclusion Turn LED on sbi PORTB
(Adjust -P COM3 to your port: /dev/ttyUSB0 on Linux, COM5 on Windows)