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 <
- Report
- Solver