ldprog

March 5, 2023 · View on GitHub

Programming software for Lone Dynamics FPGA boards

Overview

ldprog can be used to program the configuration SRAM or flash on Lone Dynamics FPGA boards.

There are two ways to use ldprog:

  • Run ldprog on a Raspberry Pi and directly connect the target device to the Raspberry Pi GPIO pins
  • Run ldprog on a Linux computer and use a USB interface device (see supported devices below)

Installation for use with Müsli or Raspberry Pi Pico (Ubuntu)

apt-get install libusb-1.0-0-dev
make musli

Installation for use with Raspberry Pi GPIO (Raspbian)

apt-get install pigpio
make gpio

Usage

Display help:

./ldprog -h

Supported Target Devices

Supported Interface Devices

  • Raspberry Pi (GPIO)
  • Raspberry Pi Pico (USB)
  • Werkzeug (USB)
  • Müsli (USB)

Note: Raspberry Pi Pico and Werkzeug must be loaded with the Müsli firmware. Keks, Eis, Bonbon and Kolibri provide a built-in interface device.

Raspberry Pi GPIO Default Wiring

SignalGPIO#Target Pin
CSPI_SS251
CSPI_SCK112
CSPI_SI103
CSPI_SO94
CRESET235
CDONE246

Raspbery Pi 40-pin Header Pinout

Müsli / Werkzeug / Raspberry Pi Pico Default Wiring

SignalGPIO#Müsli PinWerkzeug PinPico PinTarget Pin1
CSPI_SS9812121
CSPI_SCK10913142
CSPI_SI111014153
CSPI_SO8711114
CRESET34455
CDONE23346

Footnotes

  1. For boards with a 6-pin ISP header.