1 - 初始配置
- powergui
- Discrete
- Sample time设置为sampleTime
- Model Settings
- Solver
- Fixed-step
- discrete (no continuous states)
- Fixed-step-size: sampleTime
- Hardware implementation - Target hardware resources
- Build options
- Build action: Build
- Clocking
- 检查Desired CPU Clock in MHz和OSCLK frequency in MHz
- 配置LSPCLK和HSPCLK
- Build options
- Code Generation
- Report
- Create code generation report
- Open report automatically
- Generate model Web view
- Code Style - Code indentation
- Indent style: Allman
- Indent size: 4
- Report
- Solver
2 - 编译运行
编译
-
Code Generation - Build process
- Generate code only
-
HARDWARE -> Build
优化
-
Code Generation - Build process
- Generate code only
-
APPS -> Embedded Coder -> C CODE -> Quick Start
3 - CCS处理
时钟
首先关闭不必要的外设时钟,在ert_main.c中找到init_board()函数,然后进入InitPeripheralClocks()函数关闭不必要的外设时钟。
1046

被折叠的 条评论
为什么被折叠?



