Skip to content

fpga config over uart

Hampus Sandberg edited this page Nov 28, 2015 · 11 revisions

FILES: fpga-config-mcu

Parameters

  • -p <serialPort> : Specifiy the serial port to use
  • -n <bitFileNum> : Specifiy the position the bitfile should be saved
  • -b <binFile> : Path to the bitfile
  • -s <bitFileNum> : Start config of the specified bitfile
  • -r : Read the bitfile headers stored in flash
  • -v : Verbose mode, i.e. display all information
  • -l : List the available serial ports
  • -h : Display this help

Examples

  • Write the bit file "test-compressed.rbf" to position 1:
    Mac: python fpga-config-over-uart.py -p /dev/cu.usbserial-A800JCSE -n 1 -b test-compressed.rbf
    Windows: python fpga-config-over-uart.py -p COM3 -n 1 -b test-compressed.rbf

  • Write the bit file "test-uncompressed.rbf" to position 2:
    Mac: python fpga-config-over-uart.py -p /dev/cu.usbserial-A800JCSE -n 2 -b test-uncompressed.rbf
    Windows: python fpga-config-over-uart.py -p COM3 -n 2 -b test-uncompressed.rbf

  • Start configuration using bit file at position 1:
    Mac: python fpga-config-over-uart.py -p /dev/cu.usbserial-A800JCSE -s 1
    Windows: python fpga-config-over-uart.py -p COM3 -s 1

  • Start configuration using bit file at position 2:
    Mac: python fpga-config-over-uart.py -p /dev/cu.usbserial-A800JCSE -s 2
    Windows: python fpga-config-over-uart.py -p COM3 -s 2

  • Read the bitfile headers:
    Mac: python fpga-config-over-uart.py -p /dev/cu.usbserial-A800JCSE -r
    Windows: python fpga-config-over-uart.py -p COM3 -r

  • List available serial ports:
    Mac/Windows: python fpga-config-over-uart.py -l

  • Display the help:
    Mac/Windows: python fpga-config-over-uart.py -h

Clone this wiki locally