Step 1: Set Up the Example to Debug the Import Function - 2021.1 English

Vitis Model Composer Tutorial: (UG1498)

Document ID
UG1498
Release Date
2021-07-16
Version
2021.1 English
  1. Type the following at the MATLAB command prompt:
    >> xmcOpenExample
  2. Press Enter to open the Model Composer examples dialog box.

  3. In the Model Composer examples dialog box select optical flow and click Open example. This opens the example design.

  4. Double-click on the block labeled Lucas-Kanade and observe the calculating_roots block.

    Note: This block has been generated using the xmcImportFunction feature. Its function declaration can be seen by double-clicking on the block.


  5. To view the function definition of calculating_roots, navigate to the current folder in the MATLAB window and double-click on calculating_roots.h.

The setup is now ready for you to debug your C/C++ code. In the next step, you will see how to debug the code using GDB tool debugger.