Target Support Package⢠FM5 (for Freescale⢠MPC5xx) 2.2.1
Product Description
- Introduction and Key Features
- Real-Time Deployment
- Target-Specific Device Driver Blocks
- CAN Support
- Processor-in-the-Loop Testing
- HTML Code Generation Report
Processor-in-the-Loop Testing
PIL testing features in Target Support Package FM5 help you perform code validation directly from Simulink. They also provide metrics for the generated code. The code runs on a development board using your cross-compiler tool chain. You can then use your debugger to set breakpoints, step through, or run the generated code.
In PIL mode, a plant model runs in nonreal time on the host computer in Simulink. Meanwhile, generated code running on the MPC5xx exchanges signals via RS232 serial communication with the Simulink simulation running on your Windows PC host computer. At each sample interval, Simulink performs model updates and sends output signal data via RS232 to the Freescale MPC5xx.
During PIL testing, you can include Scope blocks in the Simulink plant model. These blocks assist code validation by displaying signal data. The host computer retains metrics for incorporation into an HTML report. The signal data retrieved from the microcontroller is used for the next simulation step of the plant model.
After algorithm validation, you can export C code generated by Real-Time Workshop Embedded Coder. All nonessential code that was included to support host target serial communications for PIL testing is eliminated. You can then use the C code with your existing cross compiler and build environment.
Store