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.

基于RTDX的MATLAB与DSP数据交换

Other Parts Discussed in Thread: AM1808, TMS320C6748, OMAP-L138

附件.rar

         在搭建MTLAB与CCS联合开发环境时,按照这个帖子e2e.ti.com/.../411310,xmakefilesetup也设置了,但发现NDK、IMGLIB安装完成后MATLAB识别不了版本号,BSL我只有其中部分文件,MATLAB也识别不了。以上三个库必须安装吗?以下是调用checkEnvSetup('ccsv5','c6748','check')命令MATLAB的反馈。

1. CCSv5 (Code Composer Studio)

   Your version   : 5.5.0

   Required version: 5.0 or later

   Required for   : Code Generation

   TI_DIR="D:\program\CCS\ccsv5"

 

2. C6000 CSL (TMS320C6000 Chip Support Library)

   Your version   : 2.31.00.15

   Required version: 2.31.00.10 or later

   Required for   : Code generation

   CSL_C6000_INSTALLDIR="D:\program\driver\c6csl"

   CSL_C6000_INSTALLDIR="D:\program\driver\c6csl"

 

3. XDC Tools (eXpress DSP Components)

   Your version   : 3.20.08.88

   Required version: 3.16.02.32 or later

   Required for   : Code generation

 

4. CGT (Code Generation Tools)

Your version   : 7.3.10

   Required version: 6.1.18 to 7.3.1

   Required for   : Code generation

   C6000_CGT_INSTALLDIR="D:\program\driver\CGT 7.3.10"

   C6000_CGT_INSTALLDIR="D:\program\driver\CGT 7.3.10"

 

5. DSP/BIOS (Real Time Operating System)

   Your version   : 5.41.11.38

   Required version: 5.33.05 to 5.41.11.38

   Required for   : Code generation

   CCSV5_DSPBIOS_INSTALLDIR="D:\program\driver\dspbios5_41_11_38\bios_5_41_11_38"

   CCSV5_DSPBIOS_INSTALLDIR="D:\program\driver\dspbios5_41_11_38\bios_5_41_11_38"

 

6. Texas Instruments IMGLIB (C64x+ Image Library)

   Your version   :

   Required version: 2.0.1 or later

   Required for   : CRL block replacement

   C64XP_IMGLIB_INSTALLDIR=""

 

7. NDK (NDK 2.00)

   Your version   :

   Required version: 2.00.00 or later

   Required for   : External mode and Ethernet blocks

   NDK_EVMC6748_INSTALLDIR=""

 

8. C674x DSP/BIOS PSP Drivers (BIOS PSP Release version 01.30.00.05)

   Your version   : 1.30.00.05

   Required version: 1.30.00.05

   Required for   : Code generation / device drivers

   PSP_EVMC6748_INSTALLDIR=""

 

9. EDMA3 Low Level Driver (EDMA3 LLD 01.10)

   Your version   : 01.11.03

   Required version: 1.10.00 or later

   Required for   : Device drivers

   EDMA3LLD_BIOS5_INSTALLDIR="D:\program\driver\EDMA3"

 

10. OMAP-L138/C6747EVM BSL (OMAP-L138 / TMS320C6748 / AM1808 SOM-M1 Gel, CCS Setup, & BSL Files (CCS v4.2.4))

   Your version   :

   Required version: 2.0.0 or later

   Required for   : Device drivers

   BSL_EVMC6748_INSTALLDIR="

 

         MATLAB中调用cc=ticcs后提示:

Error using Link.ccssetup/ConnectCannot start CCS application (COM error ID:0x80040154). Verify that your CCS software is installed and configured properly.

Error in ticcs>Connect2App_CheckIdeVersion

(line 244)

       hccs.Connect(1);

Error in ticcs (line 132)

hccs = Connect2App_CheckIdeVersion;

         请问是什么地方配置有问题吗?附件中(图3)

         我还尝试了MATLAB2013a官方提供的2812_RTDXtest例程,也出现了同样的错误:附件中(图1、图2)

  • I'm sorry but I did not understand your question. Could you please restate your question in English?
  • Hi!
    i have successful to complete program to transfer data from MATLAB to DSP, but i have an error. when transfer data exceed 50, it will be failed.(DSP: TMS320C6748, MATLAB version:2008a)
    Here is my program for DSP:
    #include <c6x.h> /* IER,ISR,CSR registers */
    #include "ConfigurationRTDXcfg.h"
    #include "rtdx.h" /* defines RTDX target API calls */
    #include "stdio.h" /* C_I/O
    #define IER_NMIE 0x00000002
    #define CSR_GIE 0x00000001
    void main()
    {
    double data[2];//if data is exceed 50, it will be failed!
    double back_data[3]={1.12,2.56,4.31};
    int status,jj;
    // setup_PINMUX();
    IER |= 0x00000001 | IER_NMIE;
    CSR |= CSR_GIE;
    // receive data
    /* enable the input channel */
    RTDX_enableInput( &ichan );
    RTDX_enableOutput(&ochan);
    delay(10);
    // data = 0;
    status = 0;
    status = RTDX_readNB( &ichan, &data, sizeof(data) );
    status = 1;
    while ( status )
    {
    status = RTDX_channelBusy( &ichan );
    #if RTDX_POLLING_IMPLEMENTATION
    RTDX_Poll();
    #endif
    }
    //transfer data
    status=RTDX_write(&ochan,&back_data,sizeof(back_data));
    while(RTDX_writing != NULL)
    {
    #if RTDX_POLLING_IMPLEMENTATION

    RTDX_Poll();

    #endif
    }
    RTDX_disableInput(&ichan);
    RTDX_disableOutput(&ochan);
    while(1);
    }

    Here is my program for MATLAB:
    clc;
    close all;
    clear all;
    cc=ticcs;
    rtdx_ichan=cc.rtdx;
    rtdx_ichan.enable;
    cc.rtdx.configure(1024,2);
    cc.rtdx.open('ichan','w');
    cc.rtdx.open('ochan','r');
    y=[21.15 42.13];
    cc.rtdx.writemsg('ichan',y);
    while(1)
    try
    tdata=cc.rtdx.readmsg('ochan','double');
    data=tdata;
    disp(data);
    catch
    errmsg=lasterr;
    disp('NO MORE DATA MSG');
    break;
    end
    end
    if(isrunning(cc))
    cc.halt;
    end
    cc.rtdx.disable;
    cc.rtdx.close('ichan');
    cc.rtdx.close('ochan');

  • Hello,
    Sorry for the long delay. I don't have much experience with Matlab integration with CCS. I think Mathworks is the best people to ask for your question. I would try contacting their support and see if they have any suggestions.

    ki