Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

         

  • Uncheck 'copy projects into workspace', browse to the current working directory and make sure the perfapm, perfapm-server, and perfapm-server_system are selected. Click 'Finish'.
  • Double click on 'perfapm-server_system.sprj' and close the dialog box for platform.

        


  • from the top menu tab choose 'File' →  'New platform', enter Project name as 'hw_platform_0' and select 'Next'.

         

  • Choose 'Create from hardware specification (XSA)' and browse to the xsa file in the 'hwfile' directory of 'ws_heartbeat perfapm-server workspace',
  • Select operating system as 'standalone' and processor as 'psu_cortexr5_1' and click Finish.

             

  • In the System Project Settings tab, Add the new custom platform generated from xsa. Click Yes on the dialog box, when prompted to change the platform.

       

  • double click on 'perfapm-ctl.prj' in the Elplorer tab, and click 'Navigate to BSP settings'

         

  • modify BSP settings for Cortexr5_1 processor

   

  • under overview panel enable libraries 'libmetal' and 'openamp'.

     

  • Right-click on the perfapm-server system  and select 'Build Project'.


                                                    

  • Copy the generated perfapm-server executable to the dm4 SD card directory.

    Code Block
    themeMidnight
    % mkdir -p $TRD_HOME/sd_card/dm4
    % cp perfapm-server/Debug/perfapm-server.elf $TRD_HOME/sd_card/dm4/


Perfapm-client-test Application (optional step)


The perfapm-client-test application receives performance counter values from RPU-1 and prints them to UART-0. It is by default built as part of the meta-user layer of the PetaLinux BSP. The corresponding yocto recipe and source files are located at $TRD_HOME/petalinux/bsp/project-spec/meta-user/recipes-apps/perfapm-client and the generated binary is located at /usr/bin/perfapm-client-test on the target rootfs.

...