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.
Hi,
I have issues with the default cmd file, and have started to tinker with the cmd module in sysconfig.
Firstly, I have a strange warning : the CMD module says must be enabled ... and it is.
Secondly, the linking fails. It kind of looks like it can't find the cmd file generated by sysconfig.
"C:/TI/CCS/CCS12.50/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla2 --float_support=fpu64 --idiv_support=idiv0 --tmu_support=tmu0 --vcu_support=vcrc -Ooff --fp_mode=relaxed --advice:performance=all --define=_FLASH --define=DEBUG --define=CPU1 --diag_suppress=10063 --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi -z -m"2205_ctc_chrg7k_sw_cpu1.map" --heap_size=0x200 --stack_size=0x3F8 --warn_sections -i"C:/TI/CCS/CCS12.50/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/lib" -i"C:/TI/CCS/CCS12.50/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include" --reread_libs --diag_wrap=off --display_error_number --xml_link_info="2205_ctc_chrg7k_sw_cpu1_linkInfo.xml" --entry_point=code_start --rom_model -o "2205_ctc_chrg7k_sw_cpu1.out" "./syscfg/board.obj" "./syscfg/device_cmd.obj" "./syscfg/c2000ware_libraries.obj" "./device/F2838x_CodeStartBranch.obj" "./device/device.obj" "./sources/converter_io.obj" "./sources/init_cla_cpu1.obj" "./sources/main_cpu1.obj" "./sources/pll_pfc.obj" "./sources/regulation_pfc.obj" "./sources/supervision_cpu1.obj" "C:/TI/SDK/C2000Ware/C2000Ware_5_01_00_00/driverlib/f2838x/driverlib/ccs/Debug/driverlib.lib" "../sources/includes/SFO_v8_fpu_lib_build_c28_driverlib_eabi.lib" -l"syscfg/device_cmd.cmd" -llibc.a <Linking> warning #10461-D: Invalid to call C28 function "sqrtf" defined in "C:\TI\CCS\CCS12.50\ccs\tools\compiler\ti-cgt-c2000_22.6.1.LTS\lib\rts2800_fpu64_eabi.lib<e_sqrtf.c.obj>" from CLA file "./sources/regulation_pfc.obj" warning #10247-D: creating output section ".text" without a SECTIONS specification warning #10247-D: creating output section ".data" without a SECTIONS specification warning #10247-D: creating output section ".bss" without a SECTIONS specification warning #10247-D: creating output section ".cinit" without a SECTIONS specification warning #10247-D: creating output section ".const" without a SECTIONS specification warning #10247-D: creating output section "codestart" without a SECTIONS specification warning #10247-D: creating output section "CpuToCla1MsgRAM" without a SECTIONS specification warning #10247-D: creating output section ".bss_cla" without a SECTIONS specification warning #10247-D: creating output section "Cla1Prog" without a SECTIONS specification warning #10247-D: creating output section ".scratchpad" without a SECTIONS specification warning #10247-D: creating output section ".const_cla" without a SECTIONS specification error #10430-D: ".TI.ramfunc" section generated by __attribute__((ramfunc)) or --ramfunc=on requires a SECTIONS specification to function. error #10010: errors encountered during linking; "2205_ctc_chrg7k_sw_cpu1.out" not built
Thanks in advance for your help,
Best regards,
Adrien
Hi,
Can you check if the device_cmd.cmd file is generated by SysConfig?
You can refer the App note https://www.ti.com/lit/pdf/sprad49 on how to use the Linker Command tool.
Best Regards
Siddharth
You can click to "Suppress". That solved my problem.
I was under the impression that this only "mutes" the warning, but it doesn't mean the problem is gone. Am I wrong ?
In my case, the problem is gone, and the code work correctly. I am not sure about your case, can you show me your config of "MEMCFG" ?
You can refer the App note https://www.ti.com/lit/pdf/sprad49 on how to use the Linker Command tool.
Thanks. This is what I used to get where I am at.
Can you check if the device_cmd.cmd file is generated by SysConfig?
It is.
I also noticed that the preprocessor macro CMDTOOL is undefined, and therefore the CMD_init() function is not called in Device_init(). Which is probably also an issue.
Hi,
What are the compiler options that you have conifgured ? Pls share the compilation log console for your project.
The "--cmd_file="syscfg/device_cmd.opt" option has to be specified to the compiler so that it define the CMDTOOL symbol,
Best regards
Siddharth
Hi,
The "--cmd_file="syscfg/device_cmd.opt" option has to be specified to the compiler so that it define the CMDTOOL symbo
Thanks, it looks like it works (for the symbol define, at least).
Here is the console log:
**** Build of configuration FLASH for project 2205_ctc_chrg7k_sw_cpu1 **** "C:\\TI\\CCS\\CCS12.50\\ccs\\utils\\bin\\gmake" -k -j 16 all -O Building file: "../2205_ctc_chrg7k_sw_cpu1.syscfg" Invoking: SysConfig "C:/TI/CCS/CCS12.50/ccs/utils/sysconfig_1.18.0/sysconfig_cli.bat" -s "C:/TI/SDK/C2000Ware/C2000Ware_5_01_00_00/.metadata/sdk.json" -d "F2838x" --script "C:/Users/a.thurin/Desktop/Projets logiciels/2205-CTC-CHRG7K-SW/2205_ctc_chrg7k_sw_cpu2/2205_ctc_chrg7k_sw_cpu2.syscfg" --context "CPU2" --script "C:/Users/a.thurin/Desktop/Projets logiciels/2205-CTC-CHRG7K-SW/2205_ctc_chrg7k_sw_cpu1/2205_ctc_chrg7k_sw_cpu1.syscfg" --context "CPU1" -o "syscfg" --compiler ccs Running script... Validating... warning: CPU2 CMD_FLASH(/utilities/cmd_tool/cmd_syscfg/source/CMD) sectionMemory_cpuToCla1MsgRAM: Memcfg module must be enabled for complete error checking. warning: CPU2 CMD_FLASH(/utilities/cmd_tool/cmd_syscfg/source/CMD) sectionMemory_bss: The memcfg module is needed on CPU1 to assign GSRAM to CPU2. warning: CPU2 CMD_FLASH(/utilities/cmd_tool/cmd_syscfg/source/CMD) sectionMemory_data: The memcfg module is needed on CPU1 to assign GSRAM to CPU2. warning: CPU2 CMD_FLASH(/utilities/cmd_tool/cmd_syscfg/source/CMD) sectionMemory_sysmem: The memcfg module is needed on CPU1 to assign GSRAM to CPU2. info: CPU1 CPUSELx(/driverlib/clocktree/mux.js) cpu_sel_mux: For enabling peripherals, use the CPU1 /driverlib/sysctl.js enable_SYSCTL_PERIPH_CLK_TIMER0 info: CPU1 PERx_CPU1_SYSCLK_GATE(/driverlib/clocktree/unknown.js) cpu1_sysclk_gate: For enabling peripherals, use the CPU1 /driverlib/sysctl.js enable_SYSCTL_PERIPH_CLK_TIMER0 info: CPU1 PERx_CPU2_SYSCLK_GATE(/driverlib/clocktree/unknown.js) cpu2_sysclk_gate: For enabling peripherals, use the CPU1 /driverlib/sysctl.js enable_SYSCTL_PERIPH_CLK_TIMER0 info: CPU1 PWM_PFC(/driverlib/epwm.js) epwmTimebase_clockDiv: For perfectly synchronized TBCLKs across multiple EPWM modules, the prescaler bits in the TBCTL register of each EPWM module must be set identically info: CPU1 PWM_PFC(/driverlib/epwm.js) epwmActionQualifier_t1Source: T1/T2 selection and configuration of a trip/digital-compare event is indpendent of the configuration of that event in the Trip-Zone submodule info: CPU1 PWM_PFC(/driverlib/epwm.js) epwmActionQualifier_t2Source: T1/T2 selection and configuration of a trip/digital-compare event is indpendent of the configuration of that event in the Trip-Zone submodule info: CPU1 PWM_PFC(/driverlib/epwm.js) hrpwm_enable: MEP becomes operational: •Three EPWMCLK cycles after the period starts when high-resolution period (TBPRDHR) control is not enabled. • When high resolution period (TBPRDHR) control is enabled via the HRPCTL register – In up-count mode: three EPWMCLK cycles after the period starts until three EPWMCLK cycles before the period ends. – In up-down count mode: when counting up, three cycles after CTR = 0 until three cycles before CTR = PRD, and when counting down, three cycles after CTR = PRD until three cycles before CTR= 0. info: CPU1 PWM_TDC_1(/driverlib/epwm.js) epwmTimebase_clockDiv: For perfectly synchronized TBCLKs across multiple EPWM modules, the prescaler bits in the TBCTL register of each EPWM module must be set identically info: CPU1 PWM_TDC_1(/driverlib/epwm.js) epwmActionQualifier_t1Source: T1/T2 selection and configuration of a trip/digital-compare event is indpendent of the configuration of that event in the Trip-Zone submodule info: CPU1 PWM_TDC_1(/driverlib/epwm.js) epwmActionQualifier_t2Source: T1/T2 selection and configuration of a trip/digital-compare event is indpendent of the configuration of that event in the Trip-Zone submodule info: CPU1 PWM_TDC_1(/driverlib/epwm.js) epwmTimebase_phaseEnable: If the EPWMxSYNCI signal is held HIGH, the sync will NOT continously occur. The EPWMxSYNCI is rising edge activated. info: CPU1 PWM_TDC_2(/driverlib/epwm.js) epwmTimebase_clockDiv: For perfectly synchronized TBCLKs across multiple EPWM modules, the prescaler bits in the TBCTL register of each EPWM module must be set identically info: CPU1 PWM_TDC_2(/driverlib/epwm.js) epwmActionQualifier_t1Source: T1/T2 selection and configuration of a trip/digital-compare event is indpendent of the configuration of that event in the Trip-Zone submodule info: CPU1 PWM_TDC_2(/driverlib/epwm.js) epwmActionQualifier_t2Source: T1/T2 selection and configuration of a trip/digital-compare event is indpendent of the configuration of that event in the Trip-Zone submodule info: CPU1 PWM_TDC_2(/driverlib/epwm.js) epwmTimebase_phaseEnable: If the EPWMxSYNCI signal is held HIGH, the sync will NOT continously occur. The EPWMxSYNCI is rising edge activated. info: CPU1 myFMC0(/driverlib/flash.js) calculatedWaitStates: It is important to look at your device's datasheet for information about what the required minimum flash wait state is for your selected SYSCLK frequency. See Flash section of TRM for more info. info: CPU2 PWM_BUCK(/driverlib/epwm.js) epwmTimebase_clockDiv: For perfectly synchronized TBCLKs across multiple EPWM modules, the prescaler bits in the TBCTL register of each EPWM module must be set identically info: CPU2 PWM_BUCK(/driverlib/epwm.js) epwmActionQualifier_t1Source: T1/T2 selection and configuration of a trip/digital-compare event is indpendent of the configuration of that event in the Trip-Zone submodule info: CPU2 PWM_BUCK(/driverlib/epwm.js) epwmActionQualifier_t2Source: T1/T2 selection and configuration of a trip/digital-compare event is indpendent of the configuration of that event in the Trip-Zone submodule info: CPU2 PWM_BUCK(/driverlib/epwm.js) hrpwm_enable: MEP becomes operational: •Three EPWMCLK cycles after the period starts when high-resolution period (TBPRDHR) control is not enabled. • When high resolution period (TBPRDHR) control is enabled via the HRPCTL register – In up-count mode: three EPWMCLK cycles after the period starts until three EPWMCLK cycles before the period ends. – In up-down count mode: when counting up, three cycles after CTR = 0 until three cycles before CTR = PRD, and when counting down, three cycles after CTR = PRD until three cycles before CTR= 0. info: CPU2 PWM_DP(/driverlib/epwm.js) epwmTimebase_clockDiv: For perfectly synchronized TBCLKs across multiple EPWM modules, the prescaler bits in the TBCTL register of each EPWM module must be set identically info: CPU2 PWM_DP(/driverlib/epwm.js) epwmActionQualifier_t1Source: T1/T2 selection and configuration of a trip/digital-compare event is indpendent of the configuration of that event in the Trip-Zone submodule info: CPU2 PWM_DP(/driverlib/epwm.js) epwmActionQualifier_t2Source: T1/T2 selection and configuration of a trip/digital-compare event is indpendent of the configuration of that event in the Trip-Zone submodule info: CPU2 myFMC0(/driverlib/flash.js) calculatedWaitStates: It is important to look at your device's datasheet for information about what the required minimum flash wait state is for your selected SYSCLK frequency. See Flash section of TRM for more info. Generating Code (2205_ctc_chrg7k_sw_cpu1.syscfg)... Writing C:\Users\a.thurin\Desktop\Projets logiciels\2205-CTC-CHRG7K-SW\2205_ctc_chrg7k_sw_cpu1\FLASH\syscfg\board.c... Writing C:\Users\a.thurin\Desktop\Projets logiciels\2205-CTC-CHRG7K-SW\2205_ctc_chrg7k_sw_cpu1\FLASH\syscfg\board.h... Writing C:\Users\a.thurin\Desktop\Projets logiciels\2205-CTC-CHRG7K-SW\2205_ctc_chrg7k_sw_cpu1\FLASH\syscfg\board.cmd.genlibs... Writing C:\Users\a.thurin\Desktop\Projets logiciels\2205-CTC-CHRG7K-SW\2205_ctc_chrg7k_sw_cpu1\FLASH\syscfg\board.opt... Writing C:\Users\a.thurin\Desktop\Projets logiciels\2205-CTC-CHRG7K-SW\2205_ctc_chrg7k_sw_cpu1\FLASH\syscfg\pinmux.csv... Writing C:\Users\a.thurin\Desktop\Projets logiciels\2205-CTC-CHRG7K-SW\2205_ctc_chrg7k_sw_cpu1\FLASH\syscfg\epwm.dot... Writing C:\Users\a.thurin\Desktop\Projets logiciels\2205-CTC-CHRG7K-SW\2205_ctc_chrg7k_sw_cpu1\FLASH\syscfg\adc.dot... Writing C:\Users\a.thurin\Desktop\Projets logiciels\2205-CTC-CHRG7K-SW\2205_ctc_chrg7k_sw_cpu1\FLASH\syscfg\device_cmd.cmd... Writing C:\Users\a.thurin\Desktop\Projets logiciels\2205-CTC-CHRG7K-SW\2205_ctc_chrg7k_sw_cpu1\FLASH\syscfg\device_cmd.c... Writing C:\Users\a.thurin\Desktop\Projets logiciels\2205-CTC-CHRG7K-SW\2205_ctc_chrg7k_sw_cpu1\FLASH\syscfg\device_cmd.h... Writing C:\Users\a.thurin\Desktop\Projets logiciels\2205-CTC-CHRG7K-SW\2205_ctc_chrg7k_sw_cpu1\FLASH\syscfg\device_cmd.opt... Writing C:\Users\a.thurin\Desktop\Projets logiciels\2205-CTC-CHRG7K-SW\2205_ctc_chrg7k_sw_cpu1\FLASH\syscfg\device_cmd.cmd.genlibs... Writing C:\Users\a.thurin\Desktop\Projets logiciels\2205-CTC-CHRG7K-SW\2205_ctc_chrg7k_sw_cpu1\FLASH\syscfg\c2000ware_libraries.cmd.genlibs... Writing C:\Users\a.thurin\Desktop\Projets logiciels\2205-CTC-CHRG7K-SW\2205_ctc_chrg7k_sw_cpu1\FLASH\syscfg\c2000ware_libraries.opt... Writing C:\Users\a.thurin\Desktop\Projets logiciels\2205-CTC-CHRG7K-SW\2205_ctc_chrg7k_sw_cpu1\FLASH\syscfg\c2000ware_libraries.c... Writing C:\Users\a.thurin\Desktop\Projets logiciels\2205-CTC-CHRG7K-SW\2205_ctc_chrg7k_sw_cpu1\FLASH\syscfg\c2000ware_libraries.h... Writing C:\Users\a.thurin\Desktop\Projets logiciels\2205-CTC-CHRG7K-SW\2205_ctc_chrg7k_sw_cpu1\FLASH\syscfg\clocktree.h... 0 error(s), 4 warning(s) Finished building: "../2205_ctc_chrg7k_sw_cpu1.syscfg" Building file: "../device/F2838x_CodeStartBranch.asm" Invoking: C2000 Compiler "C:/TI/CCS/CCS12.50/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/bin/cl2000" --cmd_file="syscfg/device_cmd.opt" -v28 -ml -mt --cla_support=cla2 --float_support=fpu32 --idiv_support=idiv0 --tmu_support=tmu0 --vcu_support=vcrc -Ooff --fp_mode=relaxed --include_path="C:/Users/a.thurin/Desktop/Projets logiciels/2205-CTC-CHRG7K-SW/2205_ctc_chrg7k_sw_cpu1/sources/includes" --include_path="C:/Users/a.thurin/Desktop/Projets logiciels/2205-CTC-CHRG7K-SW/2205_ctc_chrg7k_sw_multi/shared_includes" --include_path="C:/Users/a.thurin/Desktop/Projets logiciels/2205-CTC-CHRG7K-SW/2205_ctc_chrg7k_sw_cpu1" --include_path="C:/Users/a.thurin/Desktop/Projets logiciels/2205-CTC-CHRG7K-SW/2205_ctc_chrg7k_sw_cpu1/device" --include_path="C:/TI/SDK/C2000Ware/C2000Ware_5_01_00_00/driverlib/f2838x/driverlib" --include_path="C:/TI/CCS/CCS12.50/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include" --advice:performance=all --define=_FLASH --define=DEBUG --define=CPU1 --diag_suppress=10063 --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi --preproc_with_compile --preproc_dependency="device/F2838x_CodeStartBranch.d_raw" --include_path="C:/Users/a.thurin/Desktop/Projets logiciels/2205-CTC-CHRG7K-SW/2205_ctc_chrg7k_sw_cpu1/FLASH/syscfg" --obj_directory="device" --cmd_file="syscfg/board.opt" --cmd_file="syscfg/device_cmd.opt" --cmd_file="syscfg/c2000ware_libraries.opt" "../device/F2838x_CodeStartBranch.asm" Finished building: "../device/F2838x_CodeStartBranch.asm" Building file: "syscfg/device_cmd.c" Invoking: C2000 Compiler "C:/TI/CCS/CCS12.50/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/bin/cl2000" --cmd_file="syscfg/device_cmd.opt" -v28 -ml -mt --cla_support=cla2 --float_support=fpu32 --idiv_support=idiv0 --tmu_support=tmu0 --vcu_support=vcrc -Ooff --fp_mode=relaxed --include_path="C:/Users/a.thurin/Desktop/Projets logiciels/2205-CTC-CHRG7K-SW/2205_ctc_chrg7k_sw_cpu1/sources/includes" --include_path="C:/Users/a.thurin/Desktop/Projets logiciels/2205-CTC-CHRG7K-SW/2205_ctc_chrg7k_sw_multi/shared_includes" --include_path="C:/Users/a.thurin/Desktop/Projets logiciels/2205-CTC-CHRG7K-SW/2205_ctc_chrg7k_sw_cpu1" --include_path="C:/Users/a.thurin/Desktop/Projets logiciels/2205-CTC-CHRG7K-SW/2205_ctc_chrg7k_sw_cpu1/device" --include_path="C:/TI/SDK/C2000Ware/C2000Ware_5_01_00_00/driverlib/f2838x/driverlib" --include_path="C:/TI/CCS/CCS12.50/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include" --advice:performance=all --define=_FLASH --define=DEBUG --define=CPU1 --diag_suppress=10063 --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi --preproc_with_compile --preproc_dependency="syscfg/device_cmd.d_raw" --include_path="C:/Users/a.thurin/Desktop/Projets logiciels/2205-CTC-CHRG7K-SW/2205_ctc_chrg7k_sw_cpu1/FLASH/syscfg" --obj_directory="syscfg" --cmd_file="syscfg/board.opt" --cmd_file="syscfg/device_cmd.opt" --cmd_file="syscfg/c2000ware_libraries.opt" "syscfg/device_cmd.c" Finished building: "syscfg/device_cmd.c" Building file: "syscfg/c2000ware_libraries.c" Invoking: C2000 Compiler "C:/TI/CCS/CCS12.50/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/bin/cl2000" --cmd_file="syscfg/device_cmd.opt" -v28 -ml -mt --cla_support=cla2 --float_support=fpu32 --idiv_support=idiv0 --tmu_support=tmu0 --vcu_support=vcrc -Ooff --fp_mode=relaxed --include_path="C:/Users/a.thurin/Desktop/Projets logiciels/2205-CTC-CHRG7K-SW/2205_ctc_chrg7k_sw_cpu1/sources/includes" --include_path="C:/Users/a.thurin/Desktop/Projets logiciels/2205-CTC-CHRG7K-SW/2205_ctc_chrg7k_sw_multi/shared_includes" --include_path="C:/Users/a.thurin/Desktop/Projets logiciels/2205-CTC-CHRG7K-SW/2205_ctc_chrg7k_sw_cpu1" --include_path="C:/Users/a.thurin/Desktop/Projets logiciels/2205-CTC-CHRG7K-SW/2205_ctc_chrg7k_sw_cpu1/device" --include_path="C:/TI/SDK/C2000Ware/C2000Ware_5_01_00_00/driverlib/f2838x/driverlib" --include_path="C:/TI/CCS/CCS12.50/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include" --advice:performance=all --define=_FLASH --define=DEBUG --define=CPU1 --diag_suppress=10063 --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi --preproc_with_compile --preproc_dependency="syscfg/c2000ware_libraries.d_raw" --include_path="C:/Users/a.thurin/Desktop/Projets logiciels/2205-CTC-CHRG7K-SW/2205_ctc_chrg7k_sw_cpu1/FLASH/syscfg" --obj_directory="syscfg" --cmd_file="syscfg/board.opt" --cmd_file="syscfg/device_cmd.opt" --cmd_file="syscfg/c2000ware_libraries.opt" "syscfg/c2000ware_libraries.c" Finished building: "syscfg/c2000ware_libraries.c" Building file: "../sources/init_cla_cpu1.cla" Invoking: C2000 Compiler "C:/TI/CCS/CCS12.50/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/bin/cl2000" --cmd_file="syscfg/device_cmd.opt" -v28 -ml -mt --cla_support=cla2 --float_support=fpu32 --idiv_support=idiv0 --tmu_support=tmu0 --vcu_support=vcrc -Ooff --fp_mode=relaxed --include_path="C:/Users/a.thurin/Desktop/Projets logiciels/2205-CTC-CHRG7K-SW/2205_ctc_chrg7k_sw_cpu1/sources/includes" --include_path="C:/Users/a.thurin/Desktop/Projets logiciels/2205-CTC-CHRG7K-SW/2205_ctc_chrg7k_sw_multi/shared_includes" --include_path="C:/Users/a.thurin/Desktop/Projets logiciels/2205-CTC-CHRG7K-SW/2205_ctc_chrg7k_sw_cpu1" --include_path="C:/Users/a.thurin/Desktop/Projets logiciels/2205-CTC-CHRG7K-SW/2205_ctc_chrg7k_sw_cpu1/device" --include_path="C:/TI/SDK/C2000Ware/C2000Ware_5_01_00_00/driverlib/f2838x/driverlib" --include_path="C:/TI/CCS/CCS12.50/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include" --advice:performance=all --define=_FLASH --define=DEBUG --define=CPU1 --diag_suppress=10063 --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi --preproc_with_compile --preproc_dependency="sources/init_cla_cpu1.d_raw" --include_path="C:/Users/a.thurin/Desktop/Projets logiciels/2205-CTC-CHRG7K-SW/2205_ctc_chrg7k_sw_cpu1/FLASH/syscfg" --obj_directory="sources" --cmd_file="syscfg/board.opt" --cmd_file="syscfg/device_cmd.opt" --cmd_file="syscfg/c2000ware_libraries.opt" "../sources/init_cla_cpu1.cla" Finished building: "../sources/init_cla_cpu1.cla" Building file: "../sources/converter_io.c" Invoking: C2000 Compiler "C:/TI/CCS/CCS12.50/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/bin/cl2000" --cmd_file="syscfg/device_cmd.opt" -v28 -ml -mt --cla_support=cla2 --float_support=fpu32 --idiv_support=idiv0 --tmu_support=tmu0 --vcu_support=vcrc -Ooff --fp_mode=relaxed --include_path="C:/Users/a.thurin/Desktop/Projets logiciels/2205-CTC-CHRG7K-SW/2205_ctc_chrg7k_sw_cpu1/sources/includes" --include_path="C:/Users/a.thurin/Desktop/Projets logiciels/2205-CTC-CHRG7K-SW/2205_ctc_chrg7k_sw_multi/shared_includes" --include_path="C:/Users/a.thurin/Desktop/Projets logiciels/2205-CTC-CHRG7K-SW/2205_ctc_chrg7k_sw_cpu1" --include_path="C:/Users/a.thurin/Desktop/Projets logiciels/2205-CTC-CHRG7K-SW/2205_ctc_chrg7k_sw_cpu1/device" --include_path="C:/TI/SDK/C2000Ware/C2000Ware_5_01_00_00/driverlib/f2838x/driverlib" --include_path="C:/TI/CCS/CCS12.50/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include" --advice:performance=all --define=_FLASH --define=DEBUG --define=CPU1 --diag_suppress=10063 --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi --preproc_with_compile --preproc_dependency="sources/converter_io.d_raw" --include_path="C:/Users/a.thurin/Desktop/Projets logiciels/2205-CTC-CHRG7K-SW/2205_ctc_chrg7k_sw_cpu1/FLASH/syscfg" --obj_directory="sources" --cmd_file="syscfg/board.opt" --cmd_file="syscfg/device_cmd.opt" --cmd_file="syscfg/c2000ware_libraries.opt" "../sources/converter_io.c" Finished building: "../sources/converter_io.c" Building file: "../device/device.c" Invoking: C2000 Compiler "C:/TI/CCS/CCS12.50/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/bin/cl2000" --cmd_file="syscfg/device_cmd.opt" -v28 -ml -mt --cla_support=cla2 --float_support=fpu32 --idiv_support=idiv0 --tmu_support=tmu0 --vcu_support=vcrc -Ooff --fp_mode=relaxed --include_path="C:/Users/a.thurin/Desktop/Projets logiciels/2205-CTC-CHRG7K-SW/2205_ctc_chrg7k_sw_cpu1/sources/includes" --include_path="C:/Users/a.thurin/Desktop/Projets logiciels/2205-CTC-CHRG7K-SW/2205_ctc_chrg7k_sw_multi/shared_includes" --include_path="C:/Users/a.thurin/Desktop/Projets logiciels/2205-CTC-CHRG7K-SW/2205_ctc_chrg7k_sw_cpu1" --include_path="C:/Users/a.thurin/Desktop/Projets logiciels/2205-CTC-CHRG7K-SW/2205_ctc_chrg7k_sw_cpu1/device" --include_path="C:/TI/SDK/C2000Ware/C2000Ware_5_01_00_00/driverlib/f2838x/driverlib" --include_path="C:/TI/CCS/CCS12.50/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include" --advice:performance=all --define=_FLASH --define=DEBUG --define=CPU1 --diag_suppress=10063 --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi --preproc_with_compile --preproc_dependency="device/device.d_raw" --include_path="C:/Users/a.thurin/Desktop/Projets logiciels/2205-CTC-CHRG7K-SW/2205_ctc_chrg7k_sw_cpu1/FLASH/syscfg" --obj_directory="device" --cmd_file="syscfg/board.opt" --cmd_file="syscfg/device_cmd.opt" --cmd_file="syscfg/c2000ware_libraries.opt" "../device/device.c" Finished building: "../device/device.c" Building file: "../sources/main_cpu1.c" Invoking: C2000 Compiler "C:/TI/CCS/CCS12.50/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/bin/cl2000" --cmd_file="syscfg/device_cmd.opt" -v28 -ml -mt --cla_support=cla2 --float_support=fpu32 --idiv_support=idiv0 --tmu_support=tmu0 --vcu_support=vcrc -Ooff --fp_mode=relaxed --include_path="C:/Users/a.thurin/Desktop/Projets logiciels/2205-CTC-CHRG7K-SW/2205_ctc_chrg7k_sw_cpu1/sources/includes" --include_path="C:/Users/a.thurin/Desktop/Projets logiciels/2205-CTC-CHRG7K-SW/2205_ctc_chrg7k_sw_multi/shared_includes" --include_path="C:/Users/a.thurin/Desktop/Projets logiciels/2205-CTC-CHRG7K-SW/2205_ctc_chrg7k_sw_cpu1" --include_path="C:/Users/a.thurin/Desktop/Projets logiciels/2205-CTC-CHRG7K-SW/2205_ctc_chrg7k_sw_cpu1/device" --include_path="C:/TI/SDK/C2000Ware/C2000Ware_5_01_00_00/driverlib/f2838x/driverlib" --include_path="C:/TI/CCS/CCS12.50/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include" --advice:performance=all --define=_FLASH --define=DEBUG --define=CPU1 --diag_suppress=10063 --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi --preproc_with_compile --preproc_dependency="sources/main_cpu1.d_raw" --include_path="C:/Users/a.thurin/Desktop/Projets logiciels/2205-CTC-CHRG7K-SW/2205_ctc_chrg7k_sw_cpu1/FLASH/syscfg" --obj_directory="sources" --cmd_file="syscfg/board.opt" --cmd_file="syscfg/device_cmd.opt" --cmd_file="syscfg/c2000ware_libraries.opt" "../sources/main_cpu1.c" Finished building: "../sources/main_cpu1.c" Building file: "../sources/regulation_pfc.cla" Invoking: C2000 Compiler "C:/TI/CCS/CCS12.50/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/bin/cl2000" --cmd_file="syscfg/device_cmd.opt" -v28 -ml -mt --cla_support=cla2 --float_support=fpu32 --idiv_support=idiv0 --tmu_support=tmu0 --vcu_support=vcrc -Ooff --fp_mode=relaxed --include_path="C:/Users/a.thurin/Desktop/Projets logiciels/2205-CTC-CHRG7K-SW/2205_ctc_chrg7k_sw_cpu1/sources/includes" --include_path="C:/Users/a.thurin/Desktop/Projets logiciels/2205-CTC-CHRG7K-SW/2205_ctc_chrg7k_sw_multi/shared_includes" --include_path="C:/Users/a.thurin/Desktop/Projets logiciels/2205-CTC-CHRG7K-SW/2205_ctc_chrg7k_sw_cpu1" --include_path="C:/Users/a.thurin/Desktop/Projets logiciels/2205-CTC-CHRG7K-SW/2205_ctc_chrg7k_sw_cpu1/device" --include_path="C:/TI/SDK/C2000Ware/C2000Ware_5_01_00_00/driverlib/f2838x/driverlib" --include_path="C:/TI/CCS/CCS12.50/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include" --advice:performance=all --define=_FLASH --define=DEBUG --define=CPU1 --diag_suppress=10063 --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi --preproc_with_compile --preproc_dependency="sources/regulation_pfc.d_raw" --include_path="C:/Users/a.thurin/Desktop/Projets logiciels/2205-CTC-CHRG7K-SW/2205_ctc_chrg7k_sw_cpu1/FLASH/syscfg" --obj_directory="sources" --cmd_file="syscfg/board.opt" --cmd_file="syscfg/device_cmd.opt" --cmd_file="syscfg/c2000ware_libraries.opt" "../sources/regulation_pfc.cla" "../sources/regulation_pfc.cla", line 58: warning #552-D: variable "s_DeltaDutyMax" was set but never used Finished building: "../sources/regulation_pfc.cla" Building file: "../sources/supervision_cpu1.c" Invoking: C2000 Compiler "C:/TI/CCS/CCS12.50/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/bin/cl2000" --cmd_file="syscfg/device_cmd.opt" -v28 -ml -mt --cla_support=cla2 --float_support=fpu32 --idiv_support=idiv0 --tmu_support=tmu0 --vcu_support=vcrc -Ooff --fp_mode=relaxed --include_path="C:/Users/a.thurin/Desktop/Projets logiciels/2205-CTC-CHRG7K-SW/2205_ctc_chrg7k_sw_cpu1/sources/includes" --include_path="C:/Users/a.thurin/Desktop/Projets logiciels/2205-CTC-CHRG7K-SW/2205_ctc_chrg7k_sw_multi/shared_includes" --include_path="C:/Users/a.thurin/Desktop/Projets logiciels/2205-CTC-CHRG7K-SW/2205_ctc_chrg7k_sw_cpu1" --include_path="C:/Users/a.thurin/Desktop/Projets logiciels/2205-CTC-CHRG7K-SW/2205_ctc_chrg7k_sw_cpu1/device" --include_path="C:/TI/SDK/C2000Ware/C2000Ware_5_01_00_00/driverlib/f2838x/driverlib" --include_path="C:/TI/CCS/CCS12.50/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include" --advice:performance=all --define=_FLASH --define=DEBUG --define=CPU1 --diag_suppress=10063 --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi --preproc_with_compile --preproc_dependency="sources/supervision_cpu1.d_raw" --include_path="C:/Users/a.thurin/Desktop/Projets logiciels/2205-CTC-CHRG7K-SW/2205_ctc_chrg7k_sw_cpu1/FLASH/syscfg" --obj_directory="sources" --cmd_file="syscfg/board.opt" --cmd_file="syscfg/device_cmd.opt" --cmd_file="syscfg/c2000ware_libraries.opt" "../sources/supervision_cpu1.c" Finished building: "../sources/supervision_cpu1.c" Building file: "../sources/pll_pfc.c" Invoking: C2000 Compiler "C:/TI/CCS/CCS12.50/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/bin/cl2000" --cmd_file="syscfg/device_cmd.opt" -v28 -ml -mt --cla_support=cla2 --float_support=fpu32 --idiv_support=idiv0 --tmu_support=tmu0 --vcu_support=vcrc -Ooff --fp_mode=relaxed --include_path="C:/Users/a.thurin/Desktop/Projets logiciels/2205-CTC-CHRG7K-SW/2205_ctc_chrg7k_sw_cpu1/sources/includes" --include_path="C:/Users/a.thurin/Desktop/Projets logiciels/2205-CTC-CHRG7K-SW/2205_ctc_chrg7k_sw_multi/shared_includes" --include_path="C:/Users/a.thurin/Desktop/Projets logiciels/2205-CTC-CHRG7K-SW/2205_ctc_chrg7k_sw_cpu1" --include_path="C:/Users/a.thurin/Desktop/Projets logiciels/2205-CTC-CHRG7K-SW/2205_ctc_chrg7k_sw_cpu1/device" --include_path="C:/TI/SDK/C2000Ware/C2000Ware_5_01_00_00/driverlib/f2838x/driverlib" --include_path="C:/TI/CCS/CCS12.50/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include" --advice:performance=all --define=_FLASH --define=DEBUG --define=CPU1 --diag_suppress=10063 --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi --preproc_with_compile --preproc_dependency="sources/pll_pfc.d_raw" --include_path="C:/Users/a.thurin/Desktop/Projets logiciels/2205-CTC-CHRG7K-SW/2205_ctc_chrg7k_sw_cpu1/FLASH/syscfg" --obj_directory="sources" --cmd_file="syscfg/board.opt" --cmd_file="syscfg/device_cmd.opt" --cmd_file="syscfg/c2000ware_libraries.opt" "../sources/pll_pfc.c" Finished building: "../sources/pll_pfc.c" Building file: "syscfg/board.c" Invoking: C2000 Compiler "C:/TI/CCS/CCS12.50/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/bin/cl2000" --cmd_file="syscfg/device_cmd.opt" -v28 -ml -mt --cla_support=cla2 --float_support=fpu32 --idiv_support=idiv0 --tmu_support=tmu0 --vcu_support=vcrc -Ooff --fp_mode=relaxed --include_path="C:/Users/a.thurin/Desktop/Projets logiciels/2205-CTC-CHRG7K-SW/2205_ctc_chrg7k_sw_cpu1/sources/includes" --include_path="C:/Users/a.thurin/Desktop/Projets logiciels/2205-CTC-CHRG7K-SW/2205_ctc_chrg7k_sw_multi/shared_includes" --include_path="C:/Users/a.thurin/Desktop/Projets logiciels/2205-CTC-CHRG7K-SW/2205_ctc_chrg7k_sw_cpu1" --include_path="C:/Users/a.thurin/Desktop/Projets logiciels/2205-CTC-CHRG7K-SW/2205_ctc_chrg7k_sw_cpu1/device" --include_path="C:/TI/SDK/C2000Ware/C2000Ware_5_01_00_00/driverlib/f2838x/driverlib" --include_path="C:/TI/CCS/CCS12.50/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include" --advice:performance=all --define=_FLASH --define=DEBUG --define=CPU1 --diag_suppress=10063 --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi --preproc_with_compile --preproc_dependency="syscfg/board.d_raw" --include_path="C:/Users/a.thurin/Desktop/Projets logiciels/2205-CTC-CHRG7K-SW/2205_ctc_chrg7k_sw_cpu1/FLASH/syscfg" --obj_directory="syscfg" --cmd_file="syscfg/board.opt" --cmd_file="syscfg/device_cmd.opt" --cmd_file="syscfg/c2000ware_libraries.opt" "syscfg/board.c" Finished building: "syscfg/board.c" Building target: "2205_ctc_chrg7k_sw_cpu1.out" Invoking: C2000 Linker "C:/TI/CCS/CCS12.50/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/bin/cl2000" --cmd_file="syscfg/device_cmd.opt" -v28 -ml -mt --cla_support=cla2 --float_support=fpu32 --idiv_support=idiv0 --tmu_support=tmu0 --vcu_support=vcrc -Ooff --fp_mode=relaxed --advice:performance=all --define=_FLASH --define=DEBUG --define=CPU1 --diag_suppress=10063 --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi -z -m"2205_ctc_chrg7k_sw_cpu1.map" --heap_size=0x200 --stack_size=0x3F8 --warn_sections -i"C:/TI/CCS/CCS12.50/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/lib" -i"C:/TI/CCS/CCS12.50/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include" --reread_libs --diag_wrap=off --display_error_number --xml_link_info="2205_ctc_chrg7k_sw_cpu1_linkInfo.xml" --entry_point=code_start --rom_model -o "2205_ctc_chrg7k_sw_cpu1.out" "./syscfg/board.obj" "./syscfg/device_cmd.obj" "./syscfg/c2000ware_libraries.obj" "./device/F2838x_CodeStartBranch.obj" "./device/device.obj" "./sources/converter_io.obj" "./sources/init_cla_cpu1.obj" "./sources/main_cpu1.obj" "./sources/pll_pfc.obj" "./sources/regulation_pfc.obj" "./sources/supervision_cpu1.obj" "C:/TI/SDK/C2000Ware/C2000Ware_5_01_00_00/driverlib/f2838x/driverlib/ccs/Debug/driverlib.lib" "../sources/includes/SFO_v8_fpu_lib_build_c28_driverlib_eabi.lib" -l"syscfg/device_cmd.cmd" -llibc.a <Linking> warning #10461-D: Invalid to call C28 function "sqrtf" defined in "C:\TI\CCS\CCS12.50\ccs\tools\compiler\ti-cgt-c2000_22.6.1.LTS\lib\rts2800_fpu64_eabi.lib<e_sqrtf.c.obj>" from CLA file "./sources/regulation_pfc.obj" warning #10247-D: creating output section ".text" without a SECTIONS specification warning #10247-D: creating output section ".data" without a SECTIONS specification warning #10247-D: creating output section ".bss" without a SECTIONS specification warning #10247-D: creating output section ".cinit" without a SECTIONS specification warning #10247-D: creating output section ".const" without a SECTIONS specification warning #10247-D: creating output section "codestart" without a SECTIONS specification warning #10247-D: creating output section "CpuToCla1MsgRAM" without a SECTIONS specification warning #10247-D: creating output section ".bss_cla" without a SECTIONS specification warning #10247-D: creating output section "Cla1Prog" without a SECTIONS specification warning #10247-D: creating output section ".scratchpad" without a SECTIONS specification error #10430-D: ".TI.ramfunc" section generated by __attribute__((ramfunc)) or --ramfunc=on requires a SECTIONS specification to function. error #10010: errors encountered during linking; "2205_ctc_chrg7k_sw_cpu1.out" not built >> Compilation failure makefile:152: recipe for target '2205_ctc_chrg7k_sw_cpu1.out' failed gmake[1]: *** [2205_ctc_chrg7k_sw_cpu1.out] Error 1 makefile:148: recipe for target 'all' failed gmake: *** [all] Error 2 **** Build Finished ****
Best regards,
Adrien
Adrien,
Looks like the contents of the linker command file is not getting linked.
You need to define the appropriate macro (generic_flash_lnk or generic_ram_lnk) used in the device_cmd.cmd file in the project properties as shown below.
Best Regards
Siddharth
Siddharth,
I added the generic_flash_lnk command, but the result is the same. Same with generic_ram_lnk. Also, there is no reference to a generic anything in the generated cmd file.
Even if it worked, wouldn't that point towards a .cmd other than the generated one ?
Best regards,
Adrien
Adrien,
Pls share the device_cmd.cmd file that is generated.
I did not mean adding a new linker command file , only the macro used with the generated device_cmd.cmd file .
Best Regards
Siddharth
Siddharth,
OK, I get it now ! And the problem is solved !
Here is the generated cmd file :
#ifdef CMD_FLASH MEMORY { RAMM0 : origin = 0x0001B1, length = 0x00024F RAMM1 : origin = 0x000400, length = 0x0003F8 CLATOCPU_MSGRAM : origin = 0x001480, length = 0x000080 CPUTOCLA_MSGRAM : origin = 0x001500, length = 0x000080 CLATODMA_MSGRAM : origin = 0x001680, length = 0x000080 DMATOCLA_MSGRAM : origin = 0x001700, length = 0x000080 CLA1_RAM_COMBINATION : origin = 0x008000, length = 0x001800 RAMLS3 : origin = 0x009800, length = 0x000800 RAMLS4 : origin = 0x00A000, length = 0x000800 RAMLS5 : origin = 0x00A800, length = 0x000800 RAMLS6 : origin = 0x00B000, length = 0x000800 RAMLS7 : origin = 0x00B800, length = 0x000800 RAMD0 : origin = 0x00C000, length = 0x000800 RAMD1 : origin = 0x00C800, length = 0x000800 RAMGS0 : origin = 0x00D000, length = 0x001000 RAMGS1 : origin = 0x00E000, length = 0x001000 RAMGS2 : origin = 0x00F000, length = 0x001000 RAMGS3 : origin = 0x010000, length = 0x001000 RAMGS4 : origin = 0x011000, length = 0x001000 RAMGS5 : origin = 0x012000, length = 0x001000 RAMGS6 : origin = 0x013000, length = 0x001000 RAMGS7 : origin = 0x014000, length = 0x001000 RAMGS8 : origin = 0x015000, length = 0x001000 RAMGS9 : origin = 0x016000, length = 0x001000 RAMGS10 : origin = 0x017000, length = 0x001000 RAMGS11 : origin = 0x018000, length = 0x001000 RAMGS12 : origin = 0x019000, length = 0x001000 RAMGS13 : origin = 0x01A000, length = 0x001000 RAMGS14 : origin = 0x01B000, length = 0x001000 RAMGS15 : origin = 0x01C000, length = 0x000FF8 CMTOCPURAM : origin = 0x038000, length = 0x000800 CPUTOCMRAM : origin = 0x039000, length = 0x000800 CPU1TOCPU2RAM : origin = 0x03A000, length = 0x000800 CPU2TOCPU1RAM : origin = 0x03B000, length = 0x000800 FLASH0 : origin = 0x080000, length = 0x002000 FLASH1 : origin = 0x082000, length = 0x002000 FLASH2 : origin = 0x084000, length = 0x002000 FLASH3 : origin = 0x086000, length = 0x002000 FLASH4 : origin = 0x088000, length = 0x008000 FLASH5 : origin = 0x090000, length = 0x008000 FLASH6 : origin = 0x098000, length = 0x008000 FLASH7 : origin = 0x0A0000, length = 0x008000 FLASH8 : origin = 0x0A8000, length = 0x008000 FLASH9 : origin = 0x0B0000, length = 0x008000 FLASH10 : origin = 0x0B8000, length = 0x002000 FLASH11 : origin = 0x0BA000, length = 0x002000 FLASH12 : origin = 0x0BC000, length = 0x002000 FLASH13 : origin = 0x0BE000, length = 0x002000 RESET : origin = 0x3FFFC0, length = 0x000002 } SECTIONS { // // C28x Sections // .reset : > RESET, TYPE = DSECT /* not used, */ codestart : > 0x080000 .text : >> FLASH1 | FLASH2 | FLASH3 | FLASH4, ALIGN(8) .TI.ramfunc : LOAD > FLASH3, RUN > RAMGS1, TABLE(BINIT), LOAD_START(loadStart_ramfunc), LOAD_END(loadEnd_ramfunc), LOAD_SIZE(loadSize_ramfunc), RUN_START(runStart_ramfunc), RUN_END(runEnd_ramfunc), RUN_SIZE(runSize_ramfunc), ALIGN(8) .binit : > FLASH4, ALIGN(8) .ovly : > FLASH1, ALIGN(8) .cinit : > FLASH4, ALIGN(8) .stack : > RAMM1 .init_array : > FLASH1, ALIGN(8) .bss : > RAMGS1 .const : > FLASH5, ALIGN(8) .data : > RAMGS1 .switch : > FLASH1, ALIGN(8) .sysmem : > RAMGS1 // // CLA Sections // Cla1Prog : LOAD > FLASH4, RUN > CLA1_RAM_COMBINATION, TABLE(BINIT), LOAD_START(loadStart_cla1Prog), LOAD_END(loadEnd_cla1Prog), LOAD_SIZE(loadSize_cla1Prog), RUN_START(runStart_cla1Prog), ALIGN(8) .const_cla : LOAD > FLASH2, RUN > RAMLS3, TABLE(BINIT), LOAD_START(loadStart_claConst), LOAD_SIZE(loadSize_claConst), RUN_START(runStart_claConst), ALIGN(8) .scratchpad : > RAMLS3 .bss_cla : > RAMLS3 cla1ToCpuMsgRAM : > CLATOCPU_MSGRAM, TYPE(NOINIT) cpuToCla1MsgRAM : > CPUTOCLA_MSGRAM, TYPE(NOINIT) MSGRAM_CPU1_TO_CPU2 : > CPU1TOCPU2RAM, type=NOINIT MSGRAM_CPU2_TO_CPU1 : > CPU2TOCPU1RAM, type=NOINIT MSGRAM_CPU_TO_CM : > CPUTOCMRAM, type=NOINIT MSGRAM_CM_TO_CPU : > CMTOCPURAM, type=NOINIT } #endif /* //=========================================================================== // End of file. //=========================================================================== */
Following your previous message, I added the CMD_FLASH to the compiler predefined symbol (+ added generic_flash_lnk in the linker predefined symbols).
Now I understand what you meant, I added the CMD_FLASH as linker predefined symbol, and now it works
Thank you very much for your help !
Best regards,
Adrien
I should say I still have 1 error :
warning #10247-D: creating output section "CpuToCla1MsgRAM" without a SECTIONS specification
This corresponds to the section that has the strange warning (see first post).
If you have a solution for that, it would be awsome !
I also saw there were similar warnings for the CPU2 cmd configuration, hopefully the solution will work for both.
Hi,
You will have to add a section for cpuToCla1MsgRAM as shown below to get rid of this warning
Best Regards
Siddharth
Adrien,
I am not sure what you meant, please clarify.
Best Regards
Siddharth
Siddharth,
I don't know what is going on, that's the issue. There is this warning in the CMD section (only in the CPUTOCLA subsection) that says that MEMCFG needs to be enabled. Except it is (see very first screenshot in this thread), and it works for all other subsections.
The result is that there is no cpu to cla section in the generated cmd file, which causes errors in compilation.
There are other subsections in the cpu2 that seem to have a similar issue, but I wouldn't be surprised if it was the same issue, so I will get back to you if solving this one doesn't solve the others.
Best regards,
Adrien
Adrien
I see that in the generated there is a already a memory CPUTOCLA_MSGRAM allocated for the cpuToCla1MsdRAM section in the generated linker command. Are you getting a warning or an error during the compilation?
Best Regards
Siddharth
Siddharth,
This is very strange, I would have sworn it wasn't there last time I checked.
The warning during linking has gone for CPU1 (but the warning in sysconfig is still there).
I moved to CPU2, and the linking warning is there too, despite an identical configuration of the sysconfig CMD Module. There are also additionnal warnings, see below.
In Sysconfig, the warning regarding memcfg needed to be activated is there in the CpuToClaMsgRAM section. There is also the same warning in sysconfig as during the linking in the sections that use GSRAM.
This doesn't prevent compilation so I can try to carry on, but I can only hope it won't cause issues in operations ...
Is there a chance there might be a problem with sysconfig, that would cause these warnings ?
Best regards,
Adrien