Hello
Just to close the loop here.
I agree with CompilerGuru. @ operator is not applicable to functions.
So you have to place the function in a specific section.
The section NON_BANKED is used is standard project to place code which needs to be allocated in the non-paged ROM area.
And you need to write the pragma as
#pragma CODE_SEG __NEAR_SEG NON_BANKED
I hope this helps.
CrasyCat