FTDI SPI Tutorial: LibMPSSE with Visual Studio 2015

Поділитися
Вставка
  • Опубліковано 13 лип 2024
  • Most people know of FTDI because of their popular USB UART chips, but many of those chips also have support for SPI, I2C and even JTAG. In this video I show how to use FTDI's LibMPSSE library for C. A simple demo program is made that communicates with an SPI 3-axis gyroscope. It displays the X, Y and Z velocities on screen.
    Source code for the program written in this video:
    www.farrellf.com/youtube/FTDI%...
    Links I mentioned in the video:
    www.ftdichip.com/Drivers/D2XX.htm
    www.ftdichip.com/Products/Cabl...
    www.ftdichip.com/Support/Docum...
    www.ftdichip.com/Support/Docum...
    www.ftdichip.com/Support/Softw...
    www.ftdichip.com/Support/Docum...
  • Наука та технологія

КОМЕНТАРІ • 38

  • @armchair.9664
    @armchair.9664 6 років тому +6

    Just started a new job where I needed to do this for an FTDI USB to SPI board, and this video was a life-saver. I cannot thank you enough!

  • @funbotix3030
    @funbotix3030 Рік тому +1

    Wow... super job of showing just enough to make it all work in a very easy to understand way. Thanks!!

  • @Timur_Kan
    @Timur_Kan 4 роки тому +3

    Thanks a lot for this tutorial! Cheers from Russia!

  • @mvisperas
    @mvisperas 3 місяці тому

    Thanks for this walkthrough. I'm about to do an FTDI FT4232H Mini Module I2C project.

  • @Alg0Arab0Muslim
    @Alg0Arab0Muslim 7 років тому

    Fantastic video and great presentation. It worked from the first run. Thanks a lot.

  • @isaattechnologies4790
    @isaattechnologies4790 7 років тому +1

    Good video! Lots of useful information.

  • @faizibrahimp
    @faizibrahimp 8 років тому

    Thanks for the video. Helped a lot.

  • @MJ12GRAVITON
    @MJ12GRAVITON 8 років тому

    Fantastic, great channel, thankyou.

  • @BAMFWrangler
    @BAMFWrangler 8 років тому +2

    Awesome video. Great content and presentation skills.

    • @upgrdman
      @upgrdman  8 років тому

      +BAMFWrangler Thank you!

  • @liornak
    @liornak 3 роки тому +2

    Works on FT2232H Mini Module. Thanks!

    • @mvisperas
      @mvisperas 3 місяці тому

      Thanks for confirming. I'm about to do the same with an I2C.

  • @71GA
    @71GA 2 роки тому +1

    Very pleasant video!

  • @rfdave3980
    @rfdave3980 3 роки тому +1

    Wow nice work. Your video was very good. I learnt so much. Thank you (Subscribed).

  • @jasongao9592
    @jasongao9592 7 років тому

    nice share . I get it !

    • @upgrdman
      @upgrdman  7 років тому

      Glad you liked it, thanks for the feedback.

  • @iknausz
    @iknausz 7 років тому

    Great video and detail, thanks for putting this together. I follow the steps exactly, but get "..\libmpsse\ftdi_infra.c:261:Init_libMPSSE(): NULL expression encountered" message when running the program. I'm on Visual Studio 2015 just like the video. Thanks again.

    • @upgrdman
      @upgrdman  7 років тому

      Hi. Did you install the D2XX driver?

    • @iknausz
      @iknausz 7 років тому

      upgrdman hi, thanks so much for getting back. Yes, I installed the 4 files like you said and installed the system drivers. Somewhere I found that someone needed to use the visual studio 2013 (v120) toolset, but that didn't work for me. Any help appreciated, thanks!

    • @iknausz
      @iknausz 7 років тому +1

      I did get beyond this: The program was not finding 'ftd2xx.dll'. I fixed this by putting the file into the debug directory (with the .exe). I'm sure the proper solution is to fix the path variable to get the executable to find the dll from the install. Things work as expected now, thanks!!

  • @guillaume8437
    @guillaume8437 2 роки тому

    Hi! Thanks for the nice VDO. Do you need to use FT_PROG to configure the IOs or is it in the VS code?

    • @upgrdman
      @upgrdman  2 роки тому

      You don't need to use FT_PROG, it can be configured with the C/C++ code.

  • @theRealPito
    @theRealPito 7 років тому

    Excellent video, congrats
    what gyro did you use in the video?
    can you post the giro's datasheet?

    • @upgrdman
      @upgrdman  7 років тому

      Thanks. It's an STM L3GD20. Datasheets are all over Google and STM's web site, but I think that particular model is going to be discontinued soon.

    • @theRealPito
      @theRealPito 7 років тому +1

      Thanks for the info, keep doing good videos. yeah It is true, It is not recommended for new design but is still in production

  • @sergovan79
    @sergovan79 5 років тому

    Hi! Thanks a lot! Great video! I can't understand how did u connect libMPSSE.lib to your project?

    • @sergovan79
      @sergovan79 5 років тому

      Ups, sorry, I dont see at Resource Files

  • @PomaricoAntonio
    @PomaricoAntonio 5 років тому

    Great video. I am trying to make the same with I2C. But it does not work. I always have problems, that the libMPSSE were not found by the sample_dynamic.exe, which is created by b.bat. Can you help me?

  • @71GA
    @71GA 2 роки тому

    Are you sure "uint32" options does what you say it does? Then what and how does "SPI_ChangeCS()" call from the same library works?

  • @charlieduru284
    @charlieduru284 4 роки тому

    am i the only experiencing a >2ms delay between command execution of the SPIwrite/Read function?
    any ideas please

  • @PomaricoAntonio
    @PomaricoAntonio 5 років тому

    I am trying to run the sample code for the FTD2232H Chip with I2C.
    But it does not work. I always have problems, that the libMPSSE were not found by the sample_dynamic.exe, which is created by b.bat. Can you help me?
    The right mingw is installed (4.5.x), the driver D2xxx are installed.
    When I run the b.bat file then i get this error
    Failed loading libMPSSE.dll. Please check if the file exists in the working directory
    sample-dynamic.c:255:main(): NULL expression encountered
    But the libMPSSE.dll is in the right working directory.

  • @acpck
    @acpck 6 років тому +1

    Great tutorial!
    Unfortunately for some reason FT_WriteGPIO and FT_ReadGPIO is not working :(

    • @saeedehghaffari8019
      @saeedehghaffari8019 5 років тому

      Did you manage to make the FT_WriteGPIO and FT_ReadGPIO work? if yes, how?

  • @stuff2learn07
    @stuff2learn07 2 роки тому

    Can we use this to program a stm32 device via SPI

    • @upgrdman
      @upgrdman  2 роки тому +1

      I've never tried it. Instead of writing your own program to do it, you might try looking into a tool like OpenOCD. I think it supports some FTDI chips.

    • @stuff2learn07
      @stuff2learn07 2 роки тому

      @@upgrdman thank you. I will look into it. I was looking into other ways and those looked complex.

  • @nikhileshk7047
    @nikhileshk7047 5 років тому +2

    I2C please