当前位置:网站首页>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 .
边栏推荐
- 112. Use the self-developed proxy server to solve the cross domain access error encountered when uploading files by SAP ui5 fileuploader
- 数字经济时代的开源数据库创新 | 2022开放原子全球开源峰会数据库分论坛圆满召开
- Is the software testing training institution reliable?
- SQL custom automatic calculation
- @The difference between Autowired and @resource
- Getting started with gateway
- Swiftui swift forward geocoding and reverse geocoding (tutorial with source code)
- If you want to learn software testing, where can you learn zero foundation?
- AI 改变千行万业,开发者如何投身 AI 语音新“声”态
- Kali doesn't have an eth0 network card? What if you don't connect to the Internet
猜你喜欢

“讳疾忌医”的开源走不远

【滤波跟踪】基于EKF、时差和频差定位实现目标跟踪附matlab代码

The login interface of modern personal blog system modstartblog v5.4.0 has been revised and the contact information has been added

Cause analysis and solution of video jam after easycvr is connected to the device

零知识证明:具有DDH假设的 ZKP

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

4 年后,Debian 终夺回“debian.community”域名!

The wechat installation package has expanded 575 times in 11 years, and the up owner: "98% of the documents are garbage"; Apple App store was exposed to a large number of pornographic apps; Four techn

How to adjust the brightness of win11? Four methods of adjusting screen brightness in win11

SQL custom automatic calculation
随机推荐
【滤波跟踪】基于EKF、时差和频差定位实现目标跟踪附matlab代码
[machine learning] support vector machine classification
Getting started with gateway
面试官:ThreadLocal使用场景有哪些?内存泄露问题如何避免?
Implementation of grayscale publishing with haproxy
我的创作纪念日 -- 2022年7月25日
【实战】用OpenCV实现页面扭曲矫正
2022 Hangdian multi school field 2 1011 DOS card (line segment tree)
Chinese enterprise service industry market in 2022
Win11电脑摄像头打开看不见,显示黑屏如何解决?
Is two months of software testing training reliable?
EasyCVR新版本级联时,下级平台向上传递层级目录显示不全的原因分析
真正的 HTAP 对用户和开发者意味着什么?
UE4.25 Slate源码解读
Lookup - lookup of sequential table and ordered table
Xiaobai must see the development route of software testing
Can I get employed after two months of software testing training?
[R language - basic drawing]
Self cultivation of Electronic Engineers - when a project is developed
【物理应用】大气吸收损耗附matlab代码