当前位置:网站首页>How to base on CCS_ V11 new tms320f28035 project

How to base on CCS_ V11 new tms320f28035 project

2022-06-12 16:25:00 Liyizheng

First of all, if we want to create a project , Need to download TI The compiler CCS, I have installed CCS_V11 edition , On how to install , Recommend this blog :https://blog.csdn.net/qq_36788698/article/details/82913956?ops_request_misc=&request_id=&biz_id=102&utm_term=CCS%E5%AE%89%E8%A3%85&utm_medium=distribute.pc_search_result.none-task-blog-2blogsobaiduweb~default-2-82913956.nonecase&spm=1018.2226.3001.4450
After installation , To create a compiler environment based on TMS320F28035 The engineering of , that , We also need to download a library , This library contains this DSP Common peripheral libraries for ,CMD Documents and other necessary materials for creating the project , Links are as follows :http://www.eeboard.com/bbs/thread-1792-1-1.html
Or we can use other ready-made libraries , If you can achieve your goal .
One 、 New project
Then we can start to build our project , open CCS_V11 Software ,Project—New CCS Project,Target choose “2803x Piccolo”, Select... From the drop-down box at the back “TMS320F28035”,Connection Select the corresponding simulator model , What I use here is “XDS100V2”,Project name It's called LED, The default project address is the address of the workbench , We also use belt for engineering template main.c The project template is OK , Then click “Finish”.
 Insert picture description here
The following is the overall picture of the project we created :
 Insert picture description here
There are... In the folder Includes、Debug The folder and TMS320F28035.ccxml、28035_RAM_lnk.cmd Wait for the documents , there Include Inside the folder is C Some header files needed by the locale , For example, common math.h、string.h etc. ,Debug Folder after the project is successfully compiled and linked , The generated intermediate files and executable files will be placed in Debug In the folder ,TMS320F28035.ccxml Is the target link file , It's specified here DSP Model and selected emulator , If the project does not have this file ,CCS You can't DSP Create connection , You can't download the debugger , We can also pass New->Target Configuration File Create a target link file for the project ;28035_RAM_lnk.cmd The file defines the storage space and allocation of user programs and data , Usually no changes are required , The document makes full use of DSP Of RAM Space , Of course , If the actual project storage situation and the actual CMD When the definitions in the file are different , We need to customize one CMD file , For distribution 28035 Register space of
 Insert picture description here
Next, you need to add some necessary files to the project , Here is the 28034 In the project folder of DSP2803x_common The folder and DSP2803x_headers Copy the folder to our current project address , After copying , The folder will be automatically scanned in the main interface of the project , Yes DSP2803x_headers The contents of the folder do not need to be changed
 Insert picture description here
 Insert picture description here

cmd In the folder is a DSP2803x_Headers_nonBIOS.h file ,Include This one is in the folder DSP Some header files of peripherals in ,source Medium is DSP2803x_GlobalVariableDefs.h The header file , about DSP2803x_common Contents in folder , We need to make some changes , Because from 28034 Copied from the folder of , therefore , For the folder inside the folder cmd The content in , We need to delete 28034_RAM_lnk.cmd file , Because when we created the project, there was already a 28034_RAM_lnk.cmd The file , Two files together can cause the problem of duplicate definitions , And then put F28034.cmd Replace file with F28035.cmd file , This file can be downloaded from the link above :http://www.eeboard.com/bbs/thread-1792-1-1.html Find , After replacement , The establishment of the project has been basically completed , then , Because we have added so many files , You need to specify a path for them ,CCS To find them , Right click the project name ->Properties, choice C2000 Compiler Below Include Options, Add our DSP2803x_common and DSP2803x_headers Under the folder Include The path of the folder comes in
 Insert picture description here
In this way, the compilation can pass

原网站

版权声明
本文为[Liyizheng]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/163/202206121620583486.html