Hello I am new to the Crossworks ARM complier and the the ARM Microcontrollers. I decided to use the NXP LPC2101 microcontroller and learn it. I downloaded the Crossworks ARM Compiler. I downloaded the following packages:
A) Crossworks Tasking Library Package.
B) NXP LPC2000 CPU Support Package.
I created a new project using the following steps:
-
File → New Project
-
Choose: An Executable for NXP LPC2100 and Next
-
Choose: Additional Output Format: .hex and Target Processor: LPC2101 and Finish
-
In the sources folder I created main.c file and wrote the following code in it:
#include <targets/LPC2000.h>
#include <targets/liblpc2000.h>
void main()
{
GPIO0_IODIR |= (1<<10);
GPIO0_IOSET |= (1<<10);
}
I get the following errors when I build the project:
" ‘GPIO0_IODIR’ undeclared (first use in this function) "
" each undeclared identifier is reported only once for each function it appears in "
" ‘GPIO0_IOSET’ undeclared (first use in this function) "
I have the following questions. First am I using the correct header files that include the names of the registers of the LPC2101? How can I solve the compiler error.
Thank You