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.

RTOS/AM5728: SMP/BIOS

Genius 13655 points
Part Number: AM5728


Tool/software: TI-RTOS

Hello Champs,

Customer wanted to modify the vps_loopbackExample_idkAM572x_armExampleProject example in pdk to use SMP/BIOS, but when adding below code to .cfg, it prompted below building errors. 

 var BIOS = xdc.useModule('ti.sysbios.BIOS');

BIOS.smpEnabled = true;

Building target: "vps_loopbackExample_idkAM572x_armExampleProject.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 -DUSE_BIOS -DMAKEFILE_BUILD -DNDEBUG -DTRACE_ENABLE -DASSERT_ENABLE -DVPS_VIP_BUILD -DVPS_VPE_BUILD -DVPS_DSS_BUILD -DVPS_VIP1_BUILD -DVPS_VIP2_BUILD -DVPS_VIP3_BUILD -DVPS_CAPT_BUILD -DVPS_DISP_BUILD -DSOC_AM572x -Dxdc_target_types__=gnu/targets/arm/std.h -Dxdc_target_name__=A15F -UVPS_ISS_BUILD -UVPS_SIMCOP_BUILD -UVPS_ISS_ISP_DEF -Og -ffunction-sections -fdata-sections -g -gdwarf-3 -gstrict-dwarf -Wall -Wimplicit -Wunused -Wunknown-pragmas -MMD -MP -mfloat-abi=hard -Wl,-Map,"vps_loopbackExample_idkAM572x_armExampleProject.map" -nostartfiles -static -Wl,--gc-sections -L"C:/ti/bios_6_73_01_01/packages/gnu/targets/arm/libs/install-native/arm-none-eabi/lib/hard" -L"/packages/gnu/targets/arm/libs/install-native/arm-none-eabi/lib/fpu" -Wl,--defsym,CORE0=1 -Wl,--defsym,STACKSIZE=0x10000 -Wl,--defsym,HEAPSIZE=0x400 --specs=nano.specs -o"vps_loopbackExample_idkAM572x_armExampleProject.out" "./Loopback_main.o" "./Loopback_test.o" -Wl,-T"configPkg/linker.cmd" -Wl,--start-group -lrdimon -lgcc -lm -lnosys -lc -Wl,--end-group 
makefile:147: recipe for target 'vps_loopbackExample_idkAM572x_armExampleProject.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:configPkg/linker.cmd:89: warning: memory region `APP_UNCACHED_DATA_BLK3_MEM' not declared
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:configPkg/linker.cmd:90: warning: memory region `APP_CACHED_DATA_BLK1_MEM' not declared
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:configPkg/linker.cmd:91: warning: memory region `APP_CACHED_DATA_BLK2_MEM' not declared
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:configPkg/linker.cmd:92: warning: memory region `APP_CODE_MEM' not declared
C:\ti\pdk_am57xx_1_0_13\packages\ti\drv\vps\lib\am572x\a15\release\vps_osal_tirtos.aa15fg(bsp_osal.oa15fg): In function `BspOsal_cacheInv':
C:\ti\pdk_am57xx_1_0_13\packages\ti\drv\vps\src\osal\tirtos/bsp_osal.c:1106: undefined reference to `ti_sysbios_family_arm_a15_Cache_inv__E'
C:\ti\pdk_am57xx_1_0_13\packages\ti\drv\vps\lib\am572x\a15\release\vps_osal_tirtos.aa15fg(bsp_osal.oa15fg): In function `BspOsal_cacheWbInv':
C:\ti\pdk_am57xx_1_0_13\packages\ti\drv\vps\src\osal\tirtos/bsp_osal.c:1171: undefined reference to `ti_sysbios_family_arm_a15_Cache_wbInv__E'
C:\ti\edma3_lld_2_12_05_30C\packages\ti\sdo\edma3\drv\sample\lib\tda2xx-evm\a15\debug\edma3_lld_drv_sample.aa15fg(sample_arm_cs.oa15fg): In function `Edma3_CacheInvalidate':
/oe/bld/build-CORTEX_1/arago-tmp-external-linaro-toolchain/work/am57xx_evm-linux-gnueabi/edma3-lld-rtos/2.12.05.30C-r0.1.tisdk-int12/git/packages/ti/sdo/edma3/drv/sample/src/sample_arm_cs.c:255: undefined reference to `ti_sysbios_family_arm_a15_Cache_inv__E'
C:\ti\edma3_lld_2_12_05_30C\packages\ti\sdo\edma3\drv\sample\lib\tda2xx-evm\a15\debug\edma3_lld_drv_sample.aa15fg(sample_arm_cs.oa15fg): In function `Edma3_CacheFlush':
/oe/bld/build-CORTEX_1/arago-tmp-external-linaro-toolchain/work/am57xx_evm-linux-gnueabi/edma3-lld-rtos/2.12.05.30C-r0.1.tisdk-int12/git/packages/ti/sdo/edma3/drv/sample/src/sample_arm_cs.c:296: undefined reference to `ti_sysbios_family_arm_a15_Cache_wb__E'
collect2.exe: error: ld returned 1 exit status
gmake[1]: *** [vps_loopbackExample_idkAM572x_armExampleProject.out] Error 1
gmake: *** [all] Error 2
makefile:143: recipe for target 'all' failed
**** Build Finished ****

Thanks.

Rgds
Shine
  • Shine,

    I am not seeing the same issue as you are reporting in the thread.  Please provide details of what .cfg file did you update and what is the command that you invoked for the build.

    I am providing the BIOS_common_a15.cfg file and build log from my build for your reference. Please ensure that the example build before you modify the .cfg for enabling SMP mode.

    vps_build_log.txt

    BIOS_common_a15.cfg

    Hope this helps.

    Regards,

    Rahul