Dear sir,
We use CCSV4.25 for TMS470MF066 application with SD-XDS510USB PLUS emulator. We try to debug the project, but CCSV4 can't write to target board. We checked the map file, and found the address of function start is not 32bit alignment. The following lines is from .map file. For example, the reset address is 0x00001969 (_c_int00). Could anyone give me some help? Is it abnormal? I flash the code to target board with nowFlash tool, and it runs correctly.
00000000 __TI_static_base__00001745 __aeabi_memcpy00001745 __aeabi_memcpy400001745 __aeabi_memcpy8ffffffff __binit__ffffffff __c_args__00001969 _c_int000000165d _init00001935 _memoryInit_000012a3 _mpuInit00001701 _set_ecp_clk0000139b _switch_to_usermode000011c3 _systemInit
Best Regards,
Li Zuyuan
I don't know how any function built for Cortex-M3 can end up at an odd address. Something unusual is going on. We need to reproduce this error ourselves. Unfortunately, for linker issues like this one, that can be difficult. Are you willing to send us your entire project?
Thanks and regards,
-George
TI C/C++ Compiler Forum ModeratorPlease click Verify Answer on the best reply to your question.The Compiler Wiki answers most common questions.Track an issue with SDOWP. Enter your bug id in the "Find Record ID" box.
Hello George,
Thank you for your answer. I used CCSV4.25 wizard to create new project and HALCoGen v3.0 produced the code. Please see attached project. Even though the functions are located at odd address, it runs correctly. The PC shows the address-1 as the function start address. I really don't know what is wrong.
Thank you!
Best regards
Zuyuan
This is not a bug. The code of the function is correctly aligned. The LSB of the symbol is used to indicate whether it is an ARM or Thumb function. If the LSB is 1, it is a Thumb function. This helps the linker avoid the use of mode-switching veneers.
Thank all of you very much!