Hello, I am using a HCS12DP512 MCU and I have a question regarding the Complier/Linker.
I`m trying to allocate two functions to the same specific address.
Ideally, it would like to do something like:
void t1(void) @0x9000
{
putchar('1');
}
void t2(void) @0x9000
{
putchar('2');
}
By default, one of the function would be included in my program. Then at run time, the user could send just the S-Record for one of this function with the bootloader in my MCU.
That would be useful when there is not enough room in the FLASH (code page). I could use this feature to have unit testing or debugging function in the field.
How can I achieve this with CodeWarrior IDE for HCS12 ?
I know I can create a user segment in the PRM file but It seems the LINKER will place both functions one after the other.
I really want to force these two fonctions at one specifc address.
Is that possible ?
Thanks in advance for your answer.
ssinfod