Raady Here
Full Member level 5
Hi ,
I am trying to update variables based on scanned letters from a function which scans the keypad.
If I press M & C xaxis is getting updated. And If I press U I get a link error
Link Error: Cannot access symbol (_Yaxis) at an odd address.
I tried interchanging values of M to U but still the error persists.
Where could I be wrong ?
dspic30f5011/MPLAB 8.8v
Regards,
Raady.
I am trying to update variables based on scanned letters from a function which scans the keypad.
Code:
// code for Keypad.c
extern Xaxis,Yaxis,Zaxis;
const unsigned char character[] = {'M' ,'1' ,'2' ,'3' ,'U' ,'4' ,'5' ,'6' ,'D' ,'7' ,'8' ,'9' ,'E' ,'S' ,'0' ,'C'};
Keypadscan()
{
{
// ...
cKeyPad = character[ii];
// ...
}
if(cKeyPad == 'M') Xaxis = 1;
if(cKeyPad == 'C') Xaxis = 0;
if(cKeyPad == 'U') {
if(Yaxis > 0 )
Yaxis++;
}
cKeyPad = 0;
}
If I press M & C xaxis is getting updated. And If I press U I get a link error
Link Error: Cannot access symbol (_Yaxis) at an odd address.
I tried interchanging values of M to U but still the error persists.
Where could I be wrong ?
dspic30f5011/MPLAB 8.8v
Regards,
Raady.