Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
7 years, 5 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
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
posted by Sanjiv Bhatia 20 Dec 2016<<code>> and <</code>>
tags.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