- Fri Aug 14, 2015 2:49 pm
#184047
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:
1) File -> New Project
2) Choose: An Executable for NXP LPC2100 and Next
3) Choose: Additional Output Format: .hex and Target Processor: LPC2101 and Finish
4) In the sources folder I created main.c file and wrote the following code in it:
" '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
A) Crossworks Tasking Library Package.
B) NXP LPC2000 CPU Support Package.
I created a new project using the following steps:
1) File -> New Project
2) Choose: An Executable for NXP LPC2100 and Next
3) Choose: Additional Output Format: .hex and Target Processor: LPC2101 and Finish
4) In the sources folder I created main.c file and wrote the following code in it:
Code: Select all
I get the following errors when I build the project:#include <targets/LPC2000.h>
#include <targets/liblpc2000.h>
void main()
{
GPIO0_IODIR |= (1<<10);
GPIO0_IOSET |= (1<<10);
}
" '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