[ATMEGA128]IDE: Avr studio 4.19

This version no more update.

Software Envirement

OS: Windows 10 Pro 64Bit (1607 Build 14393.447)
Toolchain: avr-toolchain_3.3.0710 (Writter's Cloud Storage, Other Archive)
IDE: AVR Studio 4.19(730 build Official Link, Other Version Archive)
Installation Order: Toolchain -> IDE (순서 지켜주셔야 편합니다.)

Hardware

Target Board: NEWTC AM-M128-B(16Mhz Clock)
ISP: NEWTC AD-USBISP V3.6

New Project


press New Project


Project Name NOT allow any space.


Choose JTAG ICE, ATmega128 then Finish

Check: Toolchain Path


'Project' Tab -> Configuration Options -> Custom Options

if 'External Tools' Fields are empty, refer to following path

avr-gcc: C:\Program Files (x86)\Atmel\AVR Tools\AVR Toolchain\bin\avr-gcc.exe
make: C:\Program Files (x86)\Atmel\AVR Tools\AVR Toolchain\bin\make.exe

Check: Frequency


'Project' Tab -> Configuration Options -> Gerneral
Type your board Clock. It can be replace as #define F_CPU 16000000

Build Test

#include <avr/io.h>
#include <util/delay.h>

int main()
{
    DDRG |= 0x03; //Connect LED
    PORTG = 0x00; 

    while (1)
    {
        PORTG = 0x01;
        _delay_ms(500);
        PORTG = 0x02;
        _delay_ms(500);
    }
}
//This Test Code means be Blinking every 500ms

Build (F7)

Upload to Target


'Tools' -> 'Program AVR' -> 'Connect' -> STK500 -> COM@


if you don't know exact COM Port number, go to device manager and check it.


->Flash Section -> Program
Caution: If you make new Project, Flash Hex Path not gonna automatically change to New Project Path.

results matching ""

    No results matching ""