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?
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();
Welcome to the TI E2E forum. I hope you will find many good answers here and in the TI.com documents and in the TI Wiki Pages. Be sure to search those for helpful information and to browse for the questions others may have asked on similar topics.
In your case, there may be some community members who have experience with MatLab. It has been used for many years and is an awesome tool with features and capabilities to transform your ideas into great DSP code.
My recommendation is to contact MathWorks for help with MatLab problems, though. Since you know that your C6713 board is working well, the problem must be something simple in the hardware connection between the PC running MatLab and the DSK, or else with the software that needs to be running on the DSK to allow it to interface to the MatLab PC connection.
We can hope for an answer or two here, but MathWorks is a good place to try.
When you do get this figured out, please post a reply here to explain what the problem was and what the solution was. Even if it is as simple and turning on the power or connecting the right cable.
Search for answers, Ask a question, click Verify when complete, Help others, Learn more.
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.