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.

how to change memory map in sysbios

Other Parts Discussed in Thread: OMAPL138, SYSBIOS, TMS320C6748

hello,I use the omapl138 borad,I want  to add memory map to my arm project. with Tools->RTSC Tools->Platform->new ,I create a new platform,set it as follows,

However,The memory map haven't any change,in the project direction /debug/configPkg/linker.cmd ,the SECTION is the same with before create it .the .

MEMORY
{
    IRAM (RWX) : org = 0xffff0000, len = 0x2000
    L3_CBA_RAM (RWX) : org = 0x80000000, len = 0x20000
    DDR : org = 0xc3000000, len = 0x1000000
}

 

I want to know how to change memory map in sysbios.

Thanks.

  • Hi gao weidong

    Check If  the RTSC Platform that your project used is the one you just create!

  • it is in the my project that I created just.In my project direction have a folder,named "myboard" .so it is no error on operator.

  • gao weidong,
    can you go to Project Properties->CCS Build->XDCtools->Advanced Options, and turn on "Show details during build"? Then please clean and rebuild the project and post the console output.

  • Hi,Sasha,I haved done it as you say, the console output:


    **** Build of configuration Debug for project arm ****

    C:\Program Files\Texas Instruments\ccsv4\utils\gmake\gmake -k all
    'Building file: ../app.cfg'
    'Invoking: XDCtools'
    "C:/Program Files/Texas Instruments/xdctools_3_22_01_21/xs" --xdcpath="C:/Program Files/Texas Instruments/bios_6_32_02_39/packages;C:/Program Files/Texas Instruments/ipc_1_23_02_27/packages;E:/AUDIO_SMART_V2/22;" xdc.tools.configuro -o configPkg -t ti.targets.arm.elf.Arm9 -p ti.platforms.expOMAPL138 -r release -b "E:/AUDIO_SMART_V2/22/myBoard/config.bld" -c "C:/Program Files/Texas Instruments/ccsv4/tools/compiler/tms470" -v "../app.cfg"
    #
    # making package.mak (because of package.bld) ...
    C:/PROGRA~1/TEXASI~1/xdctools_3_22_01_21/xs  -Dxdc.path="C:/PROGRA~1/TEXASI~1/bios_6_32_02_39/packages;C:/PROGRA~1/TEXASI~1/ipc_1_23_02_27/packages;E:/AUDIO_SMART_V2/22;C:/PROGRA~1/TEXASI~1/xdctools_3_22_01_21/packages;.." -Dxdc.root=C:/PROGRA~1/TEXASI~1/xdctools_3_22_01_21 -Dxdc.hostOS=Windows -Dconfig.importPath=".;C:/PROGRA~1/TEXASI~1/bios_6_32_02_39/packages;C:/PROGRA~1/TEXASI~1/ipc_1_23_02_27/packages;E:/AUDIO_SMART_V2/22;C:/PROGRA~1/TEXASI~1/xdctools_3_22_01_21/packages;..;C:/PROGRA~1/TEXASI~1/xdctools_3_22_01_21;C:/PROGRA~1/TEXASI~1/xdctools_3_22_01_21/etc" -Dxdc.bld.targets="" -DTOOLS=   -f C:/PROGRA~1/TEXASI~1/xdctools_3_22_01_21/packages/xdc/bld/bld.js ./config.bld package.bld package.mak
    #
    # generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
    C:/PROGRA~1/TEXASI~1/xdctools_3_22_01_21/xs -Dxdc.path="C:/PROGRA~1/TEXASI~1/bios_6_32_02_39/packages;C:/PROGRA~1/TEXASI~1/ipc_1_23_02_27/packages;E:/AUDIO_SMART_V2/22;C:/PROGRA~1/TEXASI~1/xdctools_3_22_01_21/packages;.." -Dxdc.root=C:/PROGRA~1/TEXASI~1/xdctools_3_22_01_21 -Dxdc.hostOS=Windows -Dconfig.importPath=".;C:/PROGRA~1/TEXASI~1/bios_6_32_02_39/packages;C:/PROGRA~1/TEXASI~1/ipc_1_23_02_27/packages;E:/AUDIO_SMART_V2/22;C:/PROGRA~1/TEXASI~1/xdctools_3_22_01_21/packages;..;C:/PROGRA~1/TEXASI~1/xdctools_3_22_01_21;C:/PROGRA~1/TEXASI~1/xdctools_3_22_01_21/etc" -Dxdc.bld.targets="" -DTOOLS=  -f xdc/services/intern/cmd/build.xs  -m package/package.xdc.dep -i package/package.xdc.inc package.xdc
    #
    # configuring app.pe9 from package/cfg/app_pe9.cfg ...
    C:/PROGRA~1/TEXASI~1/xdctools_3_22_01_21/xs -Dxdc.path="C:/PROGRA~1/TEXASI~1/bios_6_32_02_39/packages;C:/PROGRA~1/TEXASI~1/ipc_1_23_02_27/packages;E:/AUDIO_SMART_V2/22;C:/PROGRA~1/TEXASI~1/xdctools_3_22_01_21/packages;.." -Dxdc.root=C:/PROGRA~1/TEXASI~1/xdctools_3_22_01_21 -Dxdc.hostOS=Windows -Dconfig.importPath=".;C:/PROGRA~1/TEXASI~1/bios_6_32_02_39/packages;C:/PROGRA~1/TEXASI~1/ipc_1_23_02_27/packages;E:/AUDIO_SMART_V2/22;C:/PROGRA~1/TEXASI~1/xdctools_3_22_01_21/packages;..;C:/PROGRA~1/TEXASI~1/xdctools_3_22_01_21;C:/PROGRA~1/TEXASI~1/xdctools_3_22_01_21/etc" -Dxdc.bld.targets="" -DTOOLS=   xdc.cfg app.pe9 package/cfg/app_pe9.cfg package/cfg/app_pe9
    C:/PROGRA~1/TEXASI~1/xdctools_3_22_01_21/bin/sed 's"^\"\(package/cfg/app_pe9cfg.cmd\)\""\"E:/AUDIO_SMART_V2/22/Debug/configPkg/\1\""' package/cfg/app_pe9.xdl > linker.cmd
    C:/PROGRA~1/TEXASI~1/xdctools_3_22_01_21/bin/rm -f package/cfg/app_pe9.oe9
    #
    # cle9 package/cfg/app_pe9.c ...
    C:/PROGRA~1/TEXASI~1/ccsv4/tools/compiler/tms470/bin/cl470 -c  -qq -pdsw225 -ms --fp_mode=strict -me -mv5e --abi=eabi -eo.oe9 -ea.se9  --embed_inline_assembly  -Dxdc_cfg__header__='configPkg/package/cfg/app_pe9.h'  -Dxdc_target_name__=Arm9 -Dxdc_target_types__=ti/targets/arm/elf/std.h -Dxdc_bld__profile_release -Dxdc_bld__vers_1_0_4_9_0 -O2  -I. -IC:/PROGRA~1/TEXASI~1/bios_6_32_02_39/packages -IC:/PROGRA~1/TEXASI~1/ipc_1_23_02_27/packages -IE:/AUDIO_SMART_V2/22 -IC:/PROGRA~1/TEXASI~1/xdctools_3_22_01_21/packages -I.. -IC:/PROGRA~1/TEXASI~1/ccsv4/tools/compiler/tms470/include/rts -IC:/PROGRA~1/TEXASI~1/ccsv4/tools/compiler/tms470/include  -fs=./package/cfg -fr=./package/cfg -fc package/cfg/app_pe9.c
    C:/PROGRA~1/TEXASI~1/xdctools_3_22_01_21/bin/mkdep -a package/cfg/app_pe9.oe9.dep -p package/cfg -s oe9 package/cfg/app_pe9.c -C   -qq -pdsw225 -ms --fp_mode=strict -me -mv5e --abi=eabi -eo.oe9 -ea.se9  --embed_inline_assembly  -Dxdc_cfg__header__='configPkg/package/cfg/app_pe9.h'  -Dxdc_target_name__=Arm9 -Dxdc_target_types__=ti/targets/arm/elf/std.h -Dxdc_bld__profile_release -Dxdc_bld__vers_1_0_4_9_0 -O2  -I. -IC:/PROGRA~1/TEXASI~1/bios_6_32_02_39/packages -IC:/PROGRA~1/TEXASI~1/ipc_1_23_02_27/packages -IE:/AUDIO_SMART_V2/22 -IC:/PROGRA~1/TEXASI~1/xdctools_3_22_01_21/packages -I.. -IC:/PROGRA~1/TEXASI~1/ccsv4/tools/compiler/tms470/include/rts -IC:/PROGRA~1/TEXASI~1/ccsv4/tools/compiler/tms470/include  -fs=./package/cfg -fr=./package/cfg
    'Finished building: ../app.cfg'
    ' '
    'Building file: ../HMI.c'
    'Invoking: Compiler'
    "C:/Program Files/Texas Instruments/ccsv4/tools/compiler/tms470/bin/cl470" -mv5e -g --include_path="C:/Program Files/Texas Instruments/ccsv4/tools/compiler/tms470/include" --include_path="F:/tms320c6748/SEED-DIM138KIT/03.Examples of Program/CCS DEMO/bsl/inc" --diag_warning=225 -me --abi=eabi --code_state=32 --preproc_with_compile --preproc_dependency="HMI.pp" --cmd_file="./configPkg/compiler.opt"  "../HMI.c"
    "C:/PROGRA~1/TEXASI~1/xdctools_3_22_01_21/packages/xdc/std.h", line 214: warning: typedef name has already been declared (with same type)
    "C:/PROGRA~1/TEXASI~1/xdctools_3_22_01_21/packages/xdc/std.h", line 233: warning: typedef name has already been declared (with same type)
    "C:/PROGRA~1/TEXASI~1/xdctools_3_22_01_21/packages/xdc/std.h", line 234: warning: typedef name has already been declared (with same type)
    "../HMI.c", line 170: warning: expression has no effect
    "../HMI.c", line 186: warning: expression has no effect
    "../HMI.c", line 205: warning: last line of file ends without a newline
    'Finished building: ../HMI.c'
    ' '
    'Building file: ../evmomapl137_dsp.c'
    'Invoking: Compiler'
    "C:/Program Files/Texas Instruments/ccsv4/tools/compiler/tms470/bin/cl470" -mv5e -g --include_path="C:/Program Files/Texas Instruments/ccsv4/tools/compiler/tms470/include" --include_path="F:/tms320c6748/SEED-DIM138KIT/03.Examples of Program/CCS DEMO/bsl/inc" --diag_warning=225 -me --abi=eabi --code_state=32 --preproc_with_compile --preproc_dependency="evmomapl137_dsp.pp" --cmd_file="./configPkg/compiler.opt"  "../evmomapl137_dsp.c"
    "../evmomapl137_dsp.c", line 156: warning: variable "DIV45_EN" was declared but never referenced
    "../evmomapl137_dsp.c", line 261: warning: variable "pll_bpdiv" was declared but never referenced
    "../evmomapl137_dsp.c", line 262: warning: variable "pll_div1" was declared but never referenced
    "../evmomapl137_dsp.c", line 263: warning: variable "pll_div2" was declared but never referenced
    "../evmomapl137_dsp.c", line 264: warning: variable "pll_div3" was declared but never referenced
    "../evmomapl137_dsp.c", line 265: warning: variable "pll_div4" was declared but never referenced
    "../evmomapl137_dsp.c", line 267: warning: variable "pll_div6" was declared but never referenced
    "../evmomapl137_dsp.c", line 268: warning: variable "pll_div7" was declared but never referenced
    "../evmomapl137_dsp.c", line 269: warning: variable "pll_div8" was declared but never referenced
    "../evmomapl137_dsp.c", line 270: warning: variable "pll_div9" was declared but never referenced
    "../evmomapl137_dsp.c", line 272: warning: variable "pll0_freq" was set but never used
    "../evmomapl137_dsp.c", line 456: warning: variable "i" was declared but never referenced
    'Finished building: ../evmomapl137_dsp.c'
    ' '
    'Building file: ../evmomapl138.c'
    'Invoking: Compiler'
    "C:/Program Files/Texas Instruments/ccsv4/tools/compiler/tms470/bin/cl470" -mv5e -g --include_path="C:/Program Files/Texas Instruments/ccsv4/tools/compiler/tms470/include" --include_path="F:/tms320c6748/SEED-DIM138KIT/03.Examples of Program/CCS DEMO/bsl/inc" --diag_warning=225 -me --abi=eabi --code_state=32 --preproc_with_compile --preproc_dependency="evmomapl138.pp" --cmd_file="./configPkg/compiler.opt"  "../evmomapl138.c"
    'Finished building: ../evmomapl138.c'
    ' '
    'Building file: ../gpio.c'
    'Invoking: Compiler'
    "C:/Program Files/Texas Instruments/ccsv4/tools/compiler/tms470/bin/cl470" -mv5e -g --include_path="C:/Program Files/Texas Instruments/ccsv4/tools/compiler/tms470/include" --include_path="F:/tms320c6748/SEED-DIM138KIT/03.Examples of Program/CCS DEMO/bsl/inc" --diag_warning=225 -me --abi=eabi --code_state=32 --preproc_with_compile --preproc_dependency="gpio.pp" --cmd_file="./configPkg/compiler.opt"  "../gpio.c"
    "..\gpio.h", line 17: warning: typedef name has already been declared (with same type)
    "..\gpio.h", line 18: warning: typedef name has already been declared (with same type)
    "..\gpio.h", line 19: warning: typedef name has already been declared (with same type)
    'Finished building: ../gpio.c'
    ' '
    'Building file: ../main.c'
    'Invoking: Compiler'
    "C:/Program Files/Texas Instruments/ccsv4/tools/compiler/tms470/bin/cl470" -mv5e -g --include_path="C:/Program Files/Texas Instruments/ccsv4/tools/compiler/tms470/include" --include_path="F:/tms320c6748/SEED-DIM138KIT/03.Examples of Program/CCS DEMO/bsl/inc" --diag_warning=225 -me --abi=eabi --code_state=32 --preproc_with_compile --preproc_dependency="main.pp" --cmd_file="./configPkg/compiler.opt"  "../main.c"
    "F:/tms320c6748/SEED-DIM138KIT/03.Examples of Program/CCS DEMO/bsl/inc/types.h", line 13: warning: typedef name has already been declared (with same type)
    "F:/tms320c6748/SEED-DIM138KIT/03.Examples of Program/CCS DEMO/bsl/inc/types.h", line 14: warning: typedef name has already been declared (with same type)
    "F:/tms320c6748/SEED-DIM138KIT/03.Examples of Program/CCS DEMO/bsl/inc/types.h", line 15: warning: typedef name has already been declared (with same type)
    "F:/tms320c6748/SEED-DIM138KIT/03.Examples of Program/CCS DEMO/bsl/inc/types.h", line 17: warning: typedef name has already been declared (with same type)
    "F:/tms320c6748/SEED-DIM138KIT/03.Examples of Program/CCS DEMO/bsl/inc/types.h", line 18: warning: typedef name has already been declared (with same type)
    "F:/tms320c6748/SEED-DIM138KIT/03.Examples of Program/CCS DEMO/bsl/inc/types.h", line 19: warning: typedef name has already been declared (with same type)
    "../main.c", line 38: warning: function declared implicitly
    "../main.c", line 55: warning: variable "base" was declared but never referenced
    'Finished building: ../main.c'
    ' '
    'Building file: ../myBoard/package/package_myBoard.c'
    'Invoking: Compiler'
    "C:/Program Files/Texas Instruments/ccsv4/tools/compiler/tms470/bin/cl470" -mv5e -g --include_path="C:/Program Files/Texas Instruments/ccsv4/tools/compiler/tms470/include" --include_path="F:/tms320c6748/SEED-DIM138KIT/03.Examples of Program/CCS DEMO/bsl/inc" --diag_warning=225 -me --abi=eabi --code_state=32 --preproc_with_compile --preproc_dependency="myBoard/package/package_myBoard.pp" --obj_directory="myBoard/package" --cmd_file="./configPkg/compiler.opt"  "../myBoard/package/package_myBoard.c"
    'Finished building: ../myBoard/package/package_myBoard.c'
    ' '
    'Building target: arm.out'
    'Invoking: Linker'
    "C:/Program Files/Texas Instruments/ccsv4/tools/compiler/tms470/bin/cl470" -mv5e -g --diag_warning=225 -me --abi=eabi --code_state=32 -z -m"arm.map" --warn_sections -i"C:/Program Files/Texas Instruments/ccsv4/tools/compiler/tms470/lib" -i"C:/Program Files/Texas Instruments/ccsv4/tools/compiler/tms470/include" --reread_libs --rom_model -o "arm.out" -l"./configPkg/linker.cmd"  "./main.obj" "./gpio.obj" "./evmomapl138.obj" "./evmomapl137_dsp.obj" "./HMI.obj" "./myBoard/package/package_myBoard.obj" -l"libc.a"
    <Linking>
    'Finished building target: arm.out'
    ' '
    Build complete for project arm

     


  • "C:/Program Files/Texas Instruments/xdctools_3_22_01_21/xs" --xdcpath="C:/Program Files/Texas Instruments/bios_6_32_02_39/packages;C:/Program Files/Texas Instruments/ipc_1_23_02_27/packages;E:/AUDIO_SMART_V2/22;" xdc.tools.configuro -o configPkg -t ti.targets.arm.elf.Arm9 -p ti.platforms.expOMAPL138 -r release -b "E:/AUDIO_SMART_V2/22/myBoard/config.bld" -c "C:/Program Files/Texas Instruments/ccsv4/tools/compiler/tms470" -v "../app.cfg"

    The first command in the output indicates that your custom platform is not being used. Go to Project Properties->CCS General->RTSC. First, make sure that your repository with your new platform is in the list of repositores. Under "Products and Repositories" you should have E:/AUDIO_SMART_V2/22 or similar, and it should be selected. Then, click on the drop-down list for Platforms, and choose the platform "myBoard". If it does not show up in the list, you probably don't have the right repository path for your repository. The right path is one that contains the subdirectory "myBoard".

    I also see that at the end, you are compiling the file myBoard/package/package_myBoard.c. That does not look right. Have you added that file manually to your project?

  • gao weidong

       It seems that you project didn't use the platform you create. see the console output "-t ti.targets.arm.elf.Arm9 -p ti.platforms.expOMAPL138", the platform you project used was ti.platform.expOMAPL138, not the platform myBoard.

       Please trying as following step

      1、Project Properties->C/C++ Build-> Setting->XDCTools->Package Repositories

          

            add the path of your myBoard file

    2、Project Properties->CCS Build->RTSC

        

            change the RTSC Platform from expOMAPL138 to myBoard.

    3、 clean and rebuild your project。

           

      I hope this will help you!

     BR

    Eric