Dear Martin:
I got your example project and it's quite clear. Thanks.
Two further questions:
Q1) What is the meaning of the key word "KEEP"? Do we have some document about the key words of .ld file?
Q2) How to allocate a group of variables? For example, if I wrote as below:
__attribute__ ((section(".MyRamData"))) // place data below into .MyRamCode section
unsigned long my_test_data_0;
unsigned long my_test_data_1;
unsigned long my_test_data_2;
Then only my_test_data_0 was allocated into .MyRamData, however my_test_data_1/2 were allocated into default RAM area.
Do we have something like "#pragma CODE_SEG xxx" in legacy Codewarrior?
Thanks and Best Regards,
Wang