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: GIO driver fails to compile

Part Number: AM5728
Other Parts Discussed in Thread: SYSBIOS

Tool/software: TI-RTOS

Hi,

I want to use GIO driver for mcasp,  but compile fail,I cannot figure out why.  Can someone help me? Thank u in advance!

undefined first referenced
symbol in file
--------- ----------------
xdc_runtime_knl_Sync_signal__E /home/lidaqiang/work/one/svn/build1_new/application/multi_proc/One/dsp1/bin/release/configuro/package/cfg/Dsp1_pe66.src/sysbios/sysbios.ae66<BIOS.obj>
xdc_runtime_knl_Sync_wait__E /home/lidaqiang/work/one/svn/build1_new/application/multi_proc/One/dsp1/bin/release/configuro/package/cfg/Dsp1_pe66.src/sysbios/sysbios.ae66<BIOS.obj>

init cfg file:

var GIO = xdc.useModule('ti.sysbios.io.GIO');

var iomFxns = "Mcasp_IOMFXNS";
var initFxn = "audioUserMcaspInit";
var deviceParams = "audioMcaspParams";
var deviceId = 1;
GIO.addDeviceMeta("/mcasp0", iomFxns, initFxn, deviceId, deviceParams);

var iomFxns = "Audio_IOMFXNS";
var initFxn = "audioUserAudioInit";
var deviceParams = "audioParams";
var deviceId = 1;
GIO.addDeviceMeta("/audio0", iomFxns, initFxn, deviceId, deviceParams);

code:

aHandle->stream = GIO_create("/audio0",
((SND_PCM_STREAM_CAPTURE == type) ? GIO_INPUT : GIO_OUTPUT),
&ioParams, &eb);

  • The RTOS team have been notified. They will respond here.
  • Hi,

    Please check e2e.ti.com/.../337821. It looks that GIO.addDeviceMeta("/audio0", iomFxns, initFxn, deviceId, deviceParams); API has already been deprecated.

    Regards, Eric
  • 1 cfg file

    var DEV = xdc.useModule('ti.sysbios.io.DEV');
    DEV.tableSize = 2;

    var dev0Params = new DEV.Params();
    dev0Params.instance.name = "mcasp";
    dev0Params.initFxn = "&audioUserMcaspInit";
    dev0Params.deviceParams = "&audioMcaspParams";
    dev0Params.devid = 0;
    Program.global.generator = DEV.create("/mcasp0", "&Mcasp_IOMFXNS", dev0Params);

    var dev1Params = new DEV.Params();
    dev1Params.instance.name = "audio";
    dev1Params.initFxn = "&audioUserAudioInit";
    dev1Params.deviceParams = "&audioParams";
    dev1Params.devid = 1;
    Program.global.generator = DEV.create("/audio0", "&Audio_IOMFXNS", dev1Params);

    2 code 

    Error_init(&eb);

    GIO_Params_init(&ioParams);

    ioParams.chanParams = &audioChanParamsIN;
    ioParams.model = GIO_Model_ISSUERECLAIM;

    Vps_rprintf("ldq enter %s %d\n", __FUNCTION__, __LINE__);
    inStream = GIO_create("/audio0", GIO_INPUT, &ioParams, &eb); <--------------  err 
    if (inStream == NULL)
    {
    Vps_rprintf("\r\nCreate input stream FAILED.\n");
    BIOS_exit(0);
    }

    ti-processor-sdk-rtos-am57xx-evm-03.01.00.06-Linux-x86-Install/ccs6/ccsv6/tools/compiler/ti-cgt-c6000_8.1.1/lib/libc.a
    <Linking>

    undefined first referenced
    symbol in file
    --------- ----------------
    xdc_runtime_knl_Sync_signal__E /home/lidaqiang/work/one/svn/build1_new/application/multi_proc/One/dsp1/bin/release/configuro/package/cfg/Dsp1_pe66.src/sysbios/sysbios.ae66<BIOS.obj>
    xdc_runtime_knl_Sync_wait__E /home/lidaqiang/work/one/svn/build1_new/application/multi_proc/One/dsp1/bin/release/configuro/package/cfg/Dsp1_pe66.src/sysbios/sysbios.ae66<BIOS.obj>

    error: unresolved symbols remain
    error: errors encountered during linking; "bin/release/server_dsp1.xe66" not
    built

    >> Compilation failure
    makefile:77: recipe for target 'bin/release/server_dsp1.xe66' failed

  • Hi,

    There may be XDC, SYSBIOS and Processor SDK RTOS versions mismatch issue and cause issues. 3.1.0.6 is already a old release, have you used the correct XDC, SYSBIOS versions showing in the Processor SDK RTOS user guide?

    Regards, Eric
  • Hi,

       New software has been installed but the problem remains.

    BIOS_INSTALL_DIR = /opt/ti-processor-sdk-rtos-am57xx-evm-04.01.00.06-Linux-x86-Install/bios_6_46_05_55
    IPC_INSTALL_DIR = /opt/ti-processor-sdk-rtos-am57xx-evm-04.01.00.06-Linux-x86-Install/ipc_3_46_02_04
    XDC_INSTALL_DIR = /opt/ti-processor-sdk-rtos-am57xx-evm-04.01.00.06-Linux-x86-Install/xdctools_3_32_01_22_core
    XDAIS_INSTALL_DIR = /opt/ti-processor-sdk-rtos-am57xx-evm-04.01.00.06-Linux-x86-Install/xdais_7_24_00_04
    CSL_INSTALL_DIR = /opt/ti-processor-sdk-rtos-am57xx-evm-04.01.00.06-Linux-x86-Install/pdk_am57xx_1_0_8/packages
    EDMA_INSTALL_DIR = /opt/ti-processor-sdk-rtos-am57xx-evm-04.01.00.06-Linux-x86-Install/edma3_lld_2_12_05_29
    PDA_INSTALL_DIR = /opt/ti-processor-sdk-rtos-am57xx-evm-04.01.00.06-Linux-x86-Install/pdk_am57xx_1_0_8


    DEPOT = /opt/ti_cc7
    gnu.targets.arm.A15F = $(DEPOT)/ccsv7/tools/compiler/gcc-arm-none-eabi-6-2017-q1-update
    gnu.targets.arm.A15F = $(DEPOT)/ccsv7/tools/compiler/gcc-arm-none-eabi-6-2017-q1-update
    ti.targets.elf.C66 = $(DEPOT)/ccsv7/tools/compiler/ti-cgt-c6000_8.1.3
    ti.targets.arm.elf.M4 = $(DEPOT)/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS
    ti.targets.arp32.elf.ARP32_far = $(DEPOT)/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS

    -l ../../../../mcfw/src_bios6/links_c6xdsp/audio/avfilter/aac/lib/aacdec_tii_lc_elf.l64P -l ../../../../mcfw/src_bios6/links_c6xdsp/audio/avfilter/opus/lib/opusdec_tii.le66 -l ../../../../mcfw/src_bios6/links_c6xdsp/audio/avfilter/g711a/lib/g711adec_tii_elf.l64P -l ../../../../mcfw/src_bios6/links_c6xdsp/audio/avfilter/g711u/lib/g711udec_tii_elf.l64P -l ../../../../mcfw/src_bios6/links_c6xdsp/audio/avfilter/g722/lib/g722dec_tii_elf.l64P -l ../../../../mcfw/src_bios6/links_c6xdsp/audio/avfilter/g7221/lib/g7221dec_tii_elf.l64P -l ../../../../mcfw/src_bios6/links_c6xdsp/audio/avfilter/aac/lib/mp4aacenc_tij_lc_elf.l67 -l ../../../../mcfw/src_bios6/links_c6xdsp/audio/avfilter/opus/lib/opusenc_tii.le66 -l ../../../../mcfw/src_bios6/links_c6xdsp/audio/avfilter/g711a/lib/g711aenc_tii_elf.l64P -l ../../../../mcfw/src_bios6/links_c6xdsp/audio/avfilter/g711u/lib/g711uenc_tii_elf.l64P -l ../../../../mcfw/src_bios6/links_c6xdsp/audio/avfilter/g722/lib/g722enc_tii_elf.l64P -l ../../../../mcfw/src_bios6/links_c6xdsp/audio/avfilter/g7221/lib/g7221enc_tii_elf.l64P -l /opt/ti-processor-sdk-rtos-am57xx-evm-04.01.00.06-Linux-x86-Install/dsplib_c66x_3_4_0_0/packages/ti/dsplib/lib/dsplib.lib bin/release/configuro/linker.cmd -l /opt/ti_cc7/ccsv7/tools/compiler/ti-cgt-c6000_8.1.3/lib/libc.a
    <Linking>

    undefined first referenced
    symbol in file
    --------- ----------------
    xdc_runtime_knl_Sync_signal__E /home/lidaqiang/work/one/work/build1_new/application/multi_proc/One/dsp1/bin/release/configuro/package/cfg/Dsp1_pe66.src/sysbios/sysbios.ae66<BIOS.obj>
    xdc_runtime_knl_Sync_wait__E /home/lidaqiang/work/one/work/build1_new/application/multi_proc/One/dsp1/bin/release/configuro/package/cfg/Dsp1_pe66.src/sysbios/sysbios.ae66<BIOS.obj>

    error: unresolved symbols remain
    error: errors encountered during linking; "bin/release/server_dsp1.xe66" not
    built