PIL Execution with ARM Cortex-A by Using the MATLAB Coder App - MATLAB & Simulink (original) (raw)
Main Content
You can use processor-in-the-loop (PIL) executions to verify generated code that you deploy to target hardware by using a MATLAB® Coder™ procedure. You can profile algorithm performance and speed for your generated code. To verify generated code with the MATLAB Coder app, you must have an Embedded Coder® license.
This PIL execution is available with these hardware support packages. To use the PIL execution, install one of these support packages.
- Embedded Coder Support Package for BeagleBone® Black Hardware
- Embedded Coder Support Package for ARM® Cortex®-A Processors
You can set up PIL execution with the MATLAB Coder app.
To configure the build type and hardware board:
- On the Generate Code page, in the Generate dialog box:
- Set the Build type to
Static Library
. - Clear the Generate code only check box.
- Set the Hardware Board to
BeagleBone Black
orARM Cortex-A9 (QEMU)
.
- Set the Build type to
- If necessary, modify the settings for your board. To modify the settings, click More Settings, and then clickHardware.
- To generate the library, click Generate.
- Set up your PIL execution. Click Verify Code to open theVerify Code dialog box.
Because the hardware board is notMATLAB Host Computer
, theVerify Code dialog box is configured for PIL execution.
In the Verify Code dialog box:- Enter the name of the test file to use for PIL execution.
- Select Generated code.
- To start the PIL execution, click Run Generated Code.
- To stop the PIL execution, click Stop.
For another example of PIL verification, see the "Processor-in-the-Loop Verification of MATLAB Functions" page in the documentation of the Embedded Coder Support Package for ARM Cortex-A Processors. Install the support package to view the documentation.