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.

Crossworks for ARM - unable to compile the program

Status
Not open for further replies.

elecrom

Junior Member level 3
Joined
Sep 24, 2007
Messages
25
Helped
3
Reputation
6
Reaction score
1
Trophy points
1,283
Location
Kharagpur
Activity points
1,472
Hello All,

I have recently installed crossworks for arm v2. However I am not able to compile even simple LED blink program in crossworks. I have installed support packages for LPC2138 microcontroller.

--------------------------------------------------------------
#include<LPC213x.h>

int main()
{

IO1DIR = 0xFF000000;

while(1)
{
IO1PIN = 0xFF000000;
asm("nop");
asm("nop");
asm("nop");
asm("nop");
IO1PIN = 0x00000000;
asm("nop");
asm("nop");
asm("nop");
asm("nop");

};
}

--------------------------------------------------------------

I get following Errors:
- LPC213X.h no such file or directory (Although this file is present at "C:\Documents and Settings\OK\Local Settings\Application Data\Rowley Associates Limited\CrossWorks for ARM\packages\include\targets\LPC213x.h")

- implicit declaration of function "asm"

How to resolve these errors ? I tried a lot, but could not figure out how to specify include directories to the crossworks IDE.

Can any one suggest any other good free ARM compiler ? What about YAGARTO ?
 

amraldo

Advanced Member level 4
Joined
Aug 29, 2004
Messages
1,185
Helped
145
Reputation
290
Reaction score
40
Trophy points
1,328
Location
Egypt
Activity points
5,880
Keil uVision Evaluation version is good.
And I agree with the crossworks problem. It is specifying the include directory for your header file.
Did you try re installation and leaving it to set its environment variables and associations?
--
Amr Ali
 

elecrom

Junior Member level 3
Joined
Sep 24, 2007
Messages
25
Helped
3
Reputation
6
Reaction score
1
Trophy points
1,283
Location
Kharagpur
Activity points
1,472
Ya I have tried that. But no luck.

It got compiled only when I had specified complete file path in the #include directive.

I am facing another strange problem. I tried compiling above mentioned program with three different compilers (keil, corss, IAR) but it is not working on my LPC2138 board, neither it is working on proteus simulator. Why such simple program doen't work ? I had coded quite complex programs for ARM some long time ago. I had faced this problem earlier too, but somehow programs used to start working automatically. But this time it is not working at all.

Am I missing something ? pls help.
 

amraldo

Advanced Member level 4
Joined
Aug 29, 2004
Messages
1,185
Helped
145
Reputation
290
Reaction score
40
Trophy points
1,328
Location
Egypt
Activity points
5,880
I think your code is toggling some I/O pins. The delay between toggling is too low to notice the changes in the I/O pins.

Just increase the delay to see the toggling instead of seeing the LEDS always ON
--
Amr Ali
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top