SPI to USB

Nishant_99

New member
I want to write a code from Teensy 4.0 to USB .Please tell me so that data of SPI I can see in my PC . Not able to see .Want to have Clock Frequency of 2.7MHz and data is coming from FPGA to Teensy and then converting to USB.I want to generate a bin file . Please help me to solve this problem
 
Sorry, I am not sure I am understanding what you are wanting to do.

I understand that you are receiving data from an FPGA over SPI, but it is unclear how you want to see on your PC.

That is there are lots of different options for things like:
a) You receive a buffer from SPI, and then you simply do something like: Serial.write(buffer, len); which will write the
binary data over the USB Serial, where you can have something like python or the like on the PC to do something with it.

b) You can potentially write the data you receive to a file system. Could be SD card connected either through SDIO or SPI. Could
be using LittleFS to unused portion of the Flash on your board, or other options. How you get that to your pc depends.
SD Card, you could remove and then read it like any other SD card. You could setup your sketch on the Teensy to support MTP
Which you can then connect up to your PC and download it using MTP.

Or there are probably many other options as well, but hard to guess without knowing more what you are trying to do.
 
Hey,KurtE Thanks for your answer I asked that How to convert SPI data into USB and then by python script to see in PC as bin will file will be generated so that's what I want to see to check that data coming from FPGA is correct or not . That is the main target.
 
Back
Top