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.

Memory problem while building a project

Hi

I am trying build a lab exercise from Two channel buck and when i tries to build the project a memory allocation problem has been surfaced.

  I am posting the code here, how could i rectify this error.It says memory allocation already done

Board using- digital experimenter kit

Controller- F2808

CCS -5.3

Code- Labs


**** Build of configuration Debug for project twoc ****

"C:\\ti\\ccsv5\\utils\\bin\\gmake" -k all
'Building file: C:/Users/arun/Desktop/amrita smart/Modules and code/C2833x_CCS4/Modules/Module_19/Labs/PowerLIB/ADC_CascSeqCnf.c'
'Invoking: C2000 Compiler'
"C:/ti/ccsv5/tools/compiler/c2000_6.1.0/bin/cl2000" -v28 -ml -mt -g --include_path="C:/ti/ccsv5/tools/compiler/c2000_6.1.0/include" --include_path="C:/TI_F28xxx_SysSW/~SupportFiles/DSP280x_headers/include" --include_path="C:/TI_F28xxx_SysSW/~SupportFiles/DSP280x_headers" --include_path="F:/amrita smart/C2833x_CCS4/Modules/Module_19/Labs/Common_Source" --include_path="F:/amrita smart/C2833x_CCS4/Modules/Module_19/Labs/include" --include_path="F:/amrita smart/C2833x_CCS4/Modules/Module_19/Labs/DSP280x_headers/include" --include_path="F:/amrita smart/C2833x_CCS4/Modules/Module_19/Labs/PowerLIB" --include_path="C:/TI_F28xxx_SysSW/~SupportFiles/source" --diag_warning=225 --display_error_number --diag_wrap=off --preproc_with_compile --preproc_dependency="ADC_CascSeqCnf.pp"  "C:/Users/arun/Desktop/amrita smart/Modules and code/C2833x_CCS4/Modules/Module_19/Labs/PowerLIB/ADC_CascSeqCnf.c"
'Finished building: C:/Users/arun/Desktop/amrita smart/Modules and code/C2833x_CCS4/Modules/Module_19/Labs/PowerLIB/ADC_CascSeqCnf.c'
' '
'Building file: C:/Users/arun/Desktop/amrita smart/Modules and code/C2833x_CCS4/Modules/Module_19/Labs/PowerLIB/ADC_DualSeqCnf.c'
'Invoking: C2000 Compiler'
"C:/ti/ccsv5/tools/compiler/c2000_6.1.0/bin/cl2000" -v28 -ml -mt -g --include_path="C:/ti/ccsv5/tools/compiler/c2000_6.1.0/include" --include_path="C:/TI_F28xxx_SysSW/~SupportFiles/DSP280x_headers/include" --include_path="C:/TI_F28xxx_SysSW/~SupportFiles/DSP280x_headers" --include_path="F:/amrita smart/C2833x_CCS4/Modules/Module_19/Labs/Common_Source" --include_path="F:/amrita smart/C2833x_CCS4/Modules/Module_19/Labs/include" --include_path="F:/amrita smart/C2833x_CCS4/Modules/Module_19/Labs/DSP280x_headers/include" --include_path="F:/amrita smart/C2833x_CCS4/Modules/Module_19/Labs/PowerLIB" --include_path="C:/TI_F28xxx_SysSW/~SupportFiles/source" --diag_warning=225 --display_error_number --diag_wrap=off --preproc_with_compile --preproc_dependency="ADC_DualSeqCnf.pp"  "C:/Users/arun/Desktop/amrita smart/Modules and code/C2833x_CCS4/Modules/Module_19/Labs/PowerLIB/ADC_DualSeqCnf.c"
'Finished building: C:/Users/arun/Desktop/amrita smart/Modules and code/C2833x_CCS4/Modules/Module_19/Labs/PowerLIB/ADC_DualSeqCnf.c'
' '
'Building file: C:/Users/arun/Desktop/amrita smart/Modules and code/C2833x_CCS4/Modules/Module_19/Labs/PowerLIB/BuckSingle_PwmCnf.c'
'Invoking: C2000 Compiler'
"C:/ti/ccsv5/tools/compiler/c2000_6.1.0/bin/cl2000" -v28 -ml -mt -g --include_path="C:/ti/ccsv5/tools/compiler/c2000_6.1.0/include" --include_path="C:/TI_F28xxx_SysSW/~SupportFiles/DSP280x_headers/include" --include_path="C:/TI_F28xxx_SysSW/~SupportFiles/DSP280x_headers" --include_path="F:/amrita smart/C2833x_CCS4/Modules/Module_19/Labs/Common_Source" --include_path="F:/amrita smart/C2833x_CCS4/Modules/Module_19/Labs/include" --include_path="F:/amrita smart/C2833x_CCS4/Modules/Module_19/Labs/DSP280x_headers/include" --include_path="F:/amrita smart/C2833x_CCS4/Modules/Module_19/Labs/PowerLIB" --include_path="C:/TI_F28xxx_SysSW/~SupportFiles/source" --diag_warning=225 --display_error_number --diag_wrap=off --preproc_with_compile --preproc_dependency="BuckSingle_PwmCnf.pp"  "C:/Users/arun/Desktop/amrita smart/Modules and code/C2833x_CCS4/Modules/Module_19/Labs/PowerLIB/BuckSingle_PwmCnf.c"
'Finished building: C:/Users/arun/Desktop/amrita smart/Modules and code/C2833x_CCS4/Modules/Module_19/Labs/PowerLIB/BuckSingle_PwmCnf.c'
' '
'Building file: C:/Users/arun/Desktop/amrita smart/Modules and code/C2833x_CCS4/Modules/Module_19/Labs/Common_Source/DSP280x_CodeStartBranch.asm'
'Invoking: C2000 Compiler'
"C:/ti/ccsv5/tools/compiler/c2000_6.1.0/bin/cl2000" -v28 -ml -mt -g --include_path="C:/ti/ccsv5/tools/compiler/c2000_6.1.0/include" --include_path="C:/TI_F28xxx_SysSW/~SupportFiles/DSP280x_headers/include" --include_path="C:/TI_F28xxx_SysSW/~SupportFiles/DSP280x_headers" --include_path="F:/amrita smart/C2833x_CCS4/Modules/Module_19/Labs/Common_Source" --include_path="F:/amrita smart/C2833x_CCS4/Modules/Module_19/Labs/include" --include_path="F:/amrita smart/C2833x_CCS4/Modules/Module_19/Labs/DSP280x_headers/include" --include_path="F:/amrita smart/C2833x_CCS4/Modules/Module_19/Labs/PowerLIB" --include_path="C:/TI_F28xxx_SysSW/~SupportFiles/source" --diag_warning=225 --display_error_number --diag_wrap=off --preproc_with_compile --preproc_dependency="DSP280x_CodeStartBranch.pp"  "C:/Users/arun/Desktop/amrita smart/Modules and code/C2833x_CCS4/Modules/Module_19/Labs/Common_Source/DSP280x_CodeStartBranch.asm"
'Finished building: C:/Users/arun/Desktop/amrita smart/Modules and code/C2833x_CCS4/Modules/Module_19/Labs/Common_Source/DSP280x_CodeStartBranch.asm'
' '
'Building file: C:/Users/arun/Desktop/amrita smart/Modules and code/C2833x_CCS4/Modules/Module_19/Labs/Common_Source/DSP280x_GlobalVariableDefs.c'
'Invoking: C2000 Compiler'
"C:/ti/ccsv5/tools/compiler/c2000_6.1.0/bin/cl2000" -v28 -ml -mt -g --include_path="C:/ti/ccsv5/tools/compiler/c2000_6.1.0/include" --include_path="C:/TI_F28xxx_SysSW/~SupportFiles/DSP280x_headers/include" --include_path="C:/TI_F28xxx_SysSW/~SupportFiles/DSP280x_headers" --include_path="F:/amrita smart/C2833x_CCS4/Modules/Module_19/Labs/Common_Source" --include_path="F:/amrita smart/C2833x_CCS4/Modules/Module_19/Labs/include" --include_path="F:/amrita smart/C2833x_CCS4/Modules/Module_19/Labs/DSP280x_headers/include" --include_path="F:/amrita smart/C2833x_CCS4/Modules/Module_19/Labs/PowerLIB" --include_path="C:/TI_F28xxx_SysSW/~SupportFiles/source" --diag_warning=225 --display_error_number --diag_wrap=off --preproc_with_compile --preproc_dependency="DSP280x_GlobalVariableDefs.pp"  "C:/Users/arun/Desktop/amrita smart/Modules and code/C2833x_CCS4/Modules/Module_19/Labs/Common_Source/DSP280x_GlobalVariableDefs.c"
'Finished building: C:/Users/arun/Desktop/amrita smart/Modules and code/C2833x_CCS4/Modules/Module_19/Labs/Common_Source/DSP280x_GlobalVariableDefs.c'
' '
'Building file: C:/Users/arun/Desktop/amrita smart/Modules and code/C2833x_CCS4/Modules/Module_19/Labs/Lab2/TwoChannel-DevInit.c'
'Invoking: C2000 Compiler'
"C:/ti/ccsv5/tools/compiler/c2000_6.1.0/bin/cl2000" -v28 -ml -mt -g --include_path="C:/ti/ccsv5/tools/compiler/c2000_6.1.0/include" --include_path="C:/TI_F28xxx_SysSW/~SupportFiles/DSP280x_headers/include" --include_path="C:/TI_F28xxx_SysSW/~SupportFiles/DSP280x_headers" --include_path="F:/amrita smart/C2833x_CCS4/Modules/Module_19/Labs/Common_Source" --include_path="F:/amrita smart/C2833x_CCS4/Modules/Module_19/Labs/include" --include_path="F:/amrita smart/C2833x_CCS4/Modules/Module_19/Labs/DSP280x_headers/include" --include_path="F:/amrita smart/C2833x_CCS4/Modules/Module_19/Labs/PowerLIB" --include_path="C:/TI_F28xxx_SysSW/~SupportFiles/source" --diag_warning=225 --display_error_number --diag_wrap=off --preproc_with_compile --preproc_dependency="TwoChannel-DevInit.pp"  "C:/Users/arun/Desktop/amrita smart/Modules and code/C2833x_CCS4/Modules/Module_19/Labs/Lab2/TwoChannel-DevInit.c"
'Finished building: C:/Users/arun/Desktop/amrita smart/Modules and code/C2833x_CCS4/Modules/Module_19/Labs/Lab2/TwoChannel-DevInit.c'
' '
'Building file: C:/Users/arun/Desktop/amrita smart/Modules and code/C2833x_CCS4/Modules/Module_19/Labs/Lab2/TwoChannel-ISR.asm'
'Invoking: C2000 Compiler'
"C:/ti/ccsv5/tools/compiler/c2000_6.1.0/bin/cl2000" -v28 -ml -mt -g --include_path="C:/ti/ccsv5/tools/compiler/c2000_6.1.0/include" --include_path="C:/TI_F28xxx_SysSW/~SupportFiles/DSP280x_headers/include" --include_path="C:/TI_F28xxx_SysSW/~SupportFiles/DSP280x_headers" --include_path="F:/amrita smart/C2833x_CCS4/Modules/Module_19/Labs/Common_Source" --include_path="F:/amrita smart/C2833x_CCS4/Modules/Module_19/Labs/include" --include_path="F:/amrita smart/C2833x_CCS4/Modules/Module_19/Labs/DSP280x_headers/include" --include_path="F:/amrita smart/C2833x_CCS4/Modules/Module_19/Labs/PowerLIB" --include_path="C:/TI_F28xxx_SysSW/~SupportFiles/source" --diag_warning=225 --display_error_number --diag_wrap=off --preproc_with_compile --preproc_dependency="TwoChannel-ISR.pp"  "C:/Users/arun/Desktop/amrita smart/Modules and code/C2833x_CCS4/Modules/Module_19/Labs/Lab2/TwoChannel-ISR.asm"
'Finished building: C:/Users/arun/Desktop/amrita smart/Modules and code/C2833x_CCS4/Modules/Module_19/Labs/Lab2/TwoChannel-ISR.asm'
' '
'Building file: ../main.c'
'Invoking: C2000 Compiler'
"C:/ti/ccsv5/tools/compiler/c2000_6.1.0/bin/cl2000" -v28 -ml -mt -g --include_path="C:/ti/ccsv5/tools/compiler/c2000_6.1.0/include" --include_path="C:/TI_F28xxx_SysSW/~SupportFiles/DSP280x_headers/include" --include_path="C:/TI_F28xxx_SysSW/~SupportFiles/DSP280x_headers" --include_path="F:/amrita smart/C2833x_CCS4/Modules/Module_19/Labs/Common_Source" --include_path="F:/amrita smart/C2833x_CCS4/Modules/Module_19/Labs/include" --include_path="F:/amrita smart/C2833x_CCS4/Modules/Module_19/Labs/DSP280x_headers/include" --include_path="F:/amrita smart/C2833x_CCS4/Modules/Module_19/Labs/PowerLIB" --include_path="C:/TI_F28xxx_SysSW/~SupportFiles/source" --diag_warning=225 --display_error_number --diag_wrap=off --preproc_with_compile --preproc_dependency="main.pp"  "../main.c"
'Finished building: ../main.c'
' '
'Building target: twoc.out'
'Invoking: C2000 Linker'
"C:/ti/ccsv5/tools/compiler/c2000_6.1.0/bin/cl2000" -v28 -ml -mt -g --diag_warning=225 --display_error_number --diag_wrap=off -z --stack_size=0x300 -m"twoc.map" --warn_sections -i"C:/ti/ccsv5/tools/compiler/c2000_6.1.0/lib" -i"C:/ti/ccsv5/tools/compiler/c2000_6.1.0/include" --reread_libs --display_error_number --diag_wrap=off --rom_model -o "twoc.out"  "./main.obj" "./TwoChannel-ISR.obj" "./TwoChannel-DevInit.obj" "./DSP280x_GlobalVariableDefs.obj" "./DSP280x_CodeStartBranch.obj" "./BuckSingle_PwmCnf.obj" "./ADC_DualSeqCnf.obj" "./ADC_CascSeqCnf.obj" -l"libc.a" "../2808_RAM_lnk.cmd" "C:/Users/arun/Desktop/amrita smart/Modules and code/C2833x_CCS4/Modules/Module_19/Labs/Common_Source/DSP280x_Headers_nonBIOS.cmd" "C:/Users/arun/Desktop/amrita smart/Modules and code/C2833x_CCS4/Modules/Module_19/Labs/Common_Source/F2806_RAM_PowerLib.cmd"
<Linking>
"C:/Users/arun/Desktop/amrita smart/Modules and code/C2833x_CCS4/Modules/Module_19/Labs/Common_Source/F2806_RAM_PowerLib.cmd", line 27: error #10263:
   BEGIN memory range has already been specified
"C:/Users/arun/Desktop/amrita smart/Modules and code/C2833x_CCS4/Modules/Module_19/Labs/Common_Source/F2806_RAM_PowerLib.cmd", line 27: error #10264:
   BEGIN memory range overlaps existing memory range BEGIN
"C:/Users/arun/Desktop/amrita smart/Modules and code/C2833x_CCS4/Modules/Module_19/Labs/Common_Source/F2806_RAM_PowerLib.cmd", line 28: error #10263:
   RAMM0 memory range has already been specified
"C:/Users/arun/Desktop/amrita smart/Modules and code/C2833x_CCS4/Modules/Module_19/Labs/Common_Source/F2806_RAM_PowerLib.cmd", line 28: error #10264:
   RAMM0 memory range overlaps existing memory range RAMM0
"C:/Users/arun/Desktop/amrita smart/Modules and code/C2833x_CCS4/Modules/Module_19/Labs/Common_Source/F2806_RAM_PowerLib.cmd", line 29: error #10264:
   progRAM memory range overlaps existing memory range RAML0
"C:/Users/arun/Desktop/amrita smart/Modules and code/C2833x_CCS4/Modules/Module_19/Labs/Common_Source/F2806_RAM_PowerLib.cmd", line 31: error #10263:
   RESET memory range has already been specified
"C:/Users/arun/Desktop/amrita smart/Modules and code/C2833x_CCS4/Modules/Module_19/Labs/Common_Source/F2806_RAM_PowerLib.cmd", line 31: error #10264:
   RESET memory range overlaps existing memory range RESET
"C:/Users/arun/Desktop/amrita smart/Modules and code/C2833x_CCS4/Modules/Module_19/Labs/Common_Source/F2806_RAM_PowerLib.cmd", line 32: error #10263:
   BOOTROM memory range has already been specified
"C:/Users/arun/Desktop/amrita smart/Modules and code/C2833x_CCS4/Modules/Module_19/Labs/Common_Source/F2806_RAM_PowerLib.cmd", line 32: error #10264:
   BOOTROM memory range overlaps existing memory range BOOTROM
"C:/Users/arun/Desktop/amrita smart/Modules and code/C2833x_CCS4/Modules/Module_19/Labs/Common_Source/F2806_RAM_PowerLib.cmd", line 37: error #10264:
   RAMM1 memory range overlaps existing memory range BOOT_RSVD
"C:/Users/arun/Desktop/amrita smart/Modules and code/C2833x_CCS4/Modules/Module_19/Labs/Common_Source/F2806_RAM_PowerLib.cmd", line 37: error #10263:
   RAMM1 memory range has already been specified
"C:/Users/arun/Desktop/amrita smart/Modules and code/C2833x_CCS4/Modules/Module_19/Labs/Common_Source/F2806_RAM_PowerLib.cmd", line 37: error #10264:
   RAMM1 memory range overlaps existing memory range RAMM1
error #10010: errors encountered during linking; "twoc.out" not built

>> Compilation failure
gmake: *** [twoc.out] Error 1
gmake: Target `all' not remade because of errors.

**** Build Finished ****

I guess it is a problem from RAM_Powerlib.cmd

Please inform if you can suggest any measures

Thank you

Arun

  • Arun,

    As you can see in the link command, there is more than one linker command file being passed to the linker. I suspect there is a conflict or duplicate memory ranges being defined. I would suggest checking the MEMORY directive inside 2808_RAM_lnk.cmd and F2806_RAM_PowerLib.cmd and make sure that a memory range with the same name is not defined in both files.