This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM2634: Map file is missing symbols although many files are builded and linked

Part Number: AM2634
Other Parts Discussed in Thread: SYSCONFIG

Hi All,

I am not facing any errors while building or linking but in map file only two files are getting included as shown below:

but I have builded .o's of sysconfig files, main.c and AdcDrv_Common.c.

But why only the below two files are included in map file ?
1) ti_dpl_config.o 
2) main.o

I am using the below makefile target to link:

link:
@echo Linking ....
"C:/ti/ccs1110/ccs/tools/compiler/ti_cgt_tiarmclang_1.3.1.LTS/bin/tiarmclang.exe" -mcpu=cortex-r5 -mfloat-abi=hard -mfpu=vfpv3-d16 -mlittle-endian -DSOC_AM263X -D_DEBUG_=1 -gstrict-dwarf -g -Wall -Wno-gnu-variable-sized-type-not-at-end -Wno-unused-function -Wl,-m"Output.map" -Wl,-i"C:/ti/mcu_plus_sdk_am263x_08_02_01_08/source/kernel/nortos/lib" -Wl,-i"C:/ti/mcu_plus_sdk_am263x_08_02_01_08/source/drivers/lib" -Wl,-i"C:/ti/mcu_plus_sdk_am263x_08_02_01_08/source/board/lib" -Wl,-i"C:/ti/ccs1110/ccs/tools/compiler/ti_cgt_tiarmclang_1.3.1.LTS/lib" -Wl,--reread_libs -Wl,--diag_suppress=10063 -Wl,--diag_wrap=off -Wl,--display_error_number -Wl,--warn_sections -Wl,--xml_link_info="Build.xml" -Wl,--ram_model -o "Build.out" *.o "./linker.cmd"  -Wl,-lnortos.am263x.r5f.ti-arm-clang.debug.lib -Wl,-ldrivers.am263x.r5f.ti-arm-clang.debug.lib -Wl,-lboard.am263x.r5f.ti-arm-clang.debug.lib -Wl,-llibc.a
@echo Finished Linking ....
  • Hi 

    Are you facing the same issue while linking through CCS?

    For your reference I have attached the Command for an example:

    Building target: "gpio_led_blink_am263x-cc_r5fss0-0_nortos_ti-arm-clang.out"
    Invoking: Arm Linker
    "C:/ti/ccs1120/ccs/tools/compiler/ti-cgt-armllvm_1.3.1.LTS/bin/tiarmclang.exe" -mcpu=cortex-r5 -mfloat-abi=hard -mfpu=vfpv3-d16 -mlittle-endian -DSOC_AM263X -D_DEBUG_=1 -gstrict-dwarf -g -Wall -Wno-gnu-variable-sized-type-not-at-end -Wno-unused-function -Wl,-m"gpio_led_blink.Debug.map" -Wl,-i"C:/ti/mcu_plus_sdk_am263x_08_03_01_06/source/kernel/nortos/lib" -Wl,-i"C:/ti/mcu_plus_sdk_am263x_08_03_01_06/source/drivers/lib" -Wl,-i"C:/ti/mcu_plus_sdk_am263x_08_03_01_06/source/board/lib" -Wl,-i"C:/ti/ccs1120/ccs/tools/compiler/ti-cgt-armllvm_1.3.1.LTS/lib" -Wl,--reread_libs -Wl,--diag_suppress=10063 -Wl,--diag_wrap=off -Wl,--display_error_number -Wl,--warn_sections -Wl,--xml_link_info="gpio_led_blink_am263x-cc_r5fss0-0_nortos_ti-arm-clang_linkInfo.xml" -Wl,--ram_model -o "gpio_led_blink_am263x-cc_r5fss0-0_nortos_ti-arm-clang.out" "./syscfg/ti_dpl_config.o" "./syscfg/ti_drivers_config.o" "./syscfg/ti_drivers_open_close.o" "./syscfg/ti_pinmux_config.o" "./syscfg/ti_power_clock_config.o" "./syscfg/ti_board_config.o" "./syscfg/ti_board_open_close.o" "./syscfg/ti_enet_config.o" "./syscfg/ti_enet_open_close.o" "./gpio_led_blink.o" "./main.o" "../linker.cmd" -Wl,-lnortos.am263x.r5f.ti-arm-clang.debug.lib -Wl,-ldrivers.am263x.r5f.ti-arm-clang.debug.lib -Wl,-lboard.am263x.r5f.ti-arm-clang.debug.lib -Wl,-llibc.a
    Finished building target: "gpio_led_blink_am263x-cc_r5fss0-0_nortos_ti-arm-clang.out"

    Could you share your project for me to reproduce the issue?

    Thanks & Regards

    Sri Vidya

  • You can download and use the latest releases for the MCU_PLUS_SDK and the tiarmClang, along with the latest documentations.

    SDK: https://www.ti.com/tool/download/MCU-PLUS-SDK-AM263X

    Compiler: https://www.ti.com/tool/download/ARM-CGT-CLANG/2.1.1.LTS