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.

AM572x Building Processor SDK RTOS SBL

Genius 5785 points
Other Parts Discussed in Thread: AM5728

Hello,

I'd like to build SBL for AM5728 Processor SDK RTOS v2.0.2.11 (PDK v1.0.2) on Windows. I see error messages during building sbl.

--------------
C:\ti\pdk_am57xx_1_0_2\packages>pdksetupenv.bat
Optional parameter not configured : CG_XML_BIN_INSTALL_PATH
REQUIRED for xdc release build
Example: set CG_XML_BIN_INSTALL_PATH=C:/ti/cg_xml/bin
Optional parameter not configured : DOXYGEN_INSTALL_PATH
REQUIRED for xdc release build
Example: set DOXYGEN_INSTALL_PATH=C:/ti/Doxygen/doxygen/1.5.1-p1/bin
**************************************************************************
Environment Configuration:
    SUPPORTED_PLATFORMS       : "am571x am572x"
    PDK_INSTALL_PATH          : /ti/PDK_AM~2/packages/
    C6X_GEN_INSTALL_PATH      : C:/ti/ccsv6/tools/compiler/ti-cgt-c6000_8.1.0
    TOOLCHAIN_PATH_A15        : C:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_8
-2014q3
    TOOLCHAIN_PATH_A8         : C:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_8
-2014q3
    TOOLCHAIN_PATH_A9         : C:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_8
-2014q3
    TOOLCHAIN_PATH_M4         : C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.5
    FPULIB_PATH               : C:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_8
-2014q3/lib/gcc/arm-none-eabi/4.8.4/fpu
    CROSS_TOOL_PRFX           : arm-none-eabi-
    XDC_INSTALL_PATH          : C:/ti/xdctools_3_32_00_06_core
    BIOS_INSTALL_PATH         : C:/ti/bios_6_45_01_29
    IPC_INSTALL_PATH          : C:/ti/ipc_3_42_00_02
    EDMA3LLD_BIOS6_INSTALLDIR : C:/ti/edma3_lld_2_12_01_23
    NDK_INSTALL_PATH          : C:/ti/ndk_2_24_03_35
    IMGLIB_INSTALL_PATH       : C:/ti/imglib_c66x_3_1_1_0
    UIA_INSTALL_PATH          : C:/ti/uia_2_00_03_43
**************************************************************************
Changing to short name to support directory names containing spaces
current directory: /ti/PDK_AM~2/packages/
PDK BUILD ENVIRONMENT CONFIGURED
**************************************************************************

C:\ti\PDK_AM~2\packages>cd ti/boot/sbl

C:\ti\PDK_AM~2\packages\ti\boot\sbl>gmake example BOARD=evmAM572x SOC=AM572x
gmake[1]: Entering directory `C:/ti/PDK_AM~2/packages/ti/boot/sbl'
linking /ti/PDK_AM~2/packages//ti/boot/sbl/binary/evmAM572x/example/armv7/obj/sb
l_multicore_mpu.o /ti/PDK_AM~2/packages//ti/boot/sbl/binary/evmAM572x/example/ar
mv7/obj/mailbox.o /ti/PDK_AM~2/packages//ti/boot/sbl/binary/evmAM572x/example/ar
mv7/obj/UART_soc.o into /ti/PDK_AM~2/packages//ti/boot/sbl/binary/evmAM572x/exam
ple/armv7/bin/sbl_app.out ...
/ti/PDK_AM~2/packages//ti/boot/sbl/binary/evmAM572x/example/armv7/obj/sbl_init.a
o: In function `IRQHandler':
/ti/PDK_AM~2/packages//ti/boot/sbl/soc/am57xx/sbl_init.S:211: undefined referenc
e to `INTCCommonIntrHandler'
/ti/PDK_AM~2/packages//ti/boot/sbl/binary/evmAM572x/example/armv7/obj/sbl_init.a
o: In function `UndefInstHandler':
/ti/PDK_AM~2/packages//ti/boot/sbl/soc/am57xx/sbl_init.S:169: undefined referenc
e to `start_boot'
collect2.exe: error: ld returned 1 exit status
gmake[1]: *** [/ti/PDK_AM~2/packages//ti/boot/sbl/binary/evmAM572x/example/armv7
/bin/sbl_app.out] Error 1
gmake[1]: Leaving directory `C:/ti/PDK_AM~2/packages/ti/boot/sbl'
gmake: *** [example] Error 2

C:\ti\PDK_AM~2\packages\ti\boot\sbl>
--------------

It looks like the errors are caused by the following makefile. So I add sbl_startup.c for undefined Handlers to the makefile. The errors are solved, but another errors occur. Please give me advice.

C:\ti\pdk_am57xx_1_0_2\packages\ti\boot\sbl\example\mpuMulticoreApp\makefile

Regards,
Kazu