Main Content

PIL Execution with ARM Cortex-A by Using the MATLAB Coder App

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:

  1. 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 or ARM Cortex-A9 (QEMU).

  2. If necessary, modify the settings for your board. To modify the settings, click More Settings, and then click Hardware.

  3. To generate the library, click Generate.

  4. Set up your PIL execution. Click Verify Code to open the Verify Code dialog box.

    Because the hardware board is not MATLAB Host Computer, the Verify 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.

  5. To start the PIL execution, click Run Generated Code.

  6. 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.