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.

CCS/AM5728: AM5728 SBL MAKE ERROR

Part Number: AM5728

Tool/software: Code Composer Studio

Hello, I have a question.

In evmAM 572x, I am trying to create an SBK file according to the following site.

processors.wiki.ti.com/.../Creating_a_CCS_Project_for_SBL_on_AM572x_GP_EVM


In CCS build, Then I get the following error


Description Resource Path Location Type
com.out section `.stack' will not fit in region `SBL_MEM' com C/C++ Problem
gmake: *** [all] Error 2 com C/C++ Problem
gmake[1]: *** [com.out] Error 1 com C/C++ Problem
recipe for target 'all' failed makefile /com/Debug line 160 C/C++ Problem
recipe for target 'com.out' failed makefile /com/Debug line 164 C/C++ Problem
region `SBL_MEM' overflowed by 17225 bytes com C/C++ Problem
section SBL_MMU_TABLE VMA [40370000,4037404b] overlaps section .stack VMA [40354348,40374347] com C/C++ Problem
redeclaration of memory region `DDR0' .ccsproject /com line 44, external location: c:\ti\ccsv8\tools\compiler\gcc-arm-none-eabi-7-2017-q4-major-win32\arm-none-eabi\bin\ld.exe:C:\ti\pdk_am57xx_1_0_13\packages\ti\boot\sbl\board\evmAM572x\build\linker.cmd C/C++ Problem
redeclaration of memory region `OCMC_RAM1' .ccsproject /com line 45, external location: c:\ti\ccsv8\tools\compiler\gcc-arm-none-eabi-7-2017-q4-major-win32\arm-none-eabi\bin\ld.exe:C:\ti\pdk_am57xx_1_0_13\packages\ti\boot\sbl\board\evmAM572x\build\linker.cmd C/C++ Problem
redeclaration of memory region `OCMC_RAM2' .ccsproject /com line 50, external location: c:\ti\ccsv8\tools\compiler\gcc-arm-none-eabi-7-2017-q4-major-win32\arm-none-eabi\bin\ld.exe:C:\ti\pdk_am57xx_1_0_13\packages\ti\boot\sbl\board\evmAM572x\build\linker.cmd C/C++ Problem
redeclaration of memory region `OCMC_RAM3' .ccsproject /com line 51, external location: c:\ti\ccsv8\tools\compiler\gcc-arm-none-eabi-7-2017-q4-major-win32\arm-none-eabi\bin\ld.exe:C:\ti\pdk_am57xx_1_0_13\packages\ti\boot\sbl\board\evmAM572x\build\linker.cmd C/C++ Problem


The memory seems to overflow, but is the setting of Linker file correct?

BOARD:evMAM572x
RTOS_PDK:pdk_am57xx_1_0_13
CCS: Version: 8.3.0.00009

  • The default way to build the SBL is using the makefile approach. Can you indicate why you want to build the SBL by creating a CCS project from the source?

    There are two issues that I have observed from limited log that you have shared:
    1. We are supporting AM572x SDK with GCC compiler 6.x which is provided in the installer but your project seems to be using GGC7.x .
    2. The other issue seems to be when you are creating CCS project you seem to be including the linker command file from CCS package and also using the linker command file from the SBL folder. This likely causes the Memory section re-declaration issues.

    I would recommend that you build the SBL using makefile first and capture the command line log and then compare with the CCS build log to make sure there are no differences.

    To build the SBL using make file follow the instructions below:

    cd processor_sdk_rtos_am57xx_5_02_00_10
    setupenv.bat
    cd ..\pdk_am57xx_1_0_13\packages\ti\boot\sbl
    gmake all BOARD=evmAM572x SOC=AM572x BOOTMODE=mmcsd


    Regards,
    Rahul
  • Hi, Rahul

    I would like to make SBL a project developed by CCS.


    1.The execution result using GCC compiler 6.x was the same.


    2.The command line log that built the SBL using the makefile is as follows,

    C:\ti\pdk_am57xx_1_0_13\packages\ti\boot\sbl>gmake BOARD=evmAM572x SOC=AM572x BOOTMODE=mmcsd
    gmake[1]: Entering directory `C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl'
    gmake[1]: Nothing to be done for `all'.
    gmake[1]: Leaving directory `C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl'



    The CCS log is below,

    **** Build of configuration Debug for project try_2 ****

    "C:\\ti\\ccsv8\\utils\\bin\\gmake" -k -j 4 all -O

    Building file: "C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl/soc/am57xx/sbl_init.S"
    Invoking: GNU Compiler
    "C:/ti/gcc-arm-none-eabi-6-2017-q1-update/bin/arm-none-eabi-gcc.exe" -c -mcpu=cortex-a15 -march=armv7-a -mtune=cortex-a15 -marm -mfloat-abi=hard -mfpu=neon -Dam5728 -Dcore0 -D__ARMv7 -DSOC_AM572x -DAM572x_BUILD -DevmAM572x -DOPP_NOM -DBOOT_MMCSD -I"C:/Users/yamashei/workspace_v8/try_2" -I"C:/ti/gcc-arm-none-eabi-6-2017-q1-update/arm-none-eabi/include" -I"C:/ti/pdk_am57xx_1_0_13/packages" -I"C:/ti/pdk_am57xx_1_0_13/packages/ti/csl" -I"C:/ti/pdk_am57xx_1_0_13/packages/ti/board" -I"C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl/board/src" -I"C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl/src/rprc" -I"C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl/soc/am57xx" -I"C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl/src/mmcsd" -I"C:/ti/pdk_am57xx_1_0_13/packages" -I"C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl" -Og -g -gdwarf-3 -gstrict-dwarf -Wall -specs="nosys.specs" -MMD -MP -MF"sbl_init.d" -MT"sbl_init.o" -x assembler-with-cpp -o"sbl_init.o" "C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl/soc/am57xx/sbl_init.S"
    C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl/soc/am57xx/sbl_init.S:1:0: warning: switch -mcpu=cortex-a15 conflicts with -march=armv7-a switch
    @******************************************************************************

    Finished building: "C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl/soc/am57xx/sbl_init.S"

    Building file: "C:/ti/pdk_am57xx_1_0_13/packages/ti/drv/uart/soc/am572x/UART_soc.c"
    Invoking: GNU Compiler
    "C:/ti/gcc-arm-none-eabi-6-2017-q1-update/bin/arm-none-eabi-gcc.exe" -c -mcpu=cortex-a15 -march=armv7-a -mtune=cortex-a15 -marm -mfloat-abi=hard -mfpu=neon -Dam5728 -Dcore0 -D__ARMv7 -DSOC_AM572x -DAM572x_BUILD -DevmAM572x -DOPP_NOM -DBOOT_MMCSD -I"C:/Users/yamashei/workspace_v8/try_2" -I"C:/ti/gcc-arm-none-eabi-6-2017-q1-update/arm-none-eabi/include" -I"C:/ti/pdk_am57xx_1_0_13/packages" -I"C:/ti/pdk_am57xx_1_0_13/packages/ti/csl" -I"C:/ti/pdk_am57xx_1_0_13/packages/ti/board" -I"C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl/board/src" -I"C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl/src/rprc" -I"C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl/soc/am57xx" -I"C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl/src/mmcsd" -I"C:/ti/pdk_am57xx_1_0_13/packages" -I"C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl" -Og -g -gdwarf-3 -gstrict-dwarf -Wall -specs="nosys.specs" -MMD -MP -MF"UART_soc.d" -MT"UART_soc.o" -o"UART_soc.o" "C:/ti/pdk_am57xx_1_0_13/packages/ti/drv/uart/soc/am572x/UART_soc.c"
    C:/ti/pdk_am57xx_1_0_13/packages/ti/drv/uart/soc/am572x/UART_soc.c:1:0: warning: switch -mcpu=cortex-a15 conflicts with -march=armv7-a switch
    /**

    Finished building: "C:/ti/pdk_am57xx_1_0_13/packages/ti/drv/uart/soc/am572x/UART_soc.c"

    Building file: "C:/ti/pdk_am57xx_1_0_13/packages/ti/drv/mmcsd/soc/am57xx/MMCSD_soc.c"
    Invoking: GNU Compiler
    "C:/ti/gcc-arm-none-eabi-6-2017-q1-update/bin/arm-none-eabi-gcc.exe" -c -mcpu=cortex-a15 -march=armv7-a -mtune=cortex-a15 -marm -mfloat-abi=hard -mfpu=neon -Dam5728 -Dcore0 -D__ARMv7 -DSOC_AM572x -DAM572x_BUILD -DevmAM572x -DOPP_NOM -DBOOT_MMCSD -I"C:/Users/yamashei/workspace_v8/try_2" -I"C:/ti/gcc-arm-none-eabi-6-2017-q1-update/arm-none-eabi/include" -I"C:/ti/pdk_am57xx_1_0_13/packages" -I"C:/ti/pdk_am57xx_1_0_13/packages/ti/csl" -I"C:/ti/pdk_am57xx_1_0_13/packages/ti/board" -I"C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl/board/src" -I"C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl/src/rprc" -I"C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl/soc/am57xx" -I"C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl/src/mmcsd" -I"C:/ti/pdk_am57xx_1_0_13/packages" -I"C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl" -Og -g -gdwarf-3 -gstrict-dwarf -Wall -specs="nosys.specs" -MMD -MP -MF"MMCSD_soc.d" -MT"MMCSD_soc.o" -o"MMCSD_soc.o" "C:/ti/pdk_am57xx_1_0_13/packages/ti/drv/mmcsd/soc/am57xx/MMCSD_soc.c"
    C:/ti/pdk_am57xx_1_0_13/packages/ti/drv/mmcsd/soc/am57xx/MMCSD_soc.c:1:0: warning: switch -mcpu=cortex-a15 conflicts with -march=armv7-a switch
    /**

    Finished building: "C:/ti/pdk_am57xx_1_0_13/packages/ti/drv/mmcsd/soc/am57xx/MMCSD_soc.c"

    Building file: "C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl/board/src/sbl_avs_config.c"
    Invoking: GNU Compiler
    "C:/ti/gcc-arm-none-eabi-6-2017-q1-update/bin/arm-none-eabi-gcc.exe" -c -mcpu=cortex-a15 -march=armv7-a -mtune=cortex-a15 -marm -mfloat-abi=hard -mfpu=neon -Dam5728 -Dcore0 -D__ARMv7 -DSOC_AM572x -DAM572x_BUILD -DevmAM572x -DOPP_NOM -DBOOT_MMCSD -I"C:/Users/yamashei/workspace_v8/try_2" -I"C:/ti/gcc-arm-none-eabi-6-2017-q1-update/arm-none-eabi/include" -I"C:/ti/pdk_am57xx_1_0_13/packages" -I"C:/ti/pdk_am57xx_1_0_13/packages/ti/csl" -I"C:/ti/pdk_am57xx_1_0_13/packages/ti/board" -I"C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl/board/src" -I"C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl/src/rprc" -I"C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl/soc/am57xx" -I"C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl/src/mmcsd" -I"C:/ti/pdk_am57xx_1_0_13/packages" -I"C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl" -Og -g -gdwarf-3 -gstrict-dwarf -Wall -specs="nosys.specs" -MMD -MP -MF"sbl_avs_config.d" -MT"sbl_avs_config.o" -o"sbl_avs_config.o" "C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl/board/src/sbl_avs_config.c"
    C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl/board/src/sbl_avs_config.c:1:0: warning: switch -mcpu=cortex-a15 conflicts with -march=armv7-a switch
    /**

    Finished building: "C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl/board/src/sbl_avs_config.c"

    Building file: "C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl/board/evmAM572x/sbl_main.c"
    Invoking: GNU Compiler
    "C:/ti/gcc-arm-none-eabi-6-2017-q1-update/bin/arm-none-eabi-gcc.exe" -c -mcpu=cortex-a15 -march=armv7-a -mtune=cortex-a15 -marm -mfloat-abi=hard -mfpu=neon -Dam5728 -Dcore0 -D__ARMv7 -DSOC_AM572x -DAM572x_BUILD -DevmAM572x -DOPP_NOM -DBOOT_MMCSD -I"C:/Users/yamashei/workspace_v8/try_2" -I"C:/ti/gcc-arm-none-eabi-6-2017-q1-update/arm-none-eabi/include" -I"C:/ti/pdk_am57xx_1_0_13/packages" -I"C:/ti/pdk_am57xx_1_0_13/packages/ti/csl" -I"C:/ti/pdk_am57xx_1_0_13/packages/ti/board" -I"C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl/board/src" -I"C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl/src/rprc" -I"C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl/soc/am57xx" -I"C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl/src/mmcsd" -I"C:/ti/pdk_am57xx_1_0_13/packages" -I"C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl" -Og -g -gdwarf-3 -gstrict-dwarf -Wall -specs="nosys.specs" -MMD -MP -MF"sbl_main.d" -MT"sbl_main.o" -o"sbl_main.o" "C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl/board/evmAM572x/sbl_main.c"
    C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl/board/evmAM572x/sbl_main.c:1:0: warning: switch -mcpu=cortex-a15 conflicts with -march=armv7-a switch
    /**

    Finished building: "C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl/board/evmAM572x/sbl_main.c"

    Building file: "C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl/soc/am57xx/sbl_prcm.c"
    Invoking: GNU Compiler
    "C:/ti/gcc-arm-none-eabi-6-2017-q1-update/bin/arm-none-eabi-gcc.exe" -c -mcpu=cortex-a15 -march=armv7-a -mtune=cortex-a15 -marm -mfloat-abi=hard -mfpu=neon -Dam5728 -Dcore0 -D__ARMv7 -DSOC_AM572x -DAM572x_BUILD -DevmAM572x -DOPP_NOM -DBOOT_MMCSD -I"C:/Users/yamashei/workspace_v8/try_2" -I"C:/ti/gcc-arm-none-eabi-6-2017-q1-update/arm-none-eabi/include" -I"C:/ti/pdk_am57xx_1_0_13/packages" -I"C:/ti/pdk_am57xx_1_0_13/packages/ti/csl" -I"C:/ti/pdk_am57xx_1_0_13/packages/ti/board" -I"C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl/board/src" -I"C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl/src/rprc" -I"C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl/soc/am57xx" -I"C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl/src/mmcsd" -I"C:/ti/pdk_am57xx_1_0_13/packages" -I"C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl" -Og -g -gdwarf-3 -gstrict-dwarf -Wall -specs="nosys.specs" -MMD -MP -MF"sbl_prcm.d" -MT"sbl_prcm.o" -o"sbl_prcm.o" "C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl/soc/am57xx/sbl_prcm.c"
    C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl/soc/am57xx/sbl_prcm.c:1:0: warning: switch -mcpu=cortex-a15 conflicts with -march=armv7-a switch
    /**

    Finished building: "C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl/soc/am57xx/sbl_prcm.c"

    Building file: "C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl/src/mmcsd/sbl_mmcsd.c"
    Invoking: GNU Compiler
    "C:/ti/gcc-arm-none-eabi-6-2017-q1-update/bin/arm-none-eabi-gcc.exe" -c -mcpu=cortex-a15 -march=armv7-a -mtune=cortex-a15 -marm -mfloat-abi=hard -mfpu=neon -Dam5728 -Dcore0 -D__ARMv7 -DSOC_AM572x -DAM572x_BUILD -DevmAM572x -DOPP_NOM -DBOOT_MMCSD -I"C:/Users/yamashei/workspace_v8/try_2" -I"C:/ti/gcc-arm-none-eabi-6-2017-q1-update/arm-none-eabi/include" -I"C:/ti/pdk_am57xx_1_0_13/packages" -I"C:/ti/pdk_am57xx_1_0_13/packages/ti/csl" -I"C:/ti/pdk_am57xx_1_0_13/packages/ti/board" -I"C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl/board/src" -I"C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl/src/rprc" -I"C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl/soc/am57xx" -I"C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl/src/mmcsd" -I"C:/ti/pdk_am57xx_1_0_13/packages" -I"C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl" -Og -g -gdwarf-3 -gstrict-dwarf -Wall -specs="nosys.specs" -MMD -MP -MF"sbl_mmcsd.d" -MT"sbl_mmcsd.o" -o"sbl_mmcsd.o" "C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl/src/mmcsd/sbl_mmcsd.c"
    C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl/src/mmcsd/sbl_mmcsd.c:1:0: warning: switch -mcpu=cortex-a15 conflicts with -march=armv7-a switch
    /**

    Finished building: "C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl/src/mmcsd/sbl_mmcsd.c"

    Building file: "C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl/src/rprc/sbl_rprc.c"
    Invoking: GNU Compiler
    "C:/ti/gcc-arm-none-eabi-6-2017-q1-update/bin/arm-none-eabi-gcc.exe" -c -mcpu=cortex-a15 -march=armv7-a -mtune=cortex-a15 -marm -mfloat-abi=hard -mfpu=neon -Dam5728 -Dcore0 -D__ARMv7 -DSOC_AM572x -DAM572x_BUILD -DevmAM572x -DOPP_NOM -DBOOT_MMCSD -I"C:/Users/yamashei/workspace_v8/try_2" -I"C:/ti/gcc-arm-none-eabi-6-2017-q1-update/arm-none-eabi/include" -I"C:/ti/pdk_am57xx_1_0_13/packages" -I"C:/ti/pdk_am57xx_1_0_13/packages/ti/csl" -I"C:/ti/pdk_am57xx_1_0_13/packages/ti/board" -I"C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl/board/src" -I"C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl/src/rprc" -I"C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl/soc/am57xx" -I"C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl/src/mmcsd" -I"C:/ti/pdk_am57xx_1_0_13/packages" -I"C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl" -Og -g -gdwarf-3 -gstrict-dwarf -Wall -specs="nosys.specs" -MMD -MP -MF"sbl_rprc.d" -MT"sbl_rprc.o" -o"sbl_rprc.o" "C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl/src/rprc/sbl_rprc.c"
    C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl/src/rprc/sbl_rprc.c:1:0: warning: switch -mcpu=cortex-a15 conflicts with -march=armv7-a switch
    /**

    In file included from C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl/src/rprc/sbl_rprc.c:44:0:
    C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl/src/rprc/sbl_rprc.h:104:0: warning: "SOC_DSP_L2_BASE" redefined
    #define SOC_DSP_L2_BASE (0x800000)

    In file included from C:/ti/pdk_am57xx_1_0_13/packages/ti/csl/soc.h:76:0,
    from C:/ti/pdk_am57xx_1_0_13/packages/ti/csl/cslr_device.h:41,
    from C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl/src/rprc/sbl_rprc.h:48,
    from C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl/src/rprc/sbl_rprc.c:44:
    C:/ti/pdk_am57xx_1_0_13/packages/ti/csl/soc/am572x/src/cslr_soc.h:576:0: note: this is the location of the previous definition
    #define SOC_DSP_L2_BASE (CSL_DSP_DSP_L2_REGS)

    In file included from C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl/src/rprc/sbl_rprc.c:44:0:
    C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl/src/rprc/sbl_rprc.h:105:0: warning: "SOC_DSP_L1P_BASE" redefined
    #define SOC_DSP_L1P_BASE (0xe00000)

    In file included from C:/ti/pdk_am57xx_1_0_13/packages/ti/csl/soc.h:76:0,
    from C:/ti/pdk_am57xx_1_0_13/packages/ti/csl/cslr_device.h:41,
    from C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl/src/rprc/sbl_rprc.h:48,
    from C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl/src/rprc/sbl_rprc.c:44:
    C:/ti/pdk_am57xx_1_0_13/packages/ti/csl/soc/am572x/src/cslr_soc.h:574:0: note: this is the location of the previous definition
    #define SOC_DSP_L1P_BASE (CSL_DSP_DSP_L1P_REGS)

    In file included from C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl/src/rprc/sbl_rprc.c:44:0:
    C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl/src/rprc/sbl_rprc.h:106:0: warning: "SOC_DSP_L1D_BASE" redefined
    #define SOC_DSP_L1D_BASE (0xf00000)

    In file included from C:/ti/pdk_am57xx_1_0_13/packages/ti/csl/soc.h:76:0,
    from C:/ti/pdk_am57xx_1_0_13/packages/ti/csl/cslr_device.h:41,
    from C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl/src/rprc/sbl_rprc.h:48,
    from C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl/src/rprc/sbl_rprc.c:44:
    C:/ti/pdk_am57xx_1_0_13/packages/ti/csl/soc/am572x/src/cslr_soc.h:575:0: note: this is the location of the previous definition
    #define SOC_DSP_L1D_BASE (CSL_DSP_DSP_L1D_REGS)

    Finished building: "C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl/src/rprc/sbl_rprc.c"

    Building file: "C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl/soc/am57xx/sbl_slave_core_boot.c"
    Invoking: GNU Compiler
    "C:/ti/gcc-arm-none-eabi-6-2017-q1-update/bin/arm-none-eabi-gcc.exe" -c -mcpu=cortex-a15 -march=armv7-a -mtune=cortex-a15 -marm -mfloat-abi=hard -mfpu=neon -Dam5728 -Dcore0 -D__ARMv7 -DSOC_AM572x -DAM572x_BUILD -DevmAM572x -DOPP_NOM -DBOOT_MMCSD -I"C:/Users/yamashei/workspace_v8/try_2" -I"C:/ti/gcc-arm-none-eabi-6-2017-q1-update/arm-none-eabi/include" -I"C:/ti/pdk_am57xx_1_0_13/packages" -I"C:/ti/pdk_am57xx_1_0_13/packages/ti/csl" -I"C:/ti/pdk_am57xx_1_0_13/packages/ti/board" -I"C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl/board/src" -I"C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl/src/rprc" -I"C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl/soc/am57xx" -I"C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl/src/mmcsd" -I"C:/ti/pdk_am57xx_1_0_13/packages" -I"C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl" -Og -g -gdwarf-3 -gstrict-dwarf -Wall -specs="nosys.specs" -MMD -MP -MF"sbl_slave_core_boot.d" -MT"sbl_slave_core_boot.o" -o"sbl_slave_core_boot.o" "C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl/soc/am57xx/sbl_slave_core_boot.c"
    C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl/soc/am57xx/sbl_slave_core_boot.c:1:0: warning: switch -mcpu=cortex-a15 conflicts with -march=armv7-a switch
    /**

    Finished building: "C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl/soc/am57xx/sbl_slave_core_boot.c"

    Building file: "C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl/soc/am57xx/sbl_startup.c"
    Invoking: GNU Compiler
    "C:/ti/gcc-arm-none-eabi-6-2017-q1-update/bin/arm-none-eabi-gcc.exe" -c -mcpu=cortex-a15 -march=armv7-a -mtune=cortex-a15 -marm -mfloat-abi=hard -mfpu=neon -Dam5728 -Dcore0 -D__ARMv7 -DSOC_AM572x -DAM572x_BUILD -DevmAM572x -DOPP_NOM -DBOOT_MMCSD -I"C:/Users/yamashei/workspace_v8/try_2" -I"C:/ti/gcc-arm-none-eabi-6-2017-q1-update/arm-none-eabi/include" -I"C:/ti/pdk_am57xx_1_0_13/packages" -I"C:/ti/pdk_am57xx_1_0_13/packages/ti/csl" -I"C:/ti/pdk_am57xx_1_0_13/packages/ti/board" -I"C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl/board/src" -I"C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl/src/rprc" -I"C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl/soc/am57xx" -I"C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl/src/mmcsd" -I"C:/ti/pdk_am57xx_1_0_13/packages" -I"C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl" -Og -g -gdwarf-3 -gstrict-dwarf -Wall -specs="nosys.specs" -MMD -MP -MF"sbl_startup.d" -MT"sbl_startup.o" -o"sbl_startup.o" "C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl/soc/am57xx/sbl_startup.c"
    C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl/soc/am57xx/sbl_startup.c:1:0: warning: switch -mcpu=cortex-a15 conflicts with -march=armv7-a switch
    /**

    Finished building: "C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl/soc/am57xx/sbl_startup.c"

    Building target: "try_2.out"
    Invoking: GNU Linker
    "C:/ti/gcc-arm-none-eabi-6-2017-q1-update/bin/arm-none-eabi-gcc.exe" -mtune=cortex-a15 -marm -Dam5728 -Dcore0 -D__ARMv7 -DSOC_AM572x -DAM572x_BUILD -DevmAM572x -DOPP_NOM -DBOOT_MMCSD -Og -g -gdwarf-3 -gstrict-dwarf -Wall -specs="nosys.specs" -mfloat-abi=hard -Wl,-Map,"try_2.map" --entry Entry -nostartfiles -static -Wl,--gc-sections -L"C:/ti/pdk_am57xx_1_0_13/packages/ti/board/lib/evmAM572x/a15/release/" -L"C:/ti/pdk_am57xx_1_0_13/packages/ti/drv/uart/lib/a15/release/" -L"C:/ti/pdk_am57xx_1_0_13/packages/ti/drv/i2c/lib/a15/release/" -L"C:/ti/pdk_am57xx_1_0_13/packages/ti/drv/mmcsd/lib/a15/release/" -L"C:/ti/pdk_am57xx_1_0_13/packages/ti/fs/fatfs/lib/a15/release/" -L"C:/ti/pdk_am57xx_1_0_13/packages/ti/csl/lib/am572x/a15/release/" -L"C:/ti/pdk_am57xx_1_0_13/packages/ti/csl/lib/am572x/a15/release/" -L"C:/ti/pdk_am57xx_1_0_13/packages/ti/osal/lib/nonos/am572x/a15/release/" -L"C:/ti/pdk_am57xx_1_0_13/packages/ti/drv/pm/lib/am572x/a15/release/" -Wl,--defsym,CORE0=1 -Wl,--defsym,STACKSIZE=0x10000 -Wl,--defsym,HEAPSIZE=0x400 -Wl,--undefined,__aeabi_uidiv -Wl,--undefined,__aeabi_idiv -mfloat-abi=hard -o"try_2.out" "./MMCSD_soc.o" "./UART_soc.o" "./sbl_avs_config.o" "./sbl_init.o" "./sbl_main.o" "./sbl_mmcsd.o" "./sbl_prcm.o" "./sbl_rprc.o" "./sbl_slave_core_boot.o" "./sbl_startup.o" -Wl,-T"../AM572x.lds" -Wl,--start-group -Wl,-T"C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl/board/evmAM572x/build/linker.cmd" -l:ti.board.aa15fg -l:ti.drv.uart.aa15fg -l:ti.drv.i2c.aa15fg -l:ti.drv.mmcsd.aa15fg -l:ti.fs.fatfs.aa15fg -l:ti.csl.aa15fg -l:ti.csl.init.aa15fg -l:ti.osal.aa15fg -l:pm_hal.aa15fg -lgcc -lrdimon -lc -Wl,--end-group
    makefile:164: recipe for target 'try_2.out' failed
    c:/ti/gcc-arm-none-eabi-6-2017-q1-update/bin/../lib/gcc/arm-none-eabi/6.3.1/../../../../arm-none-eabi/bin/ld.exe:C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl/board/evmAM572x/build/linker.cmd:44: warning: redeclaration of memory region `DDR0'
    c:/ti/gcc-arm-none-eabi-6-2017-q1-update/bin/../lib/gcc/arm-none-eabi/6.3.1/../../../../arm-none-eabi/bin/ld.exe:C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl/board/evmAM572x/build/linker.cmd:45: warning: redeclaration of memory region `OCMC_RAM1'
    c:/ti/gcc-arm-none-eabi-6-2017-q1-update/bin/../lib/gcc/arm-none-eabi/6.3.1/../../../../arm-none-eabi/bin/ld.exe:C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl/board/evmAM572x/build/linker.cmd:50: warning: redeclaration of memory region `OCMC_RAM2'
    c:/ti/gcc-arm-none-eabi-6-2017-q1-update/bin/../lib/gcc/arm-none-eabi/6.3.1/../../../../arm-none-eabi/bin/ld.exe:C:/ti/pdk_am57xx_1_0_13/packages/ti/boot/sbl/board/evmAM572x/build/linker.cmd:51: warning: redeclaration of memory region `OCMC_RAM3'
    c:/ti/gcc-arm-none-eabi-6-2017-q1-update/bin/../lib/gcc/arm-none-eabi/6.3.1/../../../../arm-none-eabi/bin/ld.exe: try_2.out section `.stack' will not fit in region `SBL_MEM'
    c:/ti/gcc-arm-none-eabi-6-2017-q1-update/bin/../lib/gcc/arm-none-eabi/6.3.1/../../../../arm-none-eabi/bin/ld.exe: section SBL_MMU_TABLE VMA [40370000,4037404b] overlaps section .stack VMA [40354548,40374547]
    c:/ti/gcc-arm-none-eabi-6-2017-q1-update/bin/../lib/gcc/arm-none-eabi/6.3.1/../../../../arm-none-eabi/bin/ld.exe: region `SBL_MEM' overflowed by 17737 bytes
    collect2.exe: error: ld returned 1 exit status
    gmake[1]: *** [try_2.out] Error 1
    gmake: *** [all] Error 2
    makefile:160: recipe for target 'all' failed

    **** Build Finished ****
  • 1.You need to do a clean build of the SBL to see the build. It appears the object files and executable is already created in the setup so the gmake doesn`t find anything to build. You also need to update the make file to echo the compilation and link setup to see full output of the compiler and linker flags and make sure all source files.

    2. Did you remove the AM572x.lds  file linked to the CCS project as I indicated in the previous post.  Please refer screenshot below:

    Change that to "None" and only use the linker command file from the SBL folder.

    Regards,

    Rahul

  • We have received an internal escalation of this issue due to the urgency of this feature to your project. Our understanding is that your product requires Android on the ARM core while DSP firmware running at the same time. Please confirm our understanding.

    If the above statement is true SBL is not the correct software component for you to use. Running code on DSP from ARM requires remoteproc and IPC for Android and Linux users. There is no need for using RTOS SBL as this software is applicable only to users having RTOS running on all cores.

    The description for how this mechanism works is described here:
    processors.wiki.ti.com/.../Linux_IPC_on_AM57xx

    If the requirement is to start DSP firmware as quickly as possible from u-boot or android loader, then you need to refer to the following patch that allows developers to start DSP/M4 early during the boot process :
    http://processors.wiki.ti.com/index.php/Early_Boot_and_Late_Attach  

    Regards,
    Rahul