NEWTC



  • HOME
  • Customer Center
  • FAQ


hit : 5,327
title Related information with ICCAVR error or Demo Download
name admin 11-08-29 21:59

Hello, customer?

Please use ATMega128 (Please see NOTES) as target in Option.In case of any error in the newest version in data room, the newest version of error is not the error in ICCAVR and please add the below. Please write putchar and getchar, internal function fitting the environment in service because this error occurs as it is possible to change so that function of printf and scanf can output to other place depending upon hardware.

- Below ?

#include <stdio.h>

// printf It is required to add when you use // scanf function

int putchar(char c)
{
    while (((UCSR0A>>UDRE0)&0x01) == 0) ;  // UDRE, data register empty
        
    UDR0 = c;
    return c;
}

// It is required to add when you use // scanf function

int getchar(void)
{
    while ((UCSR0A & 0x80) == 0);
    return UDR0;
}


In case of failure even if you did so, please recreate project and add the created C source.
That’s why you encountered such a problem because the early created folder is different as the example was created in the previous 6.xx version.
http://www.newtc.co.kr/download/SW/iccv7avr_demo.exe
==> Download this program and reinstall it.

Thank you.