Skip to main content
Explorer
February 27, 2024
Solved

Request for STM32F746ZG SPI Code Snippets

  • February 27, 2024
  • 3 replies
  • 1768 views

Hello STM32 community,

I'm currently working on a project with an STM32F746ZG microcontroller, and I'm in need of SPI code snippets specifically tailored for this platform. I've searched extensively, but I haven't been able to find any suitable examples within the context of the STM32F746ZG.

Could someone please share SPI code snippets or a reference example that is compatible and optimized for the STM32F746? I'm specifically looking for code that demonstrates the setup and usage of the SPI peripheral on this microcontroller. Any assistance in this matter would be highly appreciated.

For reference, you can refer to the example codes available here, in which SPI is missing:

Pluto7_0-1709023709908.png

 

Thank you very much for your help!

Best regards,

Pluto

    This topic has been closed for replies.
    Best answer by mƎALLEm

    Hello,

    You can refer to this example from CubeF7 package:

    https://github.com/STMicroelectronics/STM32CubeF7/tree/master/Projects/STM32746G-Discovery/Examples/SPI

    3 replies

    mƎALLEmAnswer
    Technical Moderator
    February 27, 2024
    Pluto7Author
    Explorer
    February 27, 2024

    Thanks for your help @mƎALLEm.

    Pluto7Author
    Explorer
    February 27, 2024

    @mƎALLEmWhat is the difference between: STM32F746ZG-Nucleo vs STM32746G-Discovery? As I can see both of them present under the same snippet codes package?

    And will the code base for Discovery work as it is for Nucleo?

    F746-Nucleo-Discovery.jpg

    Thanks,
    Pluto

     

    Technical Moderator
    February 27, 2024

    It's the same MCU (same die) with different package. If the SPI example works for the one it should work for the other.

    The only thing you have to check: the GPIO pins and the clock configuration. So you need if necessary to make some changes according to the board schematics, pins exposed, etc..  but in final the example should work.