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
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,
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.
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.
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!
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.