当前位置:网站首页>Creating new projects and adding your own programs
Creating new projects and adding your own programs
2022-07-28 19:09:00 【Learn something】
Tasking New project
This is the document I prepared ( Resources can be downloaded from the official website of Infineon automotive electronics ecosystem )
Special reminder :
1. Try to start the folder name with a letter , Do not show Chinese path
2.Demos The folder and TC26B You can only find the folder you need by turning down several layers
The first two folders are the official underlying driver libraries and routines , In addition, it also needs to be obtained from other established projects .lsl file . The rest is installation DAS and Memtool The required , among , Installed Memtool Will be installed automatically DAS. Want to debug and download the program to the core board ,DAS It's a must .
Memtool install
Double click the corresponding .exe file , Select accept and next that will do , During the installation... Will pop up DAS Dialog box , Choose to accept or next. After installation, enter tasking Of IDE Environmental Science , New project 

New project
This is what I opened IDE Environmental Science ( After installation, the desktop does not IDE Icon words , On computer “ Start ” Mid search IDE Key words can be used ), At first, I will choose the workspace , I was in E Disk creates a new folder as a workspace , Projects created and imported in the future will be in this folder by default . Then new Tricore engineering .~
Name the project SmartCar15, choice Empty Project
Select the chip model as TC26x( Currently on TC264 Most information ,TC26B The library of seems to be applicable to TC26x)
At this time, the created interface , There is not yet Add the underlying driver library and your own program
Go to your workspace directory , You can see the newly created SmartCar15 Project folder
Click to enter
From the first picture TC26B Found under folder BaseSw Folder , Copy it to this SmartCar15 Folder 
In the project folder SmartCar15 Create a new folder for storing user programs , I still call it SmartCar15( You can choose any name , Don't use Chinese )
From the first picture Demo Under any folder in AppSw Folder , Copy it to the project directory we just created SmartCar15 Folder . In addition, you need to Demo Put it in the folder Source The folder is also copied to this SmartCar15 Folder 

Then you need to find this under the new project directory created by others .lsl file , Copy it to our project directory ( Notice the outer one SmartCar15 Folder )
go back to IDE Environmental Science , Right click on the project name , Click on refresh
give the result as follows
Then we need to finish setting Three settings in :
add to .lsl Path to file
Add new folder (BaseSw and SmartCar15) The path of
Remove auto add sfr Checked by
Click the button in the blue box on the figure , Pop-up dialog box , choice setting, Then look down , Click on Sript File, Then click... On the right Browe, Pop-up dialog box , choice .lsl File can
Then go up , Click on Preprocessing Options , Remove the check in the blue box on the figure
Then click on Include Paths, Select in the pop-up dialog box workspace, The dialog box on the right side of the figure will pop up , At this time, we need to put BaseSW All files under the folder are expanded to the end , For storage only AppSw and Source Of SmartCar15 The folder should also be expanded . Then expand all these folders , Including parent-child directories , Select all ( With the help of shefit Shortcut key ), Finally, click OK
Pay special attention to the one in this figure SmartCar15 The folder should also be expanded and selected
After the above three steps are completed , Click on OK, Then compile build once , If yes , It means success .
Add your own program
If you want to build a completely blank project , You need to delete the following , Then write your own program, that is .c and .h file .
Delete the following , Establish a completely blank project 

in addition , hold Demo_ild Folder ( In the directory on the left of the above figure ) Under the .h and .c All files are deleted , I'll build my own here later .c and .h file . If Main There is... In the document Cpu2 file , hold Cpu2 Delete , because TC264 It's dual core .
Add your own .c and .h file , stay Demo_ild Folder , Right click , Separately build .c and .h file , And give the file a name , Then you can start writing your own program
stay TC26B Find the official instruction document under the folder , Found after opening PORTS modular , Click on How to use Options , An introduction to its driver function appears , We can use one of them IO Initialization function and level reversal function realize the flicker control of small lamp ( You also need a delay function , It's not added here , You need to check the manual and add )
Written programs .h Document and .c file 

because .c Other documents are used in the document , Therefore, you need to add #include The header file
Right click to check which header files are used , then include Just enter 


In the main program Cpu0 Call initialization function and level inversion function , But without the delay function , You can check the official underlying library to introduce the document writing delay function . Then use the burning tool to connect the computer and the core board , preservation , And compile it , Again debug Then you can. .
The above steps are my own when building a new project , Because I don't have a development board , So there is no way to download the program , Thank you very much .
边栏推荐
- 4 年后,Debian 终夺回“debian.community”域名!
- What if the content of software testing is too simple?
- Open source database innovation in the era of digital economy | the 2022 open atom global open source summit database sub forum was successfully held
- 11 年膨胀 575 倍,微信为何从“小而美”变成了“大而肥”?
- 广告推荐CTR点击率预测实践项目!
- If you want to learn software testing, where can you learn zero foundation?
- How new people get started learning software testing
- Is it easy to learn the zero foundation of software testing?
- CTR click through rate prediction practice project of advertising recommendation!
- If you want to change to it, does it really matter if you don't have a major?
猜你喜欢

视频融合云服务EasyCVR平台白名单功能如何使用?

【物理应用】水下浮动风力涡轮机的尾流诱导动态模拟风场附matlab代码

112. Use the self-developed proxy server to solve the cross domain access error encountered when uploading files by SAP ui5 fileuploader

The switching language of unity causes an error: system FormatException:String was not recognized as a valid DateTime.

What if svchost.exe of win11 system has been downloading?
![[GXYCTF2019]StrongestMind](/img/f4/61932548e0c7dd60d790d31fb5b96b.png)
[GXYCTF2019]StrongestMind

配置教程:新版本EasyCVR(v2.5.0)组织结构如何级联到上级平台?

2、 Uni app login function page Jump

N32替换STM32,这些细节别忽略!

Chinese enterprise service industry market in 2022
随机推荐
Implementation of grayscale publishing with haproxy
112. 使用自开发的代理服务器解决 SAP UI5 FileUploader 上传文件时遇到的跨域访问错误
Three minutes to understand, come to new media
关于ASM冗余问题
Structure and working principle of thyristor
Is it easy to learn the zero foundation of software testing?
When the new version of easycvr is linked at the same level, the subordinate platform passes up the cause analysis of the incomplete display of the hierarchical directory
Use the self-developed proxy server to solve the cross domain access errors encountered when uploading files by SAP ui5 fileuploader trial version
Win11电脑摄像头打开看不见,显示黑屏如何解决?
Is software testing really as good as online?
What is the future of software testing? How to learn?
Four years later, Debian finally recaptured the "debian.community" domain name!
Unity 之 切换语言导致报错:System.FormatException:String was not recognized as a valid DateTime.
SQL custom automatic calculation
【雷达】基于核聚类实现雷达信号在线分选附matlab代码
4、 Interface requests data to update input information interactively
Remember a uniapp experience
QT with line encoding output cout
AI has changed thousands of industries. How can developers devote themselves to the new "sound" state of AI voice
Introduction and advanced MySQL (III)