Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

compile problem in keil code for arm (ATSAm7X256)

Status
Not open for further replies.

soma.d.e

Newbie level 4
Newbie level 4
Joined
Aug 27, 2015
Messages
6
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
37
HI I write code in keil for arm (ATSAm7X256) it has simple code but when it compile have error ;what i do for solve it.
im armature and i dont Know any person help me.


this code:



Code dot - [expand]
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include<AT91SAM7X256.H>
#include<libe-AT91SAM7X256.h>
void(wait)void;
int main (void){
AT91F-PIO-Ctg Output (AT91C-BASE-PIOB,AT91C-PIO-PB 0);
AT91F-PIO-Clear Output (AT91C-BASE-PIOB,AT91C-PIO-PB 0);
wait();
AT91f-PIO-Set Output (AT91C-BASE-PIOB,AT91C-PIO-PB 0);
wait();
}
void wait (void)     {
unsigned int n;
for (n=0;n<7000000;n++);
}




and the error is :


Code:
Build target 'Target 1'
compiling test1.c...
test1.c(2): error:  #5: cannot open source input file "libe-AT91SAM7X256.h": No such file or directory
Target not created
 
Last edited by a moderator:

The typical action on this case is to add the folder name where the file libe-AT91SAM7X256.h is located at the library paths, but if you don't know how to do this, at least you can copy this file to the project folder.
 

thanks for answer...but
i dont know how add or copy the file libe-AT91SAM7X256.h to my project?
what should i do ?
 


and the error is :


Code:
Build target 'Target 1'
compiling test1.c...
test1.c(2): error:  #5: cannot open source input file "libe-AT91SAM7X256.h": No such file or directory
Target not created

Your compiler is indicating that it can not located the header file, libe-AT91SAM7X256.h, which you have specified in your code as an #include.

Is the header located in the directory/folder with your other source code files?

It does not appear to be a standard header file provided by KEIL.



BigDog
 

Take a search on your computer to find the exact location of the file libe-AT91SAM7X256.h, and add it to the include directive, as follows :

Code:
#include<C:\folder were is located this file\AT91SAM7X256.H>
 
Last edited:
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top