Create a new Vitis workspace.
% cd $TRD_HOME/workspaces/ws_perfapm-ctl % xsdk -workspace . & |
perfapm
, perfapm-ctl
and
projects are selected. Click Finish.
perfapm-ctl
system and select 'Build Project'.
perfapm-ctl
executable into the PetaLinux BSP.% cp perfapm-ctl/Debug/perfapm-ctl.elf $TRD_HOME/petalinux/bsp/images/linux |
perfapm-ctl
application using the PetaLinux build tool. This step assumes you have run through the PetaLinux build in DM1 previouslyCreate a boot image
% cd $TRD_HOME/petalinux/bsp/images/linux % petalinux-package --boot --bif=../../project-spec/boot/dm3.bif --force |
Copy the generated boot image to the dm3 SD card directory
% mkdir -p $TRD_HOME/sd_card/dm3 % cp BOOT.BIN $TRD_HOME/sd_card/dm3 |
$TRD_HOME/sd_card/dm3
SD card directory to a FAT formatted SD card.perfapm-ctl
application can be viewed on UART-1.When prompted, user need to press 'Y' to turn on a dummy traffic generator that reads from OCM
Turn on traffic generator? Enter 'Y' or 'N': |
View the application prints on UART-1 as shown in the pictures:
|----------------------------------------------------------------------| | Performance Monitor APP | |----------------------------------------------------------------------| |Slot |Write Byte Cnt |Read Byte Cnt |Total RW Byte Cnt | |----------------------------------------------------------------------| |DDR Slot1 | 0 | 0 | 0 | |DDR Slot2 | 0 | 0 | 0 | |DDR Slot3 | 0 | 0 | 0 | |DDR Slot4 | 0 | 0 | 0 | |DDR Slot5 | 0 | 0 | 0 | |OCM APM | 0 | 20480 | 0 | |LPD_FPD | 0 | 320 | 0 | |----------------------------------------------------------------------| |