Skip to the content
2 layers67.1 × 88.9 mmOspi, the printed circuit board in 3D

STM32H7を使ってUSB-HSをOCTO SPIに変換してPCとFPGAをUSBで通信する

Size
67.1 × 88.9 mm
Copper layers
2
Thickness
1.6 mm
Parts
50
Nets
197
Pads
371
Tracks, vias
516, 42
Pours
1
Routed
Yes
KiCad
KiCad 6 (file 20211014)
Created
12 Jan 2023
Updated
27 Feb 2023

Overview

Ospi is an open-source printed circuit board by tom01h, from the tom01h/usb-ospi repository on GitHub. It is a 2-layer board of 67.1 × 88.9 mm with 50 parts on 197 nets, routed with 516 tracks and 42 vias.

It is built around the USB3300-EZK. Its parts include 25 resistors, 12 capacitors, 10 connectors, 1 IC and 1 switch.

Main components

1

README

README.md

PCとFPGAをUSB接続する

概要

以下の接続でPCとFPGA間の高速転送をしたいプロジェクト。
今はRead120Mbps,Write100Mbpsくらい。
LinuxPC ←(USB-HS)→ USB3300 ←(ULPI)→ STM32H7B0 ←(OCTO SPI)→ FPGA

FPGA内ではAXIマスターポートをつける予定だけど、まだSPIクロックで動くBRAMにアクセスできるだけ。

USB転送はPCではlibusb、STM32ではtinyusbを使ってVendorSpecificなバルク転送をします。
OCTO SPIはSTM32はHALを使って、FPGAは適当に作ったRTLを使います。

部品

使い方

ホスト

text
cd host/
cmake .
make
sudo ./main

ファームウェア

  • firm/tinyusbの下にtinyusbをクローンする
    • このリポジトリにあるファイルで上書きする
  • usb_octospi.iocからプロジェクトを作る
    • このリポジトリにあるファイルで上書きする
  • ここに従って参照パスを追加する
text
- Right click the project, go to properties. in C/C++ General -> Paths and Symbols, in the "Includes" tab add a path, make it a workspace path, point it to the tinyusb/src directory. Then, in the "Source Location" tab, add folder, and also point it to tinyusb/src
- Add a tusb_config.h to your "Core/Inc"

FPGA

  • なひビバで次のどちらかのプロジェクトを再生してビルドする
    • QMT100/
    • QMT200/

Parts

50
QtyValueFootprintReferences
1333Resistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolderR3, R4, R5, R6, R7, R8, R9, R10, R11, R12, R13, R14, R15
55.1kResistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolderR1, R2, R18, R19, R20
40Resistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolderR22, R23, R24, R25
4100nCapacitor_SMD:C_1206_3216Metric_Pad1.33x1.80mm_HandSolderC7, C9, C10, C11
44.7kCapacitor_SMD:C_1206_3216Metric_Pad1.33x1.80mm_HandSolderC3, C4, C5, C6
210nCapacitor_SMD:C_1206_3216Metric_Pad1.33x1.80mm_HandSolderC8, C12
220pCapacitor_SMD:C_1206_3216Metric_Pad1.33x1.80mm_HandSolderC1, C2
2Conn_02x06_Odd_EvenConnector_PinSocket_2.54mm:PinSocket_2x06_P2.54mm_VerticalJ9, J10
2Conn_02x22_Odd_EvenConnector_PinSocket_2.54mm:PinSocket_2x22_P2.54mm_VerticalJ5, J7
112kResistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolderR17
11MResistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolderR16
14.7kResistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolderR21
1Conn_01x06_MaleConnector_PinSocket_2.54mm:PinSocket_1x06_P2.54mm_VerticalJ2
1Conn_01x32_MaleConnector_PinSocket_2.54mm:PinSocket_1x32_P2.54mm_VerticalJ8
1Conn_02x07_Odd_EvenConnector_PinHeader_2.00mm:PinHeader_2x07_P2.00mm_VerticalJ3
1Conn_02x32_Odd_EvenConnector_PinSocket_2.54mm:PinSocket_2x32_P2.54mm_VerticalJ4
1Crystal_GND24Crystal:Crystal_SMD_3225-4Pin_3.2x2.5mm_HandSolderingY1
1SW_PushButton_Switch_SMD:SW_SPST_CK_RS282G05A3SW1
1USB3300-EZKMy:QFN-32-1EP_5x5mm_P0.5mm_EP3.45x3.45mm_ThermalViasU1
1USB_C_Receptacle_8pinMy:USB_C_Receptacle_8pinJ6
1USB_C_Receptacle_PowerMy:USB_C_Receptacle_PowerJ1

Similar boards

  • 6 layers56 × 65 mmMainboard gen2, the printed circuit board in 3D

    Mainboard gen2

    zephray/NekoInk

    Next gen. of NekoCal: An open-source hackable and programmable e-paper display

    245 parts108
  • 4 layers88 × 23.4 mmSom, the printed circuit board in 3D

    Som

    Stanlazy/ZYNQ_Ruler

    Yet Another XC7Z010 Board

    225 parts18LGPL-2.1
  • 4 layers98.7 × 77.3 mmAkeypad, the printed circuit board in 3D

    Akeypad

    luantty2/akeypad

    8khz polling rate keypad, uses STM32F405 and USB3300, powered by QMK.

    69 parts13GPL-3.0
  • 4 layers45 × 75 mmYui, the printed circuit board in 3D

    Yui

    hasenbanck/yui

    YUI is a USB/SPDIF to I2S interface using a STM32 and a iCE40 FPGA

    77 parts10
  • 4 layers43 × 66 mmWookey, the printed circuit board in 3D

    Wookey

    wookey-project/hard-wookey-motherboard

    WooKey Secure Mass Storage Mainboard PCB

    90 parts10
  • 2 layersMcu, the printed circuit board in 3D

    Mcu

    trlsmax/stm32_ccd_camera

    A STM32 CCD camera

    92 parts4GPL-3.0
  • 4 layers310 × 123 mmVLT, the printed circuit board in 3D

    VLT

    Charading/VLT

    75% Keyboard

    426 parts3
  • 4 layers371.6 × 209 mmAdatv2, the printed circuit board in 3D

    Adatv2

    swiszczoo/adat_usb_interface

    16-in, 16-out 4x ADAT <=> USB interface supporting USB Audio Class 2.0

    253 parts2

Questions

How big is the Ospi PCB?

It measures 67.1 × 88.9 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Ospi use?

50 parts, built around the USB3300-EZK. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Ospi KiCad files?

From the tom01h/usb-ospi repository on GitHub, at the commit this page was made from: the board is PCB/QMTECH/ospi.kicad_pcb and its schematic PCB/QMTECH/ospi.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Ospi design in my own project?

Its repository states no licence, so its author keeps all rights: ask tom01h before reusing the design.