| ??? 08/09/02 18:00 Read: times |
#27005 - Locating function at fixed address |
Hi,
I am using Tasking Compiler and working on XAG49 microcontroller. Does anyone know how to locate a function at a fixed address using this compiler for XA toolchain. I read the manual and they have 2 #pragma options renamesec and defaultsec This is how I used it. //suppose I have locate funcb at 0x8000 test.c void funca(void) { } #pragma renamesec pr=FXTEST void funcb(void) { } #pragma defaultsec void funcc(void) { } This should generate an FXTEST section with funcb In locator options under code I specify FXTEST_PR addr=0x8000 I expect the locator to do the job. But this is what I notice The default section name is TEST_PR If and only if I make the funcb() as my first function in test.c does the FXTEST_PR section is generated and located at address 0x8000 but then it does not generate any TEST_PR section. if its like the scenario presented above, then only TEST_PR is generated. Am I missing something or is there something I am doing wrong here?? Any ideas?? Tasking compiler support guy did not have a clue about this. Regards, Rohit |
| Topic | Author | Date |
| Locating function at fixed address | 01/01/70 00:00 | |
RE: Locating function at fixed address | 01/01/70 00:00 |



