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.

using CpIntc on sysBios for C6678

Other Parts Discussed in Thread: SYSBIOS

I have problem to use CpIntc for sysBios (6.33.2.31) with CCS 5.1.1.00031 and pdk_C6678_1_0_0_19 for C6678EVM.

After adding var CpIntc = xdc.useModule('ti.sysbios.family.c66.tci66xx.CpIntc'); in the cfg file, and adding ti.sysbios.family.c66.tci66xx.CpIntc to the project link library include as input. I then got an error of "cannot find file "ti.sysbios.family.c66.tci66xx;"", even though the line "var BIOS = xdc.useModule('ti.sysbios.BIOS');" does not have any problem and I added manually ""C:\Program Files\Texas Instruments\bios_6_33_02_31"" in the library serach path.

Did I missed anything here?

I am attaching the project file as well as the cfg file. I changed the project names and removed the . at the beginning so as to be able to upload.

thanks a lot

Weichun6648.C6678evmMtBakerDsp.cfg

  • Weichun,

    Typically you should not have to add to the library include path.  You just have to select which version of BIOS to use.

    You can make this selection under:  Windows->Preferences->Code Composer Studio->RTSC.

    Looks like its thinking that "ti.sysbios.family.c66.tci66xx;" is a file and not a path, are you sure you specified it under the include path?

    Judah

  • Hi, Judah,

    thank you very much for your help. I've attached a zip file containing all the project related settings. Could you please also take a look atthe attached makefile generated under debug? In line 121~124, I did specified them as file, not as path, the same way I include ti.platform.evm6678l.ae66

    -l"libc.a" \
    -lti.sysbios.family.c66.tci66xx; \
    -lti.platform.evm6678l.ae66 \
    -lti.drv.pcie.ae66 \

    but in line 302, I included the linker search path

    -i"C:/Program Files/Texas Instruments/bios_6_33_02_31"

    It is also interesting to notice that in the mapfile, I have the following symbole already listed, that means that it already found it, right?

                      8002b7e0    00000020     C6678evmMtBakerDsp_pe66.oe66 (.text:ti_sysbios_family_c66_Cache_Module_startup__E)
                      8002b800    00000020     C6678evmMtBakerDsp_pe66.oe66 (.text:ti_sysbios_family_c66_tci66xx_CpIntc_Module_startup__E)
                      8002b820    00000020     C6678evmMtBakerDsp_pe66.oe66 (.text:ti_sysbios_family_c66_tci66xx_CpIntc_dispatch__E)
                      8002b840    00000020     C6678evmMtBakerDsp_pe66.oe66 (.text:ti_sysbios_family_c66_tci66xx_CpIntc_unused__E)

    thanks a lot

    Weichun6765.cfg.zip

    ################################################################################
    # Automatically-generated file. Do not edit!
    ################################################################################

    SHELL = cmd.exe

    CG_TOOL_ROOT := C:/Program Files/Texas Instruments/ccsv5/tools/compiler/c6000

    ORDERED_OBJS += \
    $(GEN_CMDS__FLAG) \
    "./bakerDSP/TI_Bios/thrdinfo.obj" \
    "./bakerDSP/TI_Bios/swi_funcs.obj" \
    "./bakerDSP/TI_Bios/knlschdc.obj" \
    "./bakerDSP/TI_Bios/hwic.obj" \
    "./bakerDSP/TI_Bios/hwiaasm.obj" \
    "./bakerDSP/TI_Bios/hsthread.obj" \
    "./bakerDSP/baker_dsp_main.obj" \
    "./bakerDSP/hausware/source/fnc/ituG711/tabG711.obj" \
    "./bakerDSP/hausware/source/fnc/ituG711/g711.obj" \
    "./bakerDSP/hausware/source/fnc/machdet/powcalcasm.obj" \
    "./bakerDSP/hausware/source/fnc/machdet/phrevdet.obj" \
    "./bakerDSP/hausware/source/fnc/machdet/phrevbpfasm.obj" \
    "./bakerDSP/hausware/source/fnc/machdet/notchfiltasm.obj" \
    "./bakerDSP/hausware/source/fnc/machdet/hsatanasm.obj" \
    "./bakerDSP/hausware/source/fnc/machdet/cngfiltasm.obj" \
    "./bakerDSP/hausware/source/fnc/machdet/cngced.obj" \
    "./bakerDSP/hausware/source/fnc/machdet/cdis_flt.obj" \
    "./bakerDSP/hausware/source/haus/bios/profile.obj" \
    "./bakerDSP/hausware/source/haus/bios/clock.obj" \
    "./bakerDSP/hausware/source/haus/bm/qminsert.obj" \
    "./bakerDSP/hausware/source/haus/bm/qm.obj" \
    "./bakerDSP/hausware/source/haus/bm/bm.obj" \
    "./bakerDSP/hausware/source/haus/buffer/hsdbbufc.obj" \
    "./bakerDSP/hausware/source/haus/mediaq/medqwrtasm.obj" \
    "./bakerDSP/hausware/source/haus/mediaq/medqcpyasm.obj" \
    "./bakerDSP/hausware/source/haus/mediaq/medqaddasm.obj" \
    "./bakerDSP/hausware/source/haus/mediaq/hsmqcirc.obj" \
    "./bakerDSP/hausware/source/haus/mediaq/hsmedqc.obj" \
    "./bakerDSP/hausware/source/haus/memory/hsmemc.obj" \
    "./bakerDSP/hausware/source/haus/msgq/hsmsgqc.obj" \
    "./bakerDSP/hausware/source/haus/openhaus/hsopenc.obj" \
    "./bakerDSP/hausware/source/haus/openhaus/bakerDummy.obj" \
    "./bakerDSP/hausware/source/haus/rm/hsrmvhdc.obj" \
    "./bakerDSP/hausware/source/haus/rtdx/hsrtdxc.obj" \
    "./bakerDSP/hausware/source/haus/server/openvhd.obj" \
    "./bakerDSP/hausware/source/haus/server/hsservrc.obj" \
    "./bakerDSP/hausware/source/haus/server/hsopvhd.obj" \
    "./bakerDSP/hausware/source/haus/server/hshapic.obj" \
    "./bakerDSP/hausware/source/haus/server/hrmvsrv.obj" \
    "./bakerDSP/hausware/source/haus/server/hioctl.obj" \
    "./bakerDSP/hausware/source/haus/server/hinit.obj" \
    "./bakerDSP/hausware/source/haus/server/hclose.obj" \
    "./bakerDSP/hausware/source/haus/server/haddsrv.obj" \
    "./bakerDSP/hausware/source/haus/swb/swbproc.obj" \
    "./bakerDSP/hausware/source/haus/swb/swbctl.obj" \
    "./bakerDSP/hausware/source/haus/swb/mixer.obj" \
    "./bakerDSP/hausware/source/haus/swb/disconct.obj" \
    "./bakerDSP/hausware/source/haus/swb/connect.obj" \
    "./bakerDSP/hausware/source/haus/tone/modtonc.obj" \
    "./bakerDSP/hausware/source/haus/tone/modtonaasm.obj" \
    "./bakerDSP/hausware/source/haus/tone/mdmtone.obj" \
    "./bakerDSP/hausware/source/haus/tone/hstonec.obj" \
    "./bakerDSP/hausware/source/haus/tone/hssinasm.obj" \
    "./bakerDSP/hausware/source/haus/tone/hsgentonasm.obj" \
    "./bakerDSP/hausware/source/haus/tone/hsdettonasm.obj" \
    "./bakerDSP/hausware/source/haus/tone/hscosasm.obj" \
    "./bakerDSP/hausware/source/haus/tone/gentoneasm.obj" \
    "./bakerDSP/hausware/source/srv/cdis/v18notch.obj" \
    "./bakerDSP/hausware/source/srv/cdis/hscdis.obj" \
    "./bakerDSP/hausware/source/srv/clidtx/clidtx.obj" \
    "./bakerDSP/hausware/source/srv/cpm/hscpmc.obj" \
    "./bakerDSP/hausware/source/srv/cpm/hscpmaasm.obj" \
    "./bakerDSP/hausware/source/srv/cpm/cpm_coefasm.obj" \
    "./bakerDSP/hausware/source/srv/pte/pteprofc.obj" \
    "./bakerDSP/hausware/source/srv/pte/powerc.obj" \
    "./bakerDSP/hausware/source/srv/pte/hsputil.obj" \
    "./bakerDSP/hausware/source/srv/pte/hsptec.obj" \
    "./bakerDSP/hausware/source/srv/pve/g711wrap/g711wrap.obj" \
    "./bakerDSP/hausware/source/srv/pve/hspvec.obj" \
    "./bakerDSP/hausware/source/srv/pve/hspveaasm.obj" \
    "./bakerDSP/hausware/source/srv/qrysrv/hsqryc.obj" \
    "./bakerDSP/hausware/source/vhd/net/hsnetstm.obj" \
    "./bakerDSP/hausware/source/vhd/net/hsnetc.obj" \
    "./bakerDSP/hausware/test/verifyBaker/cdis_Test/cdis_unittest_util.obj" \
    "./bakerDSP/hausware/test/verifyBaker/cdis_Test/cdis_unittest_main.obj" \
    "./bakerDSP/hausware/test/verifyBaker/cpm_Test/cpm_unittest_util.obj" \
    "./bakerDSP/hausware/test/verifyBaker/cpm_Test/cpm_unittest_main.obj" \
    "./bakerDSP/kilauea/BM/BMC.obj" \
    "./bakerDSP/kilauea/CFG/pxdcfg.obj" \
    "./bakerDSP/kilauea/CFG/hauscfg.obj" \
    "./bakerDSP/kilauea/HA/hauserc.obj" \
    "./bakerDSP/kilauea/HA/HAC.obj" \
    "./bakerDSP/kilauea/HAL/util.obj" \
    "./bakerDSP/kilauea/HAL/uart.obj" \
    "./bakerDSP/kilauea/HAL/test.obj" \
    "./bakerDSP/kilauea/HAL/mcbsp_dma_config.obj" \
    "./bakerDSP/kilauea/HAL/mcbsp2_SPI.obj" \
    "./bakerDSP/kilauea/HAL/mcbsp1_Config.obj" \
    "./bakerDSP/kilauea/HAL/mcbsp0_config.obj" \
    "./bakerDSP/kilauea/HAL/hluarta.obj" \
    "./bakerDSP/kilauea/HAL/hltxbsp0.obj" \
    "./bakerDSP/kilauea/HAL/hlrxbsp0.obj" \
    "./bakerDSP/kilauea/HAL/hlclka.obj" \
    "./bakerDSP/kilauea/HAL/dspstart.obj" \
    "./bakerDSP/kilauea/HAL/dsp_init.obj" \
    "./bakerDSP/kilauea/HAL/dma_xfer.obj" \
    "./bakerDSP/kilauea/HAL/SLIC_Config.obj" \
    "./bakerDSP/kilauea/HAL/Hluartc.obj" \
    "./bakerDSP/kilauea/HAL/Hlcommc.obj" \
    "./bakerDSP/kilauea/HAL/HALC.obj" \
    "./bakerDSP/kilauea/HAL/HALA.obj" \
    "./bakerDSP/kilauea/HAL/DspDiag.obj" \
    "./bakerDSP/kilauea/HAL/DAA_Config.obj" \
    "./bakerDSP/kilauea/HI/histatsc.obj" \
    "./bakerDSP/kilauea/HI/HIC.obj" \
    "./bakerDSP/kilauea/TC/TCC.obj" \
    "./bakerDSP/kilauea/util/st_shell.obj" \
    "./c6657EVM/package/package_c6657EVM.obj" \
    "./evmC6678_4_mb/package/package_evmC6678_4_mb.obj" \
    "./omapL137EVM/package/package_omapL137EVM.obj" \
    -l"libc.a" \
    -lti.sysbios.family.c66.tci66xx; \
    -lti.platform.evm6678l.ae66 \
    -lti.drv.pcie.ae66 \
    "../bakerDSP/baker_dsp.cmd" \

    -include ../makefile.init

    RM := DEL /F
    RMDIR := RMDIR /S/Q

    # All of the sources participating in the build are defined here
    -include sources.mk
    -include subdir_vars.mk
    -include omapL137EVM/package/subdir_vars.mk
    -include evmC6678_4_mb/package/subdir_vars.mk
    -include c6657EVM/package/subdir_vars.mk
    -include bakerDSP/kilauea/util/subdir_vars.mk
    -include bakerDSP/kilauea/TC/subdir_vars.mk
    -include bakerDSP/kilauea/HI/subdir_vars.mk
    -include bakerDSP/kilauea/HAL/subdir_vars.mk
    -include bakerDSP/kilauea/HA/subdir_vars.mk
    -include bakerDSP/kilauea/CFG/subdir_vars.mk
    -include bakerDSP/kilauea/BM/subdir_vars.mk
    -include bakerDSP/hausware/test/verifyBaker/cpm_Test/subdir_vars.mk
    -include bakerDSP/hausware/test/verifyBaker/cdis_Test/subdir_vars.mk
    -include bakerDSP/hausware/source/vhd/net/subdir_vars.mk
    -include bakerDSP/hausware/source/srv/qrysrv/subdir_vars.mk
    -include bakerDSP/hausware/source/srv/pve/subdir_vars.mk
    -include bakerDSP/hausware/source/srv/pve/g711wrap/subdir_vars.mk
    -include bakerDSP/hausware/source/srv/pte/subdir_vars.mk
    -include bakerDSP/hausware/source/srv/cpm/subdir_vars.mk
    -include bakerDSP/hausware/source/srv/clidtx/subdir_vars.mk
    -include bakerDSP/hausware/source/srv/cdis/subdir_vars.mk
    -include bakerDSP/hausware/source/haus/tone/subdir_vars.mk
    -include bakerDSP/hausware/source/haus/swb/subdir_vars.mk
    -include bakerDSP/hausware/source/haus/server/subdir_vars.mk
    -include bakerDSP/hausware/source/haus/rtdx/subdir_vars.mk
    -include bakerDSP/hausware/source/haus/rm/subdir_vars.mk
    -include bakerDSP/hausware/source/haus/openhaus/subdir_vars.mk
    -include bakerDSP/hausware/source/haus/msgq/subdir_vars.mk
    -include bakerDSP/hausware/source/haus/memory/subdir_vars.mk
    -include bakerDSP/hausware/source/haus/mediaq/subdir_vars.mk
    -include bakerDSP/hausware/source/haus/buffer/subdir_vars.mk
    -include bakerDSP/hausware/source/haus/bm/subdir_vars.mk
    -include bakerDSP/hausware/source/haus/bios/subdir_vars.mk
    -include bakerDSP/hausware/source/fnc/machdet/subdir_vars.mk
    -include bakerDSP/hausware/source/fnc/ituG711/subdir_vars.mk
    -include bakerDSP/subdir_vars.mk
    -include bakerDSP/TI_Bios/subdir_vars.mk
    -include subdir_rules.mk
    -include omapL137EVM/package/subdir_rules.mk
    -include evmC6678_4_mb/package/subdir_rules.mk
    -include c6657EVM/package/subdir_rules.mk
    -include bakerDSP/kilauea/util/subdir_rules.mk
    -include bakerDSP/kilauea/TC/subdir_rules.mk
    -include bakerDSP/kilauea/HI/subdir_rules.mk
    -include bakerDSP/kilauea/HAL/subdir_rules.mk
    -include bakerDSP/kilauea/HA/subdir_rules.mk
    -include bakerDSP/kilauea/CFG/subdir_rules.mk
    -include bakerDSP/kilauea/BM/subdir_rules.mk
    -include bakerDSP/hausware/test/verifyBaker/cpm_Test/subdir_rules.mk
    -include bakerDSP/hausware/test/verifyBaker/cdis_Test/subdir_rules.mk
    -include bakerDSP/hausware/source/vhd/net/subdir_rules.mk
    -include bakerDSP/hausware/source/srv/qrysrv/subdir_rules.mk
    -include bakerDSP/hausware/source/srv/pve/subdir_rules.mk
    -include bakerDSP/hausware/source/srv/pve/g711wrap/subdir_rules.mk
    -include bakerDSP/hausware/source/srv/pte/subdir_rules.mk
    -include bakerDSP/hausware/source/srv/cpm/subdir_rules.mk
    -include bakerDSP/hausware/source/srv/clidtx/subdir_rules.mk
    -include bakerDSP/hausware/source/srv/cdis/subdir_rules.mk
    -include bakerDSP/hausware/source/haus/tone/subdir_rules.mk
    -include bakerDSP/hausware/source/haus/swb/subdir_rules.mk
    -include bakerDSP/hausware/source/haus/server/subdir_rules.mk
    -include bakerDSP/hausware/source/haus/rtdx/subdir_rules.mk
    -include bakerDSP/hausware/source/haus/rm/subdir_rules.mk
    -include bakerDSP/hausware/source/haus/openhaus/subdir_rules.mk
    -include bakerDSP/hausware/source/haus/msgq/subdir_rules.mk
    -include bakerDSP/hausware/source/haus/memory/subdir_rules.mk
    -include bakerDSP/hausware/source/haus/mediaq/subdir_rules.mk
    -include bakerDSP/hausware/source/haus/buffer/subdir_rules.mk
    -include bakerDSP/hausware/source/haus/bm/subdir_rules.mk
    -include bakerDSP/hausware/source/haus/bios/subdir_rules.mk
    -include bakerDSP/hausware/source/fnc/machdet/subdir_rules.mk
    -include bakerDSP/hausware/source/fnc/ituG711/subdir_rules.mk
    -include bakerDSP/subdir_rules.mk
    -include bakerDSP/TI_Bios/subdir_rules.mk
    -include objects.mk

    ifneq ($(MAKECMDGOALS),clean)
    ifneq ($(strip $(S_DEPS)),)
    -include $(S_DEPS)
    endif
    ifneq ($(strip $(S_UPPER_DEPS)),)
    -include $(S_UPPER_DEPS)
    endif
    ifneq ($(strip $(S62_DEPS)),)
    -include $(S62_DEPS)
    endif
    ifneq ($(strip $(C64_DEPS)),)
    -include $(C64_DEPS)
    endif
    ifneq ($(strip $(ASM_DEPS)),)
    -include $(ASM_DEPS)
    endif
    ifneq ($(strip $(CC_DEPS)),)
    -include $(CC_DEPS)
    endif
    ifneq ($(strip $(S55_DEPS)),)
    -include $(S55_DEPS)
    endif
    ifneq ($(strip $(C67_DEPS)),)
    -include $(C67_DEPS)
    endif
    ifneq ($(strip $(C??_DEPS)),)
    -include $(C??_DEPS)
    endif
    ifneq ($(strip $(CLA_DEPS)),)
    -include $(CLA_DEPS)
    endif
    ifneq ($(strip $(CPP_DEPS)),)
    -include $(CPP_DEPS)
    endif
    ifneq ($(strip $(S??_DEPS)),)
    -include $(S??_DEPS)
    endif
    ifneq ($(strip $(C_DEPS)),)
    -include $(C_DEPS)
    endif
    ifneq ($(strip $(C62_DEPS)),)
    -include $(C62_DEPS)
    endif
    ifneq ($(strip $(CXX_DEPS)),)
    -include $(CXX_DEPS)
    endif
    ifneq ($(strip $(C++_DEPS)),)
    -include $(C++_DEPS)
    endif
    ifneq ($(strip $(ASM_UPPER_DEPS)),)
    -include $(ASM_UPPER_DEPS)
    endif
    ifneq ($(strip $(K_DEPS)),)
    -include $(K_DEPS)
    endif
    ifneq ($(strip $(C43_DEPS)),)
    -include $(C43_DEPS)
    endif
    ifneq ($(strip $(S67_DEPS)),)
    -include $(S67_DEPS)
    endif
    ifneq ($(strip $(SA_DEPS)),)
    -include $(SA_DEPS)
    endif
    ifneq ($(strip $(S43_DEPS)),)
    -include $(S43_DEPS)
    endif
    ifneq ($(strip $(OPT_DEPS)),)
    -include $(OPT_DEPS)
    endif
    ifneq ($(strip $(S64_DEPS)),)
    -include $(S64_DEPS)
    endif
    ifneq ($(strip $(C_UPPER_DEPS)),)
    -include $(C_UPPER_DEPS)
    endif
    ifneq ($(strip $(C55_DEPS)),)
    -include $(C55_DEPS)
    endif
    endif

    -include ../makefile.defs

    # Add inputs and outputs from these tool invocations to the build variables

    # All Target
    all: MtBakerDsp.out

    # Tool invocations
    MtBakerDsp.out: $(OBJS) $(CMD_SRCS) $(GEN_CMDS)
        @echo 'Building target: $@'
        @echo 'Invoking: C6000 Linker'
        "C:/Program Files/Texas Instruments/ccsv5/tools/compiler/c6000/bin/cl6x" -mv6600 -g --define=KILAUEA_DSP=1 --display_error_number --diag_warning=225 --abi=eabi -z -m"MtBakerDsp.map" --warn_sections -i"C:/Program Files/Texas Instruments/ccsv5/tools/compiler/c6000/lib" -i"C:/Program Files/Texas Instruments/bios_6_33_02_31" -i"C:/Program Files/Texas Instruments/ccsv5/tools/compiler/c6000/include" -i"C:/Program Files/Texas Instruments/pdk_C6678_1_0_0_19/packages/ti/platform/evmc6678l/platform_test/../platform_lib/lib/debug" -i"C:/Program Files/Texas Instruments/pdk_C6678_1_0_0_19/packages/ti/drv/pcie/lib" --reread_libs --rom_model -o "MtBakerDsp.out" $(ORDERED_OBJS)
        @echo 'Finished building target: $@'
        @echo ' '

    # Other Targets
    clean:
        -$(RM) $(GEN_SRCS__QUOTED)$(GEN_MISC_FILES__QUOTED)$(C6000_EXECUTABLE_OUTPUTS__QUOTED)$(GEN_OPTS__QUOTED)$(GEN_CMDS__QUOTED) "MtBakerDsp.out"
        -$(RMDIR) $(GEN_MISC_DIRS__QUOTED)
        -$(RM) "omapL137EVM\package\package_omapL137EVM.pp" "evmC6678_4_mb\package\package_evmC6678_4_mb.pp" "c6657EVM\package\package_c6657EVM.pp" "bakerDSP\kilauea\util\st_shell.pp" "bakerDSP\kilauea\HI\histatsc.pp" "bakerDSP\kilauea\HAL\DAA_Config.pp" "bakerDSP\kilauea\HAL\DspDiag.pp" "bakerDSP\kilauea\HAL\HALA.pp" "bakerDSP\kilauea\HAL\Hlcommc.pp" "bakerDSP\kilauea\HAL\Hluartc.pp" "bakerDSP\kilauea\HAL\SLIC_Config.pp" "bakerDSP\kilauea\HAL\dma_xfer.pp" "bakerDSP\kilauea\HAL\dsp_init.pp" "bakerDSP\kilauea\HAL\dspstart.pp" "bakerDSP\kilauea\HAL\hlclka.pp" "bakerDSP\kilauea\HAL\hlrxbsp0.pp" "bakerDSP\kilauea\HAL\hltxbsp0.pp" "bakerDSP\kilauea\HAL\hluarta.pp" "bakerDSP\kilauea\HAL\mcbsp0_config.pp" "bakerDSP\kilauea\HAL\mcbsp1_Config.pp" "bakerDSP\kilauea\HAL\mcbsp2_SPI.pp" "bakerDSP\kilauea\HAL\mcbsp_dma_config.pp" "bakerDSP\kilauea\HAL\test.pp" "bakerDSP\kilauea\HAL\uart.pp" "bakerDSP\kilauea\HAL\util.pp" "bakerDSP\kilauea\HA\hauserc.pp" "bakerDSP\kilauea\CFG\hauscfg.pp" "bakerDSP\kilauea\CFG\pxdcfg.pp"
        -$(RM) "bakerDSP\hausware\test\verifyBaker\cpm_Test\cpm_unittest_main.pp" "bakerDSP\hausware\test\verifyBaker\cpm_Test\cpm_unittest_util.pp" "bakerDSP\hausware\test\verifyBaker\cdis_Test\cdis_unittest_main.pp" "bakerDSP\hausware\test\verifyBaker\cdis_Test\cdis_unittest_util.pp" "bakerDSP\hausware\source\vhd\net\hsnetc.pp" "bakerDSP\hausware\source\vhd\net\hsnetstm.pp" "bakerDSP\hausware\source\srv\qrysrv\hsqryc.pp" "bakerDSP\hausware\source\srv\pve\hspveaasm.pp" "bakerDSP\hausware\source\srv\pve\hspvec.pp" "bakerDSP\hausware\source\srv\pve\g711wrap\g711wrap.pp" "bakerDSP\hausware\source\srv\pte\hsptec.pp" "bakerDSP\hausware\source\srv\pte\hsputil.pp" "bakerDSP\hausware\source\srv\pte\powerc.pp" "bakerDSP\hausware\source\srv\pte\pteprofc.pp" "bakerDSP\hausware\source\srv\cpm\cpm_coefasm.pp" "bakerDSP\hausware\source\srv\cpm\hscpmaasm.pp" "bakerDSP\hausware\source\srv\cpm\hscpmc.pp" "bakerDSP\hausware\source\srv\clidtx\clidtx.pp" "bakerDSP\hausware\source\srv\cdis\hscdis.pp" "bakerDSP\hausware\source\srv\cdis\v18notch.pp"
        -$(RM) "bakerDSP\hausware\source\haus\tone\gentoneasm.pp" "bakerDSP\hausware\source\haus\tone\hscosasm.pp" "bakerDSP\hausware\source\haus\tone\hsdettonasm.pp" "bakerDSP\hausware\source\haus\tone\hsgentonasm.pp" "bakerDSP\hausware\source\haus\tone\hssinasm.pp" "bakerDSP\hausware\source\haus\tone\hstonec.pp" "bakerDSP\hausware\source\haus\tone\mdmtone.pp" "bakerDSP\hausware\source\haus\tone\modtonaasm.pp" "bakerDSP\hausware\source\haus\tone\modtonc.pp" "bakerDSP\hausware\source\haus\swb\connect.pp" "bakerDSP\hausware\source\haus\swb\disconct.pp" "bakerDSP\hausware\source\haus\swb\mixer.pp" "bakerDSP\hausware\source\haus\swb\swbctl.pp" "bakerDSP\hausware\source\haus\swb\swbproc.pp" "bakerDSP\hausware\source\haus\server\haddsrv.pp" "bakerDSP\hausware\source\haus\server\hclose.pp" "bakerDSP\hausware\source\haus\server\hinit.pp" "bakerDSP\hausware\source\haus\server\hioctl.pp" "bakerDSP\hausware\source\haus\server\hrmvsrv.pp" "bakerDSP\hausware\source\haus\server\hshapic.pp" "bakerDSP\hausware\source\haus\server\hsopvhd.pp"
        -$(RM) "bakerDSP\hausware\source\haus\server\hsservrc.pp" "bakerDSP\hausware\source\haus\server\openvhd.pp" "bakerDSP\hausware\source\haus\rtdx\hsrtdxc.pp" "bakerDSP\hausware\source\haus\rm\hsrmvhdc.pp" "bakerDSP\hausware\source\haus\openhaus\bakerDummy.pp" "bakerDSP\hausware\source\haus\openhaus\hsopenc.pp" "bakerDSP\hausware\source\haus\msgq\hsmsgqc.pp" "bakerDSP\hausware\source\haus\memory\hsmemc.pp" "bakerDSP\hausware\source\haus\mediaq\hsmedqc.pp" "bakerDSP\hausware\source\haus\mediaq\hsmqcirc.pp" "bakerDSP\hausware\source\haus\mediaq\medqaddasm.pp" "bakerDSP\hausware\source\haus\mediaq\medqcpyasm.pp" "bakerDSP\hausware\source\haus\mediaq\medqwrtasm.pp" "bakerDSP\hausware\source\haus\buffer\hsdbbufc.pp" "bakerDSP\hausware\source\haus\bm\bm.pp" "bakerDSP\hausware\source\haus\bm\qm.pp" "bakerDSP\hausware\source\haus\bm\qminsert.pp" "bakerDSP\hausware\source\haus\bios\clock.pp" "bakerDSP\hausware\source\haus\bios\profile.pp" "bakerDSP\hausware\source\fnc\machdet\cdis_flt.pp" "bakerDSP\hausware\source\fnc\machdet\cngced.pp"
        -$(RM) "bakerDSP\hausware\source\fnc\machdet\cngfiltasm.pp" "bakerDSP\hausware\source\fnc\machdet\hsatanasm.pp" "bakerDSP\hausware\source\fnc\machdet\notchfiltasm.pp" "bakerDSP\hausware\source\fnc\machdet\phrevbpfasm.pp" "bakerDSP\hausware\source\fnc\machdet\phrevdet.pp" "bakerDSP\hausware\source\fnc\machdet\powcalcasm.pp" "bakerDSP\hausware\source\fnc\ituG711\g711.pp" "bakerDSP\hausware\source\fnc\ituG711\tabG711.pp" "bakerDSP\baker_dsp_main.pp" "bakerDSP\TI_Bios\hsthread.pp" "bakerDSP\TI_Bios\hwiaasm.pp" "bakerDSP\TI_Bios\hwic.pp" "bakerDSP\TI_Bios\knlschdc.pp" "bakerDSP\TI_Bios\swi_funcs.pp" "bakerDSP\TI_Bios\thrdinfo.pp"
        -$(RM) "bakerDSP\kilauea\TC\TCC.pp" "bakerDSP\kilauea\HI\HIC.pp" "bakerDSP\kilauea\HAL\HALC.pp" "bakerDSP\kilauea\HA\HAC.pp" "bakerDSP\kilauea\BM\BMC.pp"
        -$(RM) "omapL137EVM\package\package_omapL137EVM.obj" "evmC6678_4_mb\package\package_evmC6678_4_mb.obj" "c6657EVM\package\package_c6657EVM.obj" "bakerDSP\kilauea\util\st_shell.obj" "bakerDSP\kilauea\TC\TCC.obj" "bakerDSP\kilauea\HI\HIC.obj" "bakerDSP\kilauea\HI\histatsc.obj" "bakerDSP\kilauea\HAL\DAA_Config.obj" "bakerDSP\kilauea\HAL\DspDiag.obj" "bakerDSP\kilauea\HAL\HALA.obj" "bakerDSP\kilauea\HAL\HALC.obj" "bakerDSP\kilauea\HAL\Hlcommc.obj" "bakerDSP\kilauea\HAL\Hluartc.obj" "bakerDSP\kilauea\HAL\SLIC_Config.obj" "bakerDSP\kilauea\HAL\dma_xfer.obj" "bakerDSP\kilauea\HAL\dsp_init.obj" "bakerDSP\kilauea\HAL\dspstart.obj" "bakerDSP\kilauea\HAL\hlclka.obj" "bakerDSP\kilauea\HAL\hlrxbsp0.obj" "bakerDSP\kilauea\HAL\hltxbsp0.obj" "bakerDSP\kilauea\HAL\hluarta.obj" "bakerDSP\kilauea\HAL\mcbsp0_config.obj" "bakerDSP\kilauea\HAL\mcbsp1_Config.obj" "bakerDSP\kilauea\HAL\mcbsp2_SPI.obj" "bakerDSP\kilauea\HAL\mcbsp_dma_config.obj" "bakerDSP\kilauea\HAL\test.obj" "bakerDSP\kilauea\HAL\uart.obj" "bakerDSP\kilauea\HAL\util.obj"
        -$(RM) "bakerDSP\kilauea\HA\HAC.obj" "bakerDSP\kilauea\HA\hauserc.obj" "bakerDSP\kilauea\CFG\hauscfg.obj" "bakerDSP\kilauea\CFG\pxdcfg.obj" "bakerDSP\kilauea\BM\BMC.obj" "bakerDSP\hausware\test\verifyBaker\cpm_Test\cpm_unittest_main.obj" "bakerDSP\hausware\test\verifyBaker\cpm_Test\cpm_unittest_util.obj" "bakerDSP\hausware\test\verifyBaker\cdis_Test\cdis_unittest_main.obj" "bakerDSP\hausware\test\verifyBaker\cdis_Test\cdis_unittest_util.obj" "bakerDSP\hausware\source\vhd\net\hsnetc.obj" "bakerDSP\hausware\source\vhd\net\hsnetstm.obj" "bakerDSP\hausware\source\srv\qrysrv\hsqryc.obj" "bakerDSP\hausware\source\srv\pve\hspveaasm.obj" "bakerDSP\hausware\source\srv\pve\hspvec.obj" "bakerDSP\hausware\source\srv\pve\g711wrap\g711wrap.obj" "bakerDSP\hausware\source\srv\pte\hsptec.obj" "bakerDSP\hausware\source\srv\pte\hsputil.obj" "bakerDSP\hausware\source\srv\pte\powerc.obj" "bakerDSP\hausware\source\srv\pte\pteprofc.obj" "bakerDSP\hausware\source\srv\cpm\cpm_coefasm.obj" "bakerDSP\hausware\source\srv\cpm\hscpmaasm.obj"
        -$(RM) "bakerDSP\hausware\source\srv\cpm\hscpmc.obj" "bakerDSP\hausware\source\srv\clidtx\clidtx.obj" "bakerDSP\hausware\source\srv\cdis\hscdis.obj" "bakerDSP\hausware\source\srv\cdis\v18notch.obj" "bakerDSP\hausware\source\haus\tone\gentoneasm.obj" "bakerDSP\hausware\source\haus\tone\hscosasm.obj" "bakerDSP\hausware\source\haus\tone\hsdettonasm.obj" "bakerDSP\hausware\source\haus\tone\hsgentonasm.obj" "bakerDSP\hausware\source\haus\tone\hssinasm.obj" "bakerDSP\hausware\source\haus\tone\hstonec.obj" "bakerDSP\hausware\source\haus\tone\mdmtone.obj" "bakerDSP\hausware\source\haus\tone\modtonaasm.obj" "bakerDSP\hausware\source\haus\tone\modtonc.obj" "bakerDSP\hausware\source\haus\swb\connect.obj" "bakerDSP\hausware\source\haus\swb\disconct.obj" "bakerDSP\hausware\source\haus\swb\mixer.obj" "bakerDSP\hausware\source\haus\swb\swbctl.obj" "bakerDSP\hausware\source\haus\swb\swbproc.obj" "bakerDSP\hausware\source\haus\server\haddsrv.obj" "bakerDSP\hausware\source\haus\server\hclose.obj" "bakerDSP\hausware\source\haus\server\hinit.obj"
        -$(RM) "bakerDSP\hausware\source\haus\server\hioctl.obj" "bakerDSP\hausware\source\haus\server\hrmvsrv.obj" "bakerDSP\hausware\source\haus\server\hshapic.obj" "bakerDSP\hausware\source\haus\server\hsopvhd.obj" "bakerDSP\hausware\source\haus\server\hsservrc.obj" "bakerDSP\hausware\source\haus\server\openvhd.obj" "bakerDSP\hausware\source\haus\rtdx\hsrtdxc.obj" "bakerDSP\hausware\source\haus\rm\hsrmvhdc.obj" "bakerDSP\hausware\source\haus\openhaus\bakerDummy.obj" "bakerDSP\hausware\source\haus\openhaus\hsopenc.obj" "bakerDSP\hausware\source\haus\msgq\hsmsgqc.obj" "bakerDSP\hausware\source\haus\memory\hsmemc.obj" "bakerDSP\hausware\source\haus\mediaq\hsmedqc.obj" "bakerDSP\hausware\source\haus\mediaq\hsmqcirc.obj" "bakerDSP\hausware\source\haus\mediaq\medqaddasm.obj" "bakerDSP\hausware\source\haus\mediaq\medqcpyasm.obj" "bakerDSP\hausware\source\haus\mediaq\medqwrtasm.obj" "bakerDSP\hausware\source\haus\buffer\hsdbbufc.obj" "bakerDSP\hausware\source\haus\bm\bm.obj" "bakerDSP\hausware\source\haus\bm\qm.obj"
        -$(RM) "bakerDSP\hausware\source\haus\bm\qminsert.obj" "bakerDSP\hausware\source\haus\bios\clock.obj" "bakerDSP\hausware\source\haus\bios\profile.obj" "bakerDSP\hausware\source\fnc\machdet\cdis_flt.obj" "bakerDSP\hausware\source\fnc\machdet\cngced.obj" "bakerDSP\hausware\source\fnc\machdet\cngfiltasm.obj" "bakerDSP\hausware\source\fnc\machdet\hsatanasm.obj" "bakerDSP\hausware\source\fnc\machdet\notchfiltasm.obj" "bakerDSP\hausware\source\fnc\machdet\phrevbpfasm.obj" "bakerDSP\hausware\source\fnc\machdet\phrevdet.obj" "bakerDSP\hausware\source\fnc\machdet\powcalcasm.obj" "bakerDSP\hausware\source\fnc\ituG711\g711.obj" "bakerDSP\hausware\source\fnc\ituG711\tabG711.obj" "bakerDSP\baker_dsp_main.obj" "bakerDSP\TI_Bios\hsthread.obj" "bakerDSP\TI_Bios\hwiaasm.obj" "bakerDSP\TI_Bios\hwic.obj" "bakerDSP\TI_Bios\knlschdc.obj" "bakerDSP\TI_Bios\swi_funcs.obj" "bakerDSP\TI_Bios\thrdinfo.obj"
        -@echo 'Finished clean'
        -@echo ' '

    .PHONY: all clean dependents
    .SECONDARY:

    -include ../makefile.targets

  • Hi, Judah,

    one additional observation:

    if I just use static CP_INTC config, I do not have to include ti.sysbios.family.c66.tci66xx in the file include path, as those functions need are already included in the map file.

    But if I need to access to utility function Void postSysInt(UInt id, UInt sysInt); or Void postSysInt(UInt id, UInt sysInt); or Void CpIntc_postSysInt(UInt id, UInt sysInt), I got linker problem that they could not resolve them.

     undefined         first referenced               
      symbol               in file                    
     ---------         ----------------               
     CpIntc_postSysInt ./bakerDSP/kilauea/HAL/uart.obj

    I even copied the implementation of CpIntc_postSysInt as below, then, I got the following error message "Unresolved symbol ti_sysbios_family_c66_tci66xx_CpIntc_postSysInt__F in file "

    #include "package/internal/CpIntc.xdc.h"
    Void CpIntc_postSysInt(UInt id, UInt sysInt)
    {
        CpIntc_module->controller[id]->SISR = sysInt;
    }

    I think there is something I really misunderstood or missed. Could you please give me a hint?

    thanks

    Weichun

  • Weichun,

    Any BIOS module that you use in your *.c code requires that you do a xdc.useModule() in your *.cfg file.  If you are calling the function CpIntc_postSysInt()  you definitely need to do the following in your *.cfg file:

    xdc.useModule("ti.sysbios.family.c66.tci66xx.CpIntc");

    I hope that helps.  You should never have to add paths to any BIOS modules.

    Judah

  • Hi, Judah,

    I defintely have "var CpIntc=xdc.useModule("ti.sysbios.family.c66.tci66xx.CpIntc");", please reference the cfg I attached in the first email of the chain (I am also including it in this message). In fact, from map file, I have all the other CpIntc functions such as in mapfile. The global structure CpIntc_module can also be accessed from c-file. The only problem is CpIntc_postSysInt.The only problem is CpIntc_postSysInt().

    From sysBios manual, the function is postSysInt(), which is not available. I searched and found CpIntc_postSysInt, but ran into all those strange problems. Could it be caused by the fact that I was using cfg to configure the cpIntc statically and have problem to use c to access it? Is there anything else I have to do to access the sysBios modules?

    thanks

    Weichun

    the cfg file

    var Semaphore = xdc.useModule('ti.sysbios.knl.Semaphore');
    var Task = xdc.useModule('ti.sysbios.knl.Task');
    var Clock = xdc.useModule('ti.sysbios.knl.Clock');
    var Swi = xdc.useModule('ti.sysbios.knl.Swi');
    var Memory = xdc.useModule('xdc.runtime.Memory');
    var Startup = xdc.useModule('xdc.runtime.Startup');
    var BIOS = xdc.useModule('ti.sysbios.BIOS');
    var Agent = xdc.useModule('ti.sysbios.rta.Agent');
    var Cache = xdc.useModule('ti.sysbios.hal.Cache');
    var Hwi = xdc.useModule('ti.sysbios.hal.Hwi');
    var EventCombiner = xdc.useModule('ti.sysbios.family.c64p.EventCombiner');
    var Exception = xdc.useModule('ti.sysbios.family.c64p.Exception');
    /*
    var CpIntc = xdc.useModule('ti.sysbios.family.c66.tci66xx.CpIntc');
    */
    var CpIntc = xdc.useModule('ti.sysbios.family.c66.tci66xx.CpIntc');


    /*
    ** Register an EVM Init handler with BIOS. This will initialize the hardware.
    ** BIOS calls before it starts.
    */
    Startup.firstFxns.$add('&EVM_init');
    /*
    ** Create the Main Thread Task for our application.
    */
    var tskNdkMainThread = Task.create("&ledPlayTask");
    tskNdkMainThread.stackSize = 0x2000;
    tskNdkMainThread.priority = 5;
    tskNdkMainThread.instance.name = "ledPlayTask";

    var uartMainThread = Task.create("&uartTask");
    uartMainThread.stackSize = 0x2000;
    uartMainThread.priority = 4;
    uartMainThread.instance.name = "uartTask";

    Semaphore.supportsEvents = false;
    var Sem0Params = new Semaphore.Params();
    Sem0Params.instance.name = "sem0";
    Program.global.sem0 = Semaphore.create(null, Sem0Params);
    var tsk0FxnHandleParams = new Task.Params();
    tsk0FxnHandleParams.instance.name = "tsk0FxnHandle";
    Program.global.tsk0FxnHandle = Task.create("&tsk0Fxn", tsk0FxnHandleParams);
    var swi_dma_isr_temporary_clkParams = new Clock.Params();
    swi_dma_isr_temporary_clkParams.instance.name = "swi_dma_isr_temporary_clk";
    swi_dma_isr_temporary_clkParams.period = 5;
    swi_dma_isr_temporary_clkParams.startFlag = true;
    Program.global.swi_dma_isr_temporary_clk = Clock.create("&clk5msfun_swipost040", 5, swi_dma_isr_temporary_clkParams);
    var clock_040Params = new Clock.Params();
    clock_040Params.instance.name = "clock_040";
    clock_040Params.period = 5;
    clock_040Params.startFlag = true;
    Program.global.clock_040 = Clock.create("&swipost040", 5, clock_040Params);
    var clock_080Params = new Clock.Params();
    clock_080Params.instance.name = "clock_080";
    clock_080Params.period = 10;
    clock_080Params.startFlag = true;
    Program.global.clock_080 = Clock.create("&swipost080", 10, clock_080Params);
    var clock_160Params = new Clock.Params();
    clock_160Params.instance.name = "clock_160";
    clock_160Params.period = 20;
    clock_160Params.startFlag = true;
    Program.global.clock_160 = Clock.create("&swipost160", 20, clock_160Params);
    var clock_240Params = new Clock.Params();
    clock_240Params.instance.name = "clock_240";
    clock_240Params.period = 30;
    clock_240Params.startFlag = true;
    Program.global.clock_240 = Clock.create("&swipost240", 30, clock_240Params);
    var swi_dma_isr_temp_swiParams = new Swi.Params();
    swi_dma_isr_temp_swiParams.instance.name = "swi_dma_isr_temp_swi";
    swi_dma_isr_temp_swiParams.priority = 1;
    Program.global.swi_dma_isr_temp_swi = Swi.create("&dma0_tdm_rx_int", swi_dma_isr_temp_swiParams);
    var Thrd040SwiParams = new Swi.Params();
    Thrd040SwiParams.instance.name = "Thrd040Swi";
    Thrd040SwiParams.priority = 5;
    Program.global.Thrd040Swi = Swi.create("&Thrd040CB", Thrd040SwiParams);
    var Thrd080SwiParams = new Swi.Params();
    Thrd080SwiParams.instance.name = "Thrd080Swi";
    Thrd080SwiParams.priority = 4;
    Program.global.Thrd080Swi = Swi.create("&Thrd080CB", Thrd080SwiParams);
    var Thrd160SwiParams = new Swi.Params();
    Thrd160SwiParams.instance.name = "Thrd160Swi";
    Thrd160SwiParams.priority = 3;
    Program.global.Thrd160Swi = Swi.create("&Thrd160CB", Thrd160SwiParams);
    var Thrd240SwiParams = new Swi.Params();
    Thrd240SwiParams.instance.name = "Thrd240Swi";
    Thrd240SwiParams.priority = 2;
    Program.global.Thrd240Swi = Swi.create("&Thrd240CB", Thrd240SwiParams);
    var execontextInstance0 = xdc.lookup('xdc.platform.ExeContext.Instance#0');
    Agent.sysbiosSwiLogging = true;
    Agent.sysbiosHwiLogging = true;
    Agent.sysbiosSwiLoggingRuntimeControl = true;
    Agent.sysbiosHwiLoggingRuntimeControl = true;

    var semaphore1Params = new Semaphore.Params();
    semaphore1Params.instance.name = "semUart";
    Program.global.semUart = Semaphore.create(null, semaphore1Params);

    var semaphore0Params = new Semaphore.Params();
    semaphore0Params.instance.name = "semLed";
    Program.global.semLed = Semaphore.create(null, semaphore0Params);


    var LoggerBuf = xdc.useModule('xdc.runtime.LoggerBuf');
    var Load = xdc.useModule('ti.sysbios.utils.Load');
    var Diags = xdc.useModule('xdc.runtime.Diags');
    var loggerBuf = LoggerBuf.create();
    Load.common$.logger = loggerBuf;
    Load.common$.diags_USER4 = Diags.ALWAYS_ON;

    CpIntc.sysInts[148].fxn = '&event148Fxn';
    CpIntc.sysInts[148].arg = 148;
    CpIntc.sysInts[148].hostInt = 2;
    CpIntc.sysInts[148].enable = true;

    CpIntc.sysInts[149].fxn = '&event149Fxn';
    CpIntc.sysInts[149].arg = 149;
    CpIntc.sysInts[149].hostInt = 2;
    CpIntc.sysInts[149].enable = true;

    CpIntc.sysInts[149].fxn = '&event150Fxn';
    CpIntc.sysInts[149].arg = 150;
    CpIntc.sysInts[149].hostInt = 2;
    CpIntc.sysInts[149].enable = true;

    CpIntc.mapHostIntToHwiMeta(2, 4);

  • Weichun,

    I don't know what's going on with your project.  It looks very different from typical BIOS project.

    I tried opening your project in my CCS and it opens fine but I see that you define lots of include path.  Typically in BIOS project, we don't need to define any include paths.  We just check which BIOS version we are using and the project automatically appends the BIOS package to the compiler and linker paths.  Looks like you have a different build system so I'm not sure whats going on.  I will suggest someone who is more knowledgeable about the build stuff to take a look at this thread.

    Judah

  • Weichun,
    it seems that your current problem is that the symbol CpIntc_postSysInt cannot be found. Can you post the part of the file kilauea/HAL/uart.c with includes? The error message indicates that either you don't have
    #include <ti/sysbios/family/c66/tci66xx/CpIntc.h>
    or it's not being processed correctly.

  • Judah,

    I think it is a linking problem instead of a compiling problem, as I described in the previous messages. I work around this problem by re-writing the CpIntc_postSysInt with a different name myCpIntc_postSysInt (if I use either postSysInt or CpIntc_postSysInt, I would run into linker problem that they are undefined symbols). I would like to understand why I ran into problem there.

    Please reference the attached file 1715.uart.c

    thanks a lot

    Weichun

  • Weichun,
    can you post the version of uart.c for which you got the error message from one of your previous posts:

     undefined         first referenced               
      symbol               in file                    
     ---------         ----------------               
     CpIntc_postSysInt ./bakerDSP/kilauea/HAL/uart.obj

    That's the problem we are trying to solve, right? The attached version of uart.c contains your workaround and it also includes the internal header file <package/internal/CpIntc.xdc.h>, which you should never do. Please add the following to the top of the original version of your uart.c file, and rebuild:

    #include <xdc/std.h>
    #include <ti/sysbios/family/c66/tci66xx/CpIntc.h>

    If there are any warnings emitted by the compiler when compiling uart.c, please post these warnings too together with any error messages coming from the linker.

    Thanks,
    Sasha

     

  • Hi, Sasha,

    thank you so much for your help. I'll try to use the header file so that my workaround can be compiled.

    But why would I run into the undefined symbol problem, which is generated by linker, and is not related to the header during compile time? -- is there a way to use the buildin function without my workaroun d?

    thanks

    Weichun

  • Weichun,
    I can't tell if the problem is related or not to the header unless you post the complete console output. There could be a warning from the compiler that it can't find the function.

    Certainly, there is a way to use the original SYS/BIOS function CpIntc_postSysInt. Many users are using that function, we are just trying to figure out in this thread why it's not working for you.