-
Notifications
You must be signed in to change notification settings - Fork 0
Servo Drive Demo Build
This section describes how to download the HDL and Software design from the github repository. The designs can be built by using make in a shell. The following steps describe how to do this which conclude by calling a makefile with the make command.
This will build the Platform Designer™ (formerly called QSys™) and Quartus® projects, and then generate and compile them. This approach guarantees quality of results for anyone initially working with these designs.
Create a directory where all the project repositories can be cloned from github.
-
Open a shell in the VM player (Ctrl+Alt+T)
$ cd ~ $ mkdir servo_motor
$ ~/intelFPGA_lite/18.1/nembedded/embedded_command_shell.sh
-
navigate to the directory where the project will be stored
$ cd servo_motor $ git clone https://github.com/CriticalLink/ArrowCMR.git $ cd ArrowCMR $ git checkout moons_motor
$ cd hw/fpga/cmr_motor_demo
$ make rbf
This will take a few minutes to complete.
$ make uboot ubootenv
This will also take a few minutes to complete.
This will actually build 4 components that are required to boot.
Name | Description |
---|---|
output_files/dev_5cs.rbf | FPGA bitstream file |
software/preloader/preloader-mkpimage.bin | Preloader executable |
software/preloader/uboot-socfpga/u-boot.img | u-boot executable |
software/preloader/ubootenv.bin | u-boot environment |
As the preloader is responsible for configuring the FPGA IO pins, you will need to update this image if you change any IO assignments. You will only need to rebuild uboot if you are adding functionality to it. The same is true for the ubootenv target, the default setup will load cmr.bin from the FAT filesystem. If you change the executable name or want to change other boot settings, this target will update the binary uboot environment file, which you can reload onto the sd card.
The u-boot bootloader is used to load and execute user applications on the MitySoM 5CSX platform. As the ARM CPU is integrated with the FPGA on the CycloneV, building the preloader and u-boot is done as part of the FPGA development process.
Building u-Boot and the preloader (note the correct MitySoM variant is 5CSX-H5-4YA) is detailed in the following wiki:
https://support.criticallink.com/redmine/projects/mityarm-5cs/wiki/Building_u-Boot_and_Preloader
$ cd ~/servo_motor/ArrowCMR/sw/ARM/bare-metal/
$ make
This will build cmr.bin, which you can copy to the SD card to load onto the dev board.
Return to Build the Example Design
Return to Reconfigurable Industrial Robotics Platform User Guide