Skip to content

application program

nnaufel edited this page May 27, 2022 · 2 revisions

Building A Cloned Project using the Virtual Machine

1 - Open a shell in the VM player (Ctrl+Alt+T)

2 - Launch an Embedded Command Shell

    $ ~/intelFPGA_lite/18.1/embedded/embedded_command_shell.sh

You may receive a warning that SoC EDS may not function correctly without a DS-5 install. This warning is ok and can be ignored.

3 - Clone the repository

  • navigate to the directory where the project will be stored

      $ git clone  https://github.com/CriticalLink/ArrowCMR.git 
    

Building the demo application

  • Acquire the correct ARM® compiler. This step needs to be done only once.

    $ wget https://developer.arm.com/-/media/Files/downloads/gnu-rm/10-2020q4/gcc-arm-none-eabi-10-2020-q4-major-x86_64-linux.tar.bz2 
    $ mkdir ~/opt 
    $ sudo tar -C ~/opt -xf gcc-arm-none-eabi-10-2020-q4-major-x86_64-linux.tar.bz2
    

5 - Build the application

    $ cd ~/najiCMR/sw/ 
    $ source environment_setup.sh
      - Enter /home/soceds/opt/gcc-arm-none-eabi-10-2020-q4-major when asked for gcc toolchain path

    $ make

This will build cmr.bin, which you can copy to the SD card to load onto the dev board.

6 - Execute the build

Note: Opening a new shell is very important.

  • Open a new shell in the VM player (Ctrl+Alt+T)

  • Launch an Embedded Command Shell

      $ ~/intelFPGA_lite/18.1/embedded/embedded_command_shell.sh
    
     cd ~/najiCMR/quartus_project 
     make
    

This will build the preloader required to boot.

| Name | Description |
|:----|:----|
|output_files/system_top.rbf|FPGA bitstream file|
| software/spl_bsp/preloader-mkpimage.bin | Preloader executable |

   
***  

**[Next - Update SD Card](https://github.com/ArrowElectronics/Reconfigurable-Industrial-Robotics-Platform/wiki/Reconfigurable-Motion-and-Robotics-Demo-Build-Update-the-SD-Card)**   

**[Return to Build the Example Design](https://github.com/ArrowElectronics/Reconfigurable-Industrial-Robotics-Platform/wiki/Reconfigurable-Motion-and-Robotics-Demo-Platform-Build-the-Example-Design)**  
**[Return to Reconfigurable Industrial Robotics Platform User Guide](https://github.com/ArrowElectronics/Reconfigurable-Industrial-Robotics-Platform/wiki/Servo-Drive-Demo-Platform-User-Guide)**

Clone this wiki locally