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.

running McASP code from pdk CCS6 , XDS200, lcdk omap-L138

Other Parts Discussed in Thread: OMAPL138, OMAP-L138

hi,

I built the code here C:\ti\pdk_OMAPL138_1_01_00_02\packages\ti\drv\exampleProjects\MCASP_AudioExampleProject

in CC6 with the bios_6_35_01_29 as the debugger requested.


The project builds but I'm not sure it can run. I get no pass through audio and the following error in the console.

[C674X_0]
EDMA driver initialization FAIL

Create input stream FAILED.


I tried changing the setting in targetConfigs to lcdk OMAP-L138 and XDS200 usb jtag debugger.

I also tried adding my own config file mcdsk.ccxml and selected the correct 0MAP-L138 / XDS200

I get same error either way.


Is there a config I need to edit for EDMA driver ?

I attached a screen shot of the debug window.

  • Hi Ben,
    Did you initialize the board through gel file ?
    From your screen shot, you didn't connect ARM at all but you should do.
    OMAPL138 is ARM boot device i.e ARM will wake up first and DSP is in reset state then you have to connect DSP to wakeup.

    So, please connect ARM core first, it will call the gel file and initialize the board and then connect DSP, after that you can any example on DSP core.
  • Hi, I have no Gel files in GEL view. which Gel file should I add?

    I thought the ARM was booting linux from MicroSD card. Is this wrong?

    What does the GEL file instruct the ARM to DO? the help menu in CSS doesn't give me any clues...

    [EDIT]  I have loaded the gel file, but still I get errors and plenty of XDS200 crashes..

    how do I boot the ARM first ? then DSP ?



    thanks, ben

  • Hi Ben,

    Please refer to the following TI wiki page.

    You would get the logs on CCS console when you connect ARM core, and also you could see the "DSP wake up complete"

  • Hi , I have something similar on console but no audio output. I thought this McASP example should pass audio from input to output?

    thanks, ben

  • Hi Ben,

    I'm able to run the McASP example code and able to hear audio output on OMAPL138 LCDK board.

    You have to gel file for ARM core and not for DSP.

    Connect ARM core first with gel file then connect DSP core and load the McASP code.

    PS: Connect audio source input to top of J19 connector and connect Ear phone to the down port of J19 audio connector.

  • Hi, I'm pointing to the same gel file there. no audio.

    when I click test connection in the target configuration window i get this error.

    [Start: Texas Instruments XDS2xx USB Debug Probe_0]

    Execute the command:

    %ccs_base%/common/uscif/dbgjtag -f %boarddatafile% -rv -o -S integrity

    [Result]

    -----[Print the board config pathname(s)]------------------------------------

    C:\Users\benbiles\AppData\Local\TEXASI~1\

       CCS\ti\0\0\BrdDat\testBoard.dat

    -----[Print the reset-command software log-file]-----------------------------

    This utility has selected a 560/2xx-class product.

    This utility will load the program 'xds2xxu.out'.

    E_RPCENV_IO_ERROR(-6) No connection: DTC_IO_Open::dtc_io

    Failed to open i/o connection (xds2xxu:0)

    An error occurred while soft opening the controller.

    -----[An error has occurred and this utility has aborted]--------------------

    This error is generated by TI's USCIF driver or utilities.

    The value is '-250' (0xffffff06).

    The title is 'SC_ERR_ECOM_EMUNAME'.

    The explanation is:

    An attempt to access the debug probe via USCIF ECOM has failed.

    [End: Texas Instruments XDS2xx USB Debug Probe_0]

    Here's a screen shot.,

     s

    Also getting this error and XDS200 appears  to lock up a lot: ICEPICK_C: Error initializing emulator: (Error -2083 @ 0x0) Unable to communicate with the debug probe. Confirm debug probe configuration and connections, reset the debug probe, and retry the operation. (Emulation package 6.0.14.5)


  • now can't get to debug mode: error as follows.

    C674X_0: Output: Target Connected.
    C674X_0: Output: ---------------------------------------------
    C674X_0: Output: Memory Map Cleared.
    C674X_0: Output: ---------------------------------------------
    C674X_0: Output: Memory Map Setup Complete.
    C674X_0: Output: ---------------------------------------------
    C674X_0: Output: PSC Enable Complete.
    C674X_0: Output: ---------------------------------------------
    C674X_0: Output: PLL0 init done for Core:300MHz, EMIFA:25MHz
    C674X_0: Output: DDR initialization is in progress....
    C674X_0: Output: PLL1 init done for DDR:150MHz
    C674X_0: Output: Using DDR2 settings
    C674X_0: Output: PSC1 Sync Reset Transition Timeout on Domain 0, LPSC 6
    C674X_0: Output: PSC1 Sync Reset Verify Timeout on Domain 0, LPSC 6
    C674X_0: Output: PSC1 Enable Transition Timeout on Domain 0, LPSC 6
    C674X_0: Output: PSC1 Enable Verify Timeout on Domain 0, LPSC 6
    C674X_0: Trouble Reading Memory Block at 0xb000000c on Page 0 of Length 0x4: (Error -1202 @ 0xB000000C) Device core is hung. The debugger will attempt to force the device to a ready state to recover debug control. Your application's state will be corrupt. You should have limited access to memory and registers, but you may need to reset the device to debug further. (Emulation package 6.0.14.5)
    C674X_0: Trouble Reading Memory Block at 0xb000000c on Page 0 of Length 0x4: (Error -1202 @ 0xB000000C) Device core is hung. The debugger will attempt to force the device to a ready state to recover debug control. Your application's state will be corrupt. You should have limited access to memory and registers, but you may need to reset the device to debug further. (Emulation package 6.0.14.5)
    C674X_0: Trouble Reading Memory Block at 0xb000000c on Page 0 of Length 0x4: (Error -1202 @ 0xB000000C) Device core is hung. The debugger will attempt to force the device to a ready state to recover debug control. Your application's state will be corrupt. You should have limited access to memory and registers, but you may need to reset the device to debug further. (Emulation package 6.0.14.5)
    C674X_0: Trouble Reading Memory Block at 0xb000000c on Page 0 of Length 0x4: (Error -1202 @ 0xB000000C) Device core is hung. The debugger will attempt to force the device to a ready state to recover debug control. Your application's state will be corrupt. You should have limited access to memory and registers, but you may need to reset the device to debug further. (Emulation package 6.0.14.5)
    C674X_0: Trouble Reading Memory Block at 0xb000000c on Page 0 of Length 0x4: (Error -1202 @ 0xB000000C) Device core is hung. The debugger will attempt to force the device to a ready state to recover debug control. Your application's state will be corrupt. You should have limited access to memory and registers, but you may need to reset the device to debug further. (Emulation package 6.0.14.5)
    C674X_0: GEL: Error while executing OnTargetConnect(): Target failed to read 0xB000000C
    at (*((unsigned int *) (0xB0000000+0x0C))&=~(0xC0000000)) [OMAP-L138_LCDK.gel:144]
    at DEVICE_DDRConfig(0, 150) [OMAP-L138_LCDK.gel:435]
    at Set_DDR2_150MHz() [OMAP-L138_LCDK.gel:469]
    at Core_300MHz_mDDR_150MHz() [OMAP-L138_LCDK.gel:245]
    at OnTargetConnect()
    C674X_0: 1 other operation(s) were automatically canceled as a result
    C674X_0: Trouble Reading Memory Block at 0xc305fba0 on Page 0 of Length 0x4: (Error -1202 @ 0x6E) Device core is hung. The debugger will attempt to force the device to a ready state to recover debug control. Your application's state will be corrupt. You should have limited access to memory and registers, but you may need to reset the device to debug further. (Emulation package 6.0.14.5)
    C674X_0: File Loader: Verification failed: Target failed to read 0xC305FBA0
    C674X_0: GEL: File: C:\ti\pdk_OMAPL138_1_01_00_02\packages\ti\drv\exampleProjects\MCASP_AudioExampleProject\Debug\MCASP_AudioExampleProject.out: Load failed.
    C674X_0: 1 other operation(s) were automatically canceled as a result
  • Hi Ben,


    C674X_0: Output: Target Connected.
    C674X_0: Output: ---------------------------------------------
    C674X_0: Output: Memory Map Cleared.
    C674X_0: Output: ---------------------------------------------
    C674X_0: Output: Memory Map Setup Complete.

    Still you are not connecting ARM first and DSP next.
    Your logs seems to be you are connecting DSP first and calling gel file through DSP core.
    Please read my answers carefully and check out the screen shots & compare with yours.

    Edited:

    If you check output of mine, you see that executed on ARM.

    Also I would like to suggest, set boot mode to UART boot mode and try.

    SW1 ( 0:1:0:1 -> 1:2:3:4 )

  • Hi SW1 ( 0:1:0:1 ) is set. Presumably to boot from flash.

    I only have 1 GEL file associated ( with ARM ). when I connect to target ( ARM ) manually the Arm start messages appear in console.

    Then I cannot load program into the DSP core. The option is greyed out.

    If I load the Main() code fist the DSP starts first.

    I have excluded TargetsConfig from the build as I don't see it your list. The entry point address is different in your code, are you selecting that somehow ?

    sorry, I am a beginner at CCS and OMAP. Can you be more specific about what I have to do in order to;

    A connect target ( start ARM core first )

    B Load the program code into the DSP core

    C connect target ( start DSP core )

    Why is the example McASP code not ready just to be built and executed ? It is a demo ? am I missing something completely obvious here? I read the GEL documentation but I cannot see how to design the GEL file to sequence the cores correctly for the DEMO ?

    thanks,

    BEN

  • Hi,

    Hi SW1 ( 0:1:0:1 ) is set. Presumably to boot from flash.

    I only have 1 GEL file associated ( with ARM ). when I connect to target ( ARM ) manually the Arm start messages appear in console.

    Then I cannot load program into the DSP core. The option is greyed out.

    This boot mode is for UART boot mode.

    After connecting the ARM core and got console messages on CCS console then select DSP core, again give connect target DSP (right click) , after that try to load the DSP app on DSP core.
    Don't try to load with out connecting DSP core.
  • I already tried that, I here a click from speakers and it crashes when I hit RESUME after loading code to DSP core as in screen grab.

    is there a correct way to launch code ? is there something with UART I need to set in the XDS200 ?

    Crash reports;

    [C674X_0]
    EDMA driver initialization FAIL

    Create input stream FAILED.


  • Hi,
    I have also tried to load and run the McASP code and I too got success like Shankari.
    Can you attach your .out file here ?
    What is your CCS version ?
  • Hi Titus, Yes here is my compiled .out file. I'm running CCS 6.1.1.00022

    Please change file extension to .out   web server does not allow various file extensions


    MCASP_AudioExampleProject.h

  • OK , I just loaded the pre-compiled .out files in the examples BIN folder and it worked !!!

    So maybe I have incorrect compiler settings ? I did have to install an older BIOS version to get it to compile, could it be that ?
  • Hi,

    I have tried your .out and now able to get your problem.

    Also I'm getting ~2MiB file but yours ~1MiB...

    Here I have attached my .out, try it and let me update.

    https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/791/MCASP_5F00_AudioExampleProject_5F00_out.txt.out

  • Hi Titus, your compiled file loaded fine too. OK, I think there must be something wrong with the bios version I installed?

    will go back and look more at the compile stage.

    Thanks, Ben

  • I think, its not due to BIOS version but compiler settings, so rebuild your project and attach the complete log here.
  • I have a lot of warnings at the compile stage

    37 warnings of #225-D: function declared implicitly

    perhaps there is a bug in the way the Bios works in the CCS 6.11? I thought I installed the correct version of bios to suite
    the example, bios_6_35_01_29
  • here's the build messages from console.. not sure where the build logs are written too..

    'Building file: C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp/example/omapl138-lcdk/Audio/src/audioSample_io.c'
    'Invoking: C6000 Compiler'
    "C:/ti/ccsv6/tools/compiler/c6000_7.4.14/bin/cl6x" -mv6740 --abi=coffabi -g --include_path="C:/ti/ccsv6/tools/compiler/c6000_7.4.14/include" --include_path="C:/ti/pdk_OMAPL138_1_01_00_02/packages" --include_path="c:/ti/bios_6_35_01_29/packages" --include_path="C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp/example/omapl138-lcdk/Audio/include" --include_path="C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp/include" --include_path="C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp" --define=omapl138 --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="audioSample_io.pp" --cmd_file="configPkg/compiler.opt" "C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp/example/omapl138-lcdk/Audio/src/audioSample_io.c"
    "C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp/example/omapl138-lcdk/Audio/src/audioSample_io.c", line 309: warning #225-D: function declared implicitly
    "C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp/example/omapl138-lcdk/Audio/src/audioSample_io.c", line 373: warning #225-D: function declared implicitly
    "C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp/example/omapl138-lcdk/Audio/src/audioSample_io.c", line 381: warning #225-D: function declared implicitly
    "C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp/example/omapl138-lcdk/Audio/src/audioSample_io.c", line 389: warning #225-D: function declared implicitly
    "C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp/example/omapl138-lcdk/Audio/src/audioSample_io.c", line 397: warning #225-D: function declared implicitly
    "C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp/example/omapl138-lcdk/Audio/src/audioSample_io.c", line 453: warning #225-D: function declared implicitly
    "C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp/example/omapl138-lcdk/Audio/src/audioSample_io.c", line 456: warning #225-D: function declared implicitly
    "C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp/example/omapl138-lcdk/Audio/src/audioSample_io.c", line 502: warning #225-D: function declared implicitly
    "C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp/example/omapl138-lcdk/Audio/src/audioSample_io.c", line 516: warning #225-D: function declared implicitly
    "C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp/example/omapl138-lcdk/Audio/src/audioSample_io.c", line 518: warning #225-D: function declared implicitly
    "C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp/example/omapl138-lcdk/Audio/src/audioSample_io.c", line 520: warning #225-D: function declared implicitly
    'Finished building: C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp/example/omapl138-lcdk/Audio/src/audioSample_io.c'
    ' '
    'Building file: C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp/example/omapl138-lcdk/Audio/src/audioSample_main.c'
    'Invoking: C6000 Compiler'
    "C:/ti/ccsv6/tools/compiler/c6000_7.4.14/bin/cl6x" -mv6740 --abi=coffabi -g --include_path="C:/ti/ccsv6/tools/compiler/c6000_7.4.14/include" --include_path="C:/ti/pdk_OMAPL138_1_01_00_02/packages" --include_path="c:/ti/bios_6_35_01_29/packages" --include_path="C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp/example/omapl138-lcdk/Audio/include" --include_path="C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp/include" --include_path="C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp" --define=omapl138 --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="audioSample_main.pp" --cmd_file="configPkg/compiler.opt" "C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp/example/omapl138-lcdk/Audio/src/audioSample_main.c"
    "C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp/example/omapl138-lcdk/Audio/src/audioSample_main.c", line 113: warning #225-D: function declared implicitly
    "C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp/example/omapl138-lcdk/Audio/src/audioSample_main.c", line 151: warning #225-D: function declared implicitly
    'Finished building: C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp/example/omapl138-lcdk/Audio/src/audioSample_main.c'
    ' '
    'Building file: C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp/example/omapl138-lcdk/Audio/src/audio_evmInit.c'
    'Invoking: C6000 Compiler'
    "C:/ti/ccsv6/tools/compiler/c6000_7.4.14/bin/cl6x" -mv6740 --abi=coffabi -g --include_path="C:/ti/ccsv6/tools/compiler/c6000_7.4.14/include" --include_path="C:/ti/pdk_OMAPL138_1_01_00_02/packages" --include_path="c:/ti/bios_6_35_01_29/packages" --include_path="C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp/example/omapl138-lcdk/Audio/include" --include_path="C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp/include" --include_path="C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp" --define=omapl138 --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="audio_evmInit.pp" --cmd_file="configPkg/compiler.opt" "C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp/example/omapl138-lcdk/Audio/src/audio_evmInit.c"
    'Finished building: C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp/example/omapl138-lcdk/Audio/src/audio_evmInit.c'
    ' '
    'Building file: C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp/example/omapl138-lcdk/Audio/src/codec_if.c'
    'Invoking: C6000 Compiler'
    "C:/ti/ccsv6/tools/compiler/c6000_7.4.14/bin/cl6x" -mv6740 --abi=coffabi -g --include_path="C:/ti/ccsv6/tools/compiler/c6000_7.4.14/include" --include_path="C:/ti/pdk_OMAPL138_1_01_00_02/packages" --include_path="c:/ti/bios_6_35_01_29/packages" --include_path="C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp/example/omapl138-lcdk/Audio/include" --include_path="C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp/include" --include_path="C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp" --define=omapl138 --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="codec_if.pp" --cmd_file="configPkg/compiler.opt" "C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp/example/omapl138-lcdk/Audio/src/codec_if.c"
    'Finished building: C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp/example/omapl138-lcdk/Audio/src/codec_if.c'
    ' '
    'Building file: C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp/device/c674x/device_mcasp.c'
    'Invoking: C6000 Compiler'
    "C:/ti/ccsv6/tools/compiler/c6000_7.4.14/bin/cl6x" -mv6740 --abi=coffabi -g --include_path="C:/ti/ccsv6/tools/compiler/c6000_7.4.14/include" --include_path="C:/ti/pdk_OMAPL138_1_01_00_02/packages" --include_path="c:/ti/bios_6_35_01_29/packages" --include_path="C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp/example/omapl138-lcdk/Audio/include" --include_path="C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp/include" --include_path="C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp" --define=omapl138 --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="device_mcasp.pp" --cmd_file="configPkg/compiler.opt" "C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp/device/c674x/device_mcasp.c"
    'Finished building: C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp/device/c674x/device_mcasp.c'
    ' '
    'Building file: C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp/example/omapl138-lcdk/Audio/src/i2c.c'
    'Invoking: C6000 Compiler'
    "C:/ti/ccsv6/tools/compiler/c6000_7.4.14/bin/cl6x" -mv6740 --abi=coffabi -g --include_path="C:/ti/ccsv6/tools/compiler/c6000_7.4.14/include" --include_path="C:/ti/pdk_OMAPL138_1_01_00_02/packages" --include_path="c:/ti/bios_6_35_01_29/packages" --include_path="C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp/example/omapl138-lcdk/Audio/include" --include_path="C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp/include" --include_path="C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp" --define=omapl138 --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="i2c.pp" --cmd_file="configPkg/compiler.opt" "C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp/example/omapl138-lcdk/Audio/src/i2c.c"
    'Finished building: C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp/example/omapl138-lcdk/Audio/src/i2c.c'
    ' '
    'Building file: C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp/src/mcasp_drv.c'
    'Invoking: C6000 Compiler'
    "C:/ti/ccsv6/tools/compiler/c6000_7.4.14/bin/cl6x" -mv6740 --abi=coffabi -g --include_path="C:/ti/ccsv6/tools/compiler/c6000_7.4.14/include" --include_path="C:/ti/pdk_OMAPL138_1_01_00_02/packages" --include_path="c:/ti/bios_6_35_01_29/packages" --include_path="C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp/example/omapl138-lcdk/Audio/include" --include_path="C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp/include" --include_path="C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp" --define=omapl138 --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="mcasp_drv.pp" --cmd_file="configPkg/compiler.opt" "C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp/src/mcasp_drv.c"
    'Finished building: C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp/src/mcasp_drv.c'
    ' '
    'Building file: C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp/src/mcasp_edma.c'
    'Invoking: C6000 Compiler'
    "C:/ti/ccsv6/tools/compiler/c6000_7.4.14/bin/cl6x" -mv6740 --abi=coffabi -g --include_path="C:/ti/ccsv6/tools/compiler/c6000_7.4.14/include" --include_path="C:/ti/pdk_OMAPL138_1_01_00_02/packages" --include_path="c:/ti/bios_6_35_01_29/packages" --include_path="C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp/example/omapl138-lcdk/Audio/include" --include_path="C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp/include" --include_path="C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp" --define=omapl138 --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="mcasp_edma.pp" --cmd_file="configPkg/compiler.opt" "C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp/src/mcasp_edma.c"
    'Finished building: C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp/src/mcasp_edma.c'
    ' '
    'Building file: C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp/src/mcasp_ioctl.c'
    'Invoking: C6000 Compiler'
    "C:/ti/ccsv6/tools/compiler/c6000_7.4.14/bin/cl6x" -mv6740 --abi=coffabi -g --include_path="C:/ti/ccsv6/tools/compiler/c6000_7.4.14/include" --include_path="C:/ti/pdk_OMAPL138_1_01_00_02/packages" --include_path="c:/ti/bios_6_35_01_29/packages" --include_path="C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp/example/omapl138-lcdk/Audio/include" --include_path="C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp/include" --include_path="C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp" --define=omapl138 --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="mcasp_ioctl.pp" --cmd_file="configPkg/compiler.opt" "C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp/src/mcasp_ioctl.c"
    'Finished building: C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp/src/mcasp_ioctl.c'
    ' '
    'Building file: C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp/example/omapl138-lcdk/Audio/src/mcasp_osal.c'
    'Invoking: C6000 Compiler'
    "C:/ti/ccsv6/tools/compiler/c6000_7.4.14/bin/cl6x" -mv6740 --abi=coffabi -g --include_path="C:/ti/ccsv6/tools/compiler/c6000_7.4.14/include" --include_path="C:/ti/pdk_OMAPL138_1_01_00_02/packages" --include_path="c:/ti/bios_6_35_01_29/packages" --include_path="C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp/example/omapl138-lcdk/Audio/include" --include_path="C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp/include" --include_path="C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp" --define=omapl138 --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="mcasp_osal.pp" --cmd_file="configPkg/compiler.opt" "C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp/example/omapl138-lcdk/Audio/src/mcasp_osal.c"
    "C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp/example/omapl138-lcdk/Audio/src/mcasp_osal.c", line 113: warning #173-D: invalid type conversion
    'Finished building: C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp/example/omapl138-lcdk/Audio/src/mcasp_osal.c'
    ' '
    'Building file: C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp/example/omapl138-lcdk/Audio/src/sample_cs.c'
    'Invoking: C6000 Compiler'
    "C:/ti/ccsv6/tools/compiler/c6000_7.4.14/bin/cl6x" -mv6740 --abi=coffabi -g --include_path="C:/ti/ccsv6/tools/compiler/c6000_7.4.14/include" --include_path="C:/ti/pdk_OMAPL138_1_01_00_02/packages" --include_path="c:/ti/bios_6_35_01_29/packages" --include_path="C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp/example/omapl138-lcdk/Audio/include" --include_path="C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp/include" --include_path="C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp" --define=omapl138 --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="sample_cs.pp" --cmd_file="configPkg/compiler.opt" "C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp/example/omapl138-lcdk/Audio/src/sample_cs.c"
    'Finished building: C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp/example/omapl138-lcdk/Audio/src/sample_cs.c'
    ' '
    'Building file: C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp/example/omapl138-lcdk/Audio/src/sample_init.c'
    'Invoking: C6000 Compiler'
    "C:/ti/ccsv6/tools/compiler/c6000_7.4.14/bin/cl6x" -mv6740 --abi=coffabi -g --include_path="C:/ti/ccsv6/tools/compiler/c6000_7.4.14/include" --include_path="C:/ti/pdk_OMAPL138_1_01_00_02/packages" --include_path="c:/ti/bios_6_35_01_29/packages" --include_path="C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp/example/omapl138-lcdk/Audio/include" --include_path="C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp/include" --include_path="C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp" --define=omapl138 --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="sample_init.pp" --cmd_file="configPkg/compiler.opt" "C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp/example/omapl138-lcdk/Audio/src/sample_init.c"
    'Finished building: C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp/example/omapl138-lcdk/Audio/src/sample_init.c'
    ' '
    'Building file: C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp/example/omapl138-lcdk/Audio/src/sample_omapl138_cfg.c'
    'Invoking: C6000 Compiler'
    "C:/ti/ccsv6/tools/compiler/c6000_7.4.14/bin/cl6x" -mv6740 --abi=coffabi -g --include_path="C:/ti/ccsv6/tools/compiler/c6000_7.4.14/include" --include_path="C:/ti/pdk_OMAPL138_1_01_00_02/packages" --include_path="c:/ti/bios_6_35_01_29/packages" --include_path="C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp/example/omapl138-lcdk/Audio/include" --include_path="C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp/include" --include_path="C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp" --define=omapl138 --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="sample_omapl138_cfg.pp" --cmd_file="configPkg/compiler.opt" "C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp/example/omapl138-lcdk/Audio/src/sample_omapl138_cfg.c"
    'Finished building: C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp/example/omapl138-lcdk/Audio/src/sample_omapl138_cfg.c'
    ' '
    'Building file: C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp/example/omapl138-lcdk/Audio/src/sample_omapl138_int_reg.c'
    'Invoking: C6000 Compiler'
    "C:/ti/ccsv6/tools/compiler/c6000_7.4.14/bin/cl6x" -mv6740 --abi=coffabi -g --include_path="C:/ti/ccsv6/tools/compiler/c6000_7.4.14/include" --include_path="C:/ti/pdk_OMAPL138_1_01_00_02/packages" --include_path="c:/ti/bios_6_35_01_29/packages" --include_path="C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp/example/omapl138-lcdk/Audio/include" --include_path="C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp/include" --include_path="C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp" --define=omapl138 --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="sample_omapl138_int_reg.pp" --cmd_file="configPkg/compiler.opt" "C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp/example/omapl138-lcdk/Audio/src/sample_omapl138_int_reg.c"
    'Finished building: C:/ti/pdk_OMAPL138_1_01_00_02/packages/ti/drv/mcasp/example/omapl138-lcdk/Audio/src/sample_omapl138_int_reg.c'
    ' '
    'Building target: MCASP_AudioExampleProject.out'
    'Invoking: C6000 Linker'
    "C:/ti/ccsv6/tools/compiler/c6000_7.4.14/bin/cl6x" -mv6740 --abi=coffabi -g --define=omapl138 --diag_warning=225 --diag_wrap=off --display_error_number -z -m"MCASP_AudioExampleProject.map" --stack_size=0x800 --heap_size=0x800 -i"C:/ti/ccsv6/tools/compiler/c6000_7.4.14/lib" -i"C:/ti/ccsv6/tools/compiler/c6000_7.4.14/include" --reread_libs --define=DSP_CORE=1 --warn_sections --diag_wrap=off --display_error_number --xml_link_info="MCASP_AudioExampleProject_linkInfo.xml" --rom_model -o "MCASP_AudioExampleProject.out" "./Aic31.obj" "./Audio.obj" "./aic31_if.obj" "./audioSample_io.obj" "./audioSample_main.obj" "./audio_evmInit.obj" "./codec_if.obj" "./device_mcasp.obj" "./i2c.obj" "./mcasp_drv.obj" "./mcasp_edma.obj" "./mcasp_ioctl.obj" "./mcasp_osal.obj" "./sample_cs.obj" "./sample_init.obj" "./sample_omapl138_cfg.obj" "./sample_omapl138_int_reg.obj" -l"configPkg/linker.cmd" -l"libc.a"
    <Linking>
    warning #10247-D: creating output section ".fardata" without a SECTIONS specification
    'Finished building target: MCASP_AudioExampleProject.out'
    ' '

    **** Build Finished ****
  • Hi,
    I found your problem.
    You build the project with "legacy COFF" output format but you should compile the project with "EABI (ELF)" format.

    Please change it to EABI format and rebuild the project.

    CCS properties -> CCS General -> Output format -> eabi (ELF)
  • wow , thanks !! that fixed it... out of interest, was the old compiler settings loaded by the PDK package ? or its just my mistake ?

    now I can finally get on and learn how to mix audio in DSP and maybe even control it from linux on the Arm..

    I also couldn't figure out how to stop the gel file loading in the DSP debugger settings , have to manually remove it each time.. anyway I will work that one out myself !!

    Thanks Guys !!
  • By mistake, you might be enabled.
    Thanks for your update.