2024-02-27 12:46 AM - edited 2024-02-27 12:48 AM
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:
Thank you very much for your help!
Best regards,
Pluto
Solved! Go to Solution.
2024-02-27 01:04 AM
Hello,
You can refer to this example from CubeF7 package:
2024-02-27 01:04 AM
Hello,
You can refer to this example from CubeF7 package:
2024-02-27 01:28 AM
Thanks for your help @SofLit.
2024-02-27 01:56 AM
@SofLitWhat 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?
Thanks,
Pluto
2024-02-27 02:09 AM
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.