nrc7292_sw_pkg icon indicating copy to clipboard operation
nrc7292_sw_pkg copied to clipboard

FT232H configuration

Open Avamander opened this issue 1 year ago • 8 comments

I built the ft232 module and enabled ft232h_usb_spi in start.py, but dmesg doesn't say anything besides Succeed to register spi driver(nrc80211). .

I suspected a mismatch between the FT232H wiring expected by the ft232h-usb-spi module and the pins labeled for SPI on the Adafruit FT232H Breakout board, but I can't figure out where.

On the Adafruit board the pinout is as follows:

D0 - SCK/SCL
D1 - MOSI
D2 - MISO
D3 - SPICS 

From the FT232 documentation in MPSSE mode these should be equivalent to:

ADBUS0 - TCK/SK
ADBUS1 - TDI/DO
ADBUS2 - TDO/DI
ADBUS3 - TMS/CS

From AN-7292-008-FT232H_USB_SPI.pdf:

MPSSE_GPIOL0 - 500
MPSSE_GPIOL1 - 501
MPSSE_GPIOL2 - 502
MPSSE_GPIOL3 - 503 

So this seems correct, but after running the following commands, I can't see a new wireless interface or any dmesg output related to the module except Succeed to register spi driver(nrc80211)..

sudo insmod ./nrc7292_sw_pkg/package/src/ft232h-usb-spi/spi-ft232h.ko latency=1 spi_bus_num=3 gpio_base_num=500
sudo insmod ./nrc7292_sw_pkg/package/src/nrc/nrc.ko fw_name=nrc7292_cspi.bin bd_name=nrc7292_bd.dat listen_interval=1000 debug_level_all=1 spi_bus_num=3 spi_polling_interval=5 spi_cs_num=503 spi_gpio_irq=-1

Avamander avatar Oct 02 '23 21:10 Avamander