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: ipc nortos code not builded

Part Number: AM2634


Tool/software:

the example code for ipc notify (nortos) is having error while i builded the program ...? 

[93]Building target: "ipc_notify_echo_am263x-lp_r5fss0-1_nortos_ti-arm-clang.out"
[94]Invoking: Arm Linker
[95]"C:/ti/ti_cgt_arm_llvm_4.0.1.LTS/bin/tiarmclang.exe" -mcpu=cortex-r5 -mfloat-abi=hard -mfpu=vfpv3-d16 -mlittle-endian -mthumb -Os -DSOC_AM263X -g -Wall -Wno-gnu-variable-sized-type-not-at-end -Wno-unused-function -Wl,-m"ipc_notify_echo.Release.map" -Wl,-i"C:/ti/mcu_plus_sdk_am263x_10_02_00_13/source/kernel/nortos/lib" -Wl,-i"C:/ti/mcu_plus_sdk_am263x_10_02_00_13/source/drivers/lib" -Wl,-i"C:/ti/mcu_plus_sdk_am263x_10_02_00_13/source/board/lib" -Wl,-i"C:/ti/ti_cgt_arm_llvm_4.0.1.LTS/lib" -Wl,--reread_libs -Wl,--diag_suppress=10063 -Wl,--diag_wrap=off -Wl,--display_error_number -Wl,--warn_sections -Wl,--gen_xml_func_hash -Wl,--xml_link_info="ipc_notify_echo_am263x-lp_r5fss0-1_nortos_ti-arm-clang_linkInfo.xml" -Wl,--ram_model -o "ipc_notify_echo_am263x-lp_r5fss0-1_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" "./syscfg/ti_enet_soc.o" "./syscfg/ti_enet_lwipif.o" "./syscfg/ti_sdl_config.o" "./ipc_notify_echo.o" "./main.o" -Wl,-l"syscfg/linker.cmd" -Wl,-lnortos.am263x.r5f.ti-arm-clang.release.lib -Wl,-ldrivers.am263x.r5f.ti-arm-clang.release.lib -Wl,-lboard.am263x.r5f.ti-arm-clang.release.lib -Wl,-llibc.a -Wl,-llibsysbm.a
[96]"syscfg/linker.cmd", line 128: warning #10097: memory range not found: LOG_SHM_MEM on page 0
[97]"syscfg/linker.cmd", line 127: error #10265: no valid memory range available for placement of ".bss.log_shared_mem"
[98]"syscfg/linker.cmd", line 127: error #10099-D: program will not fit into available memory, or the section contains a call site that requires a trampoline that can't be generated for this section, or the section contains padded functions. run placement with alignment fails for section ".bss.log_shared_mem" size 0x2000
[99]"syscfg/linker.cmd", line 125: warning #10097: memory range not found: USER_SHM_MEM on page 0
[100]"syscfg/linker.cmd", line 124: error #10099-D: program will not fit into available memory, or the section contains a call site that requires a trampoline that can't be generated for this section, or the section contains padded functions. run placement with alignment fails for section ".bss.user_shared_mem" size 0
[101]"syscfg/linker.cmd", line 131: warning #10097: memory range not found: RTOS_NORTOS_IPC_SHM_MEM on page 0
[102]"syscfg/linker.cmd", line 130: error #10099-D: program will not fit into available memory, or the section contains a call site that requires a trampoline that can't be generated for this section, or the section contains padded functions. run placement with alignment fails for section ".bss.ipc_vring_mem" size 0
[103]"syscfg/linker.cmd", line 134: warning #10097: memory range not found: MAILBOX_HSM on page 0
[104]"syscfg/linker.cmd", line 133: error #10099-D: program will not fit into available memory, or the section contains a call site that requires a trampoline that can't be generated for this section, or the section contains padded functions. run placement with alignment fails for section ".bss.sipc_hsm_queue_mem" size 0
[105]"syscfg/linker.cmd", line 137: warning #10097: memory range not found: MAILBOX_R5F on page 0
[106]"syscfg/linker.cmd", line 136: error #10099-D: program will not fit into available memory, or the section contains a call site that requires a trampoline that can't be generated for this section, or the section contains padded functions. run placement with alignment fails for section ".bss.sipc_secure_host_queue_mem" size 0
[107]error #10010: errors encountered during linking; "ipc_notify_echo_am263x-lp_r5fss0-1_nortos_ti-arm-clang.out" not built
[108]tiarmclang: error: tiarmlnk command failed with exit code 1 (use -v to see invocation)
[109]gmake[1]: *** [makefile:153: ipc_notify_echo_am263x-lp_r5fss0-1_nortos_ti-arm-clang.out] Error 1
[110]gmake: *** [makefile:147: all] Error 2
 ------ these errors are coming 

  • Hi Manoj,

    Let's uncover each error here:

    Your linker.cmd file is missing the LOG_SHM_MEM, USER_SHM_MEM, MAILBOX_R5F, RTOS_NORTOS_IPC_SHM_MEM, MAILBOX_HSM, RTOS_NORTOS_IPC_SHM_MEM 

    [97]"syscfg/linker.cmd", line 127: error #10265: no valid memory range available for placement of ".bss.log_shared_mem"
    [98]"syscfg/linker.cmd", line 127: error #10099-D: program will not fit into available memory, or the section contains a call site that requires a trampoline that can't be generated for this section, or the section contains padded functions. run placement with alignment fails for section ".bss.log_shared_mem" size 0x2000

    This section has not been placed into any valid memory range (e.g. TCM, OCRAM, FLASH etc). If it is placed, the memory is insufficient.

    Q1. What is the version of MCU_PLUS_SDK being used? Is it a customer example or standard out-of-box SDK example without modification?

    Q2. Is the example.syscfg having the "memory configurator" option? If yes, were any sections manually deleted from it?

    Q3. Is the linker.cmd auto-generated by the syscfg or manually generated?

    To me, looks like the default linker is either modified or the required sections are not included in the memory configurator.

    Regards,
    Shaunak