7 years, 4 months ago.

Simple Master SPI Example

Hello,

I have bought two STM32F746NG, and programmed a tactile interface. But my problem is when i try to do a simple SPI communication, i want to use a NFC Shield on it.

I verified the pins, but i don't have any signal or not even clock... Is there any conflict due to the Discovery version?

I need your help, I'm really stuck!

Thanks and Regards.

Eric Jensen

Question relating to:

The STM32F746G-DISCO discovery board (32F746GDISCOVERY) is a complete demonstration and development platform for STMicroelectronics ARM® Cortex®-M7 core-based STM32F746NGH6 microcontroller.

Can you share which pins you are using ? Also, which code does not work ? Can you post your code with the proper code tags for easy viewing by the readers ? Please use the <<code>> and <</code>> tags.

posted by Sanjiv Bhatia 20 Dec 2016

Well, I tried many different programs to init the SPI2 on the Board. It's the PINs D11/D12/D13 (MOSI/MISO/CLK). I first used an SPI full Duplex example from IAR ST libraries that I managed to compile on Mbed (I've reached my free trial limit on IAR, so I can't test on this IDE). Then i initialised a code on STMCubeMX with the SPI2 activated. I compiled it on Mbed too. For the both cases, I check the SPI Clock Signal with an oscilloscope but there were no signal. My code is pretty long thought, should I still post it ? I didn't change many things from the initial code from these examples.

posted by Eric Jensen 20 Dec 2016
Be the first to answer this question.