Other Parts Discussed in Thread: MOTORWARE
Hi,
I am developing a library for C2000 devices. It is based on several MotorWare components as well as custom software. My question is if it is possible to use CODE_SECTION() and/or SET_CODE_SECTION() on functions defined in the .lib. For example, lets say i have foo.lib and foo.h. The header contains the function declaration, e.g.:
extern void foo_bar(void);
If I place the following in the foo.h header:
#pragma CODE_SECTION(foo_bar, mysect)
If I build the library first and then link to it from my application with the .cmd file specifying mysect and allocating to where I want it, will this place foo_bar() in the mysect section in the main.out and/or main.map?
Cheers,
Vassilios