1495 views|0 replies

2015

Posts

0

Resources
The OP
 

Generate DSP code using MATLAB [Copy link]

MATLAB provides several examples, such as:

F281x based board: c281x_adcpwmasynctestc281x_adcpwmasynctest

F280x/F2823x/F2833x based board: c280x_2833x_adcpwmasynctest

Piccolo F2802x/F2803x/F2806x based board: c280xx_adcpwmasynctes

If you are not familiar with the use of DSP generated code, you can use it directly or modify it on this basis. This article uses the F281x based board: c281x_adcpwmasynctestc281x_adcpwmasynctest.

This example is almost entirely applicable to Code Composer Studio 3.3 ( CCSv3.3) , and you can directly press Ctrl+B to generate code. However, for Code Composer Studio 4 or 5 (CCSv4/5) , appropriate modifications need to be made.

The chip configuration module ( Target Preferences ) in the example has been removed in the later version of MATLAB . Instead, the method of selecting the chip model has been added to the Simulation > Model Configuration Parameters > Code Generation > Coder Target > Target Hardware Resources tab.

Press Ctrl+E to open the Model Configuration Parameters window, select Coder Target > Target Hardware Resources tab, and select the parameters appropriate for the chip.

However, it is not enough to just select the Target Hardware Resources parameter. MATLAB will report an error during the generation process and the code generation will fail. That means you also need to configure the MakeFile. Enter the xmakefilesetup command in the MATLAB command window. After a short wait, the XMake User Configuration window will appear.

After configuring the XMake User Configuration window accordingly, click the Build button ( Ctrl+B ) this time to generate code in the current folder of MATLAB . The file name is the model plus " _ticcs ". For example, the file name generated in this example is c281x_adcpwmasynctest_ticcs .

Please note that Code Composer Studio 4 or 5 (CCSv4/5) cannot generate Project files, only the MakeFile option.

This post is from Microcontroller MCU
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews

Room 1530, Zhongguancun MOOC Times Building, Block B, 18 Zhongguancun Street, Haidian District, Beijing 100190, China Tel:(010)82350740 Postcode:100190

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list