Hi all,
I have to use the TMS320C6713 and the daughtercard (educational DSP) for my Bachelor Thesis. Now my problem is to load the
CCS .out file from matlab over the daughtercard. I initialize the EMIF but it doesn't works. If I load and debug
the program with CCS it will run. What's the problem with the matlab?
Matlab Code:
NET.addAssembly('D:\xxxxxxxxx.dll');
import C6XCONTROL_NetWrapper.*;
control = C6XCONTROL();
control.StartUp();
control.setDSP(WRAPPER_DSP_VERSION.C6713_COM);
control.setComPort(WRAPPER_ComPortNumbers.COM3, WRAPPER_ComSpeeds.COM_USB2);
control.ResetDsk();
control.ResetAndOpenHPI_Only();
CACHE = uint32(hex2dec('01845004'));
EMIF_GCTL = uint32(hex2dec('01800000'));
EMIF_CE0 = uint32(hex2dec('01800008'));
EMIF_CE1 = uint32(hex2dec('01800004'));
EMIF_CE2 = uint32(hex2dec('01800010'));
EMIF_CE3 = uint32(hex2dec('01800014'));
EMIF_SDRAMCTL = uint32(hex2dec('01800018'));
EMIF_SDRAMTIM = uint32(hex2dec('0180001C'));
EMIF_SDRAMEXT = uint32(hex2dec('01800020'));
EMIF_CCFG = uint32(hex2dec('01840000'));
% FLUSH_CACHE_VAL = uint32(hex2dec('1 '));
EMIF_GCTL_VAL = uint32(hex2dec('00000068')) ;
EMIF_CE0_VAL = uint32(hex2dec('ffffbf33')) ;
EMIF_CE1_VAL = uint32(hex2dec('02208802')) ;
EMIF_CE2_VAL = uint32(hex2dec('22a28a22')) ;
EMIF_CE3_VAL = uint32(hex2dec('22a28a22')) ;
EMIF_SDRAMCTL_VAL = uint32(hex2dec('56115000')) ;
EMIF_SDRAMTIM_VAL = uint32(hex2dec('00000578')) ;
EMIF_SDRAMEXT_VAL = uint32(hex2dec('000a8529')) ;
control.Write(EMIF_GCTL, 1, [EMIF_GCTL_VAL 0]);
control.Write(EMIF_CE0, 1, [EMIF_CE0_VAL 0]);
control.Write(EMIF_CE1, 1, [EMIF_CE1_VAL 0]);
control.Write(EMIF_CE2, 1, [EMIF_GCTL_VAL 0]);
control.Write(EMIF_CE3, 1, [EMIF_GCTL_VAL 0]);
control.Write(EMIF_SDRAMCTL, 1, [EMIF_SDRAMCTL_VAL 0]);
control.Write(EMIF_SDRAMTIM, 1, [EMIF_SDRAMTIM_VAL 0]);
control.Write(EMIF_SDRAMEXT, 1, [EMIF_SDRAMEXT_VAL 0]);
load_ans=control.LoadCOFF('FFT_Filter.out')
control.Run();