2007-09-11 10:30 PM
2007-09-10 03:58 AM
Hi There,
Can anyone came across this problem ? Here is my problem: I want to locate my function pointer array to code memory area. Here is how my code looks like: void (* const Fptr[GRIP_MENUS])(void) = { CheckGHome, CheckGBandp, CheckGPNap, CheckGripMax, CheckGRHome, CheckFingerC, CheckFingerC, CheckSpread, CheckWrap, BandClicks, NapkinClicks, TopClicks, NULL }; As per my knowledge, when you have declared a variable .const it should go to 0xc000 to 0xffff segment. ( I am using COSMIC compiler 4.5.5 and my processor is ST72621) Instead it generates this error .... #error clnk Debug\diagnosis.lkf:1 bad address (0x1f5) for zero page symbol _Text >>This was generated by V4.5.5 >> PLEASE NOTE THAT THE SAME CODE HAS DESIRED EFFECT WITH REV 4.2e of compiler. THE NEW REV has some problems identifying function pointers with .const qualifiers. Any ideas ?2007-09-11 10:30 PM