Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - HappyAVR

#1
พี่ๆ ทั้งหลาย ขอคำแนะนำด้วยครับ

ทดลองเขียน Code แต่ก็เจอปัญหา Build ยังไงก็ไม่สำเร็จครับ ทดลองเขียน Project แรกก็เจอปัญหาแล้ว ไม่รู้ว่าพลาดตรงไหนครับ

ใช้ AVR Studio 4 กับ WinAVR 20100110

Code ที่ทดสอบมีแค่นี้ครับ



#include <avr/io.h>

int main(void)
{
DDRA = 0xFF;

while(1)
{
PORTA = 0xFF;
}

return 0;
}


พอสั่ง build เจอ error แบบนี้ตลอดเลยครับ


rm -rf frist_avr.o  frist_avr.elf dep/* frist_avr.hex frist_avr.eep frist_avr.lss frist_avr.map
Build succeeded with 0 Warnings...
/usr/bin/sh: IC:\WinAVR-20100110\avr\include: command not found
make: [frist_avr.o] Error 127 (ignored)
mmcu=atmega8a -Wl,-Map=frist_avr.map frist_avr.o     -o frist_avr.elf
/usr/bin/sh: -Wl,-Map=frist_avr.map: command not found
make: [frist_avr.elf] Error 127 (ignored)
avr-objcopy -O ihex -R .eeprom -R .fuse -R .lock -R .signature  frist_avr.elf frist_avr.hex
avr-objcopy: 'frist_avr.elf': No such file
make: *** [frist_avr.hex] Error 1
Build failed with 1 errors and 0 warnings...