[AVR] Eclipse Compiling error with AVR

Status
Not open for further replies.

6TheNightWhisper9

Newbie level 6
Joined
Mar 7, 2018
Messages
11
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
90
Dear All

I'v used Eclipse to create a simple AVr application for ATMEGA8A, but after compiling the code i got an errors which is generated with any avr application coded by the Eclipse,so pls help to solve these errors

my code is


Code C - [expand]
1
2
3
4
5
6
7
8
9
#include <avr/io.h>
int main()
{
   DDRC |= 1<<PC0;
   while(1)
   {
     PORTC0 ^= 1<<PC0;
   }
}



and the errors are

make: *** [LedOnOff.o] Error 1
recipe for target 'LedOnOff.o' failed

and the details for the auto generated make file ,which contain the errors belong to subdir.mk file



and the toolchain configuration as below


many thanks
 

Are you compiling only, or are you also trying to download/run/debug this program ? I would bet there are more than one programs attempting to make access to this file at same time, e.g compiler and debugger; just guessing.
 

The "make" utility can't find the source file LedOnOff.c
As the compile rule is written, that file must be located in the directory above the one where LedOnOff.o will be generated.
 

The "make" utility can't find the source file LedOnOff.c
As the compile rule is written, that file must be located in the directory above the one where LedOnOff.o will be generated.

Hi my friend
I put LedOnoff.c in all the folders belong to the project, but i've got the same error
 

Are you compiling only, or are you also trying to download/run/debug this program ? I would bet there are more than one programs attempting to make access to this file at same time, e.g compiler and debugger; just guessing.

Hi My friend
I compiling only a release version without debug ,also enabled avrdude to burn the generated hex file
 

The output from compilation seems too short.
Try invoking make in verbose mode, it should be something like that:

Code:
make V=1
 

I've made

make V=1

but nothing change, the same errors
 

The purpose of this statement is not to elliminate the error itself, but rather to change compilation output to verbose mode, which at first sight could give more details on the error reason.
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…