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-Q1: mcspi external loopback faced with errors from imported sdk eg.

Part Number: AM2634-Q1

i have imported the sdk eg for external loopback both peripheral(freertos) and controller(nortos)
the freertos code build sucessful upon importing but the nortos code shows these errors 
please guide me to resolve it.

88]Building file: "../mcspi_external_loopback_controller.c"
[89]Invoking: Arm Compiler
[90]"C:/ti/ccs2031/ccs/tools/compiler/ti-cgt-armllvm_4.0.4.LTS/bin/tiarmclang.exe" -c -mcpu=cortex-r5 -mfloat-abi=hard -mfpu=vfpv3-d16 -mlittle-endian -mthumb -Os -I"C:/ti/ccs2031/ccs/tools/compiler/ti-cgt-armllvm_4.0.4.LTS/include/c" -I"C:/ti/mcu_plus_sdk_am263x_11_00_00_19/source" -DSOC_AM263X -DOS_NORTOS -g -Wall -Wno-gnu-variable-sized-type-not-at-end -Wno-unused-function -MMD -MP -MF"mcspi_external_loopback_controller.d_raw" -MT"mcspi_external_loopback_controller.o" -I"C:/Users/WIN10/workspace_ccstheia/mcspi_external_loopback_am263x-lp_r5fss0-1_nortos_ti-arm-clang/Release/syscfg"   -o"mcspi_external_loopback_controller.o" "../mcspi_external_loopback_controller.c"
[91]Finished building: "../mcspi_external_loopback_controller.c"

[92]Building target: "mcspi_external_loopback_am263x-lp_r5fss0-1_nortos_ti-arm-clang.out"
[93]Invoking: Arm Linker
[94]"C:/ti/ccs2031/ccs/tools/compiler/ti-cgt-armllvm_4.0.4.LTS/bin/tiarmclang.exe" -mcpu=cortex-r5 -mfloat-abi=hard -mfpu=vfpv3-d16 -mlittle-endian -mthumb -Os -DSOC_AM263X -DOS_NORTOS -g -Wall -Wno-gnu-variable-sized-type-not-at-end -Wno-unused-function -Wl,-m"mcspi_external_loopback.Release.map" -Wl,-i"C:/ti/mcu_plus_sdk_am263x_11_00_00_19/source/kernel/nortos/lib" -Wl,-i"C:/ti/mcu_plus_sdk_am263x_11_00_00_19/source/drivers/lib" -Wl,-i"C:/ti/mcu_plus_sdk_am263x_11_00_00_19/source/board/lib" -Wl,-i"C:/ti/ccs2031/ccs/tools/compiler/ti-cgt-armllvm_4.0.4.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="mcspi_external_loopback_am263x-lp_r5fss0-1_nortos_ti-arm-clang_linkInfo.xml" -Wl,--ram_model -o "mcspi_external_loopback_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" "./main.o" "./mcspi_external_loopback_controller.o" -Wl,-l"syscfg/linker.cmd"  -Wl,-lnortos.am263x.r5f.ti-arm-clang.release.lib -Wl,-ldrivers.am263x.r5f.ti-arm-clang.nortos.release.lib -Wl,-lboard.am263x.r5f.ti-arm-clang.nortos.release.lib -Wl,-llibc.a -Wl,-llibsysbm.a
[95]"syscfg/linker.cmd", line 128: warning #10097: memory range not found: LOG_SHM_MEM on page 0
[96]"syscfg/linker.cmd", line 127: error #10265: no valid memory range available for placement of ".bss.log_shared_mem"
[97]"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
[98]"syscfg/linker.cmd", line 125: warning #10097: memory range not found: USER_SHM_MEM on page 0
[99]"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
[100]"syscfg/linker.cmd", line 131: warning #10097: memory range not found: RTOS_NORTOS_IPC_SHM_MEM on page 0
[101]"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
[102]"syscfg/linker.cmd", line 134: warning #10097: memory range not found: MAILBOX_HSM on page 0
[103]"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
[104]"syscfg/linker.cmd", line 137: warning #10097: memory range not found: MAILBOX_R5F on page 0
[105]"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
[106]error #10010: errors encountered during linking; "mcspi_external_loopback_am263x-lp_r5fss0-1_nortos_ti-arm-clang.out" not built
[107]tiarmclang: error: tiarmlnk command failed with exit code 1 (use -v to see invocation)
[108]gmake[1]: *** [makefile:153: mcspi_external_loopback_am263x-lp_r5fss0-1_nortos_ti-arm-clang.out] Error 1
[109]gmake: *** [makefile:147: all] Error 2

[110]**** Build finished 

  • Hi Abhiram,

    Can you please do the following
    1. Open the example.syscfg for both the examples (the one that builds and the one that does not build)

    2. Scroll down to the memory configuration section in the syscfg of example that builds

    3. Add the following memory regions manually to the syscfg of example that is not building:

    4. Copy the following sections manually to the syscfg of example that is not building4. 

    5. Save this file, try to re-build this examples

    Regards,

    Shaunak

  • Hi Shaunak 

    thank you for your reply, but i already have these settings in the example that is not building (controller.c).
    should i delete those and manually add again with the same settings as that of the one that is building ? If yes i cant see these specific options in the eg thats not building 

    this is the one that is building



    here in the one thats not building i cannot find the same options as that present in the one thats building , so how will i copy the settings manually.

    can u clear this doubt 


    Regards,

    Abhiram