sajeev
Advanced Member level 4
- Joined
- Apr 29, 2005
- Messages
- 112
- Helped
- 4
- Reputation
- 8
- Reaction score
- 1
- Trophy points
- 1,298
- Location
- Kerala-India
- Activity points
- 2,197
Hi,
I am using CAN in LPC2129.I want to declare the standard acceptance filter in memory at 0xE0038000;So how to do that?
I have done like this
unsigned int StandardFilter[2] _at_ 0xE0038000; //Declare the standard acceptance filter table
unsigned int GroupStdFilter[2] _at_ 0xE0038008;
unsigned int IndividualExtFilter[2] _at_ 0xE0038010;
unsigned int GroupExtFilter[2] _at_ 0xE0038018;
I am using keil 3RVDS.But I am getting error as
Build target 'Ulink'
compiling main.c...
compiling CAN_RX.c...
CAN_RX.c(31): error: #65: expected a ";"
CAN_RX.c(32): error: #65: expected a ";"
CAN_RX.c(33): error: #65: expected a ";"
CAN_RX.c(34): error: #65: expected a ";"
assembling Startup.s...
When I put a semicolon like this
unsigned int StandardFilter[2] ;
unsigned int GroupStdFilter[2] ;
unsigned int IndividualExtFilter[2];
unsigned int GroupExtFilter[2];
Now the error is gone but I can fix the memmory address as I desired.How to do this?
Regards
Sajeev
I am using CAN in LPC2129.I want to declare the standard acceptance filter in memory at 0xE0038000;So how to do that?
I have done like this
unsigned int StandardFilter[2] _at_ 0xE0038000; //Declare the standard acceptance filter table
unsigned int GroupStdFilter[2] _at_ 0xE0038008;
unsigned int IndividualExtFilter[2] _at_ 0xE0038010;
unsigned int GroupExtFilter[2] _at_ 0xE0038018;
I am using keil 3RVDS.But I am getting error as
Build target 'Ulink'
compiling main.c...
compiling CAN_RX.c...
CAN_RX.c(31): error: #65: expected a ";"
CAN_RX.c(32): error: #65: expected a ";"
CAN_RX.c(33): error: #65: expected a ";"
CAN_RX.c(34): error: #65: expected a ";"
assembling Startup.s...
When I put a semicolon like this
unsigned int StandardFilter[2] ;
unsigned int GroupStdFilter[2] ;
unsigned int IndividualExtFilter[2];
unsigned int GroupExtFilter[2];
Now the error is gone but I can fix the memmory address as I desired.How to do this?
Regards
Sajeev