Vision Processing with the Canny Edge Detection Reference Design

ID 683433
Date 2/14/2015
Public
Document Table of Contents

1.3.3. Loading the Canny Edge Reference Design FPGA Image with the SD Card Image

  1. Write the reference design SD card image to a microSD card:
    #sudo dd if=Canny_sdcard_image of=/dev/sdx bs=1M
    #sudo sync

    After a successful Linux boot, the FPGA image automatically loads.

  2. Set the DIP switches to select the output from one of the Canny blocks. If there is no video output, disconnect the DVI source cable from the BITEC card, reconnect the DVI source cable wire.
    Table 1.  DIP Switch Settings
    FPGA DIP Switch configuration (3,2,1,0) Monitor Output
    3 2 1 0
    OFF OFF OFF ON Colour
    OFF OFF OFF OFF Grayscale
    OFF OFF ON OFF Sobel
    OFF ON OFF OFF NMS
    ON OFF OFF OFF Double Threshold
    ON ON OFF OFF ARM output
    ON ON ON OFF Approximated 45 degree edge angle colour coded output
    OFF OFF ON ON Blue color channel only
    OFF ON OFF ON Green color channel only
    ON OFF OFF ON Red color channel only
  3. Type root to login. You do not need a password.
  4. Press the FPGA 0 push button to activate the ARM frame reader. FPGA LED 3 illuminates.
  5. Press FPGA 1 push button to activate the ARM frame writer. FPGA LED 2 illuminates.

    The frame reader and writer cannot be running during the boot process.

  6. Navigate to the altera folder, and type ./edge_link into the terminal to start the edge linking program.
    Table 2.  Files in /altera Directory
    File name Description Example use
    edge_link Edge linking program for Canny edge detection ./edge_link
    dumpram Dumps an image frame into the Linux filesystem ./dumpram
    pass_thru Does a simple ARM video loop through without any processing ./pass_thru
    devmem3 Tool to peak and poke the physical memory contents in the ARM processor

    ./devmem3 r 0xff200000 0x0

    (Read, Physical address, Address offset)

    ./devmem3 w 0xff200000 0x0 0x1

    (Read, Physical address, Address offset, write value)

    burn_fpga Script to program the FPGA from Linux

    ./burn_fpga canny_fpga.rbf

    gator.ko

    Linux kernel module for ARM DS5 streamline

    Note: Only works for v3.9.0

    insmod gator.ko
    gatord Linux kernel daemon for ARM DS5 streamline Linux profiling ./gatord.ko&
  7. If image is not centred on the monitor, press the CPU reset button and repeat from #dmi1421333866870.xml/step_N1018C_N10011_N1000E_N10001.