cancel
Showing results for 
Search instead for 
Did you mean: 

SPI communication between two stm32f103 - Urgent Help

lakshmikantha85
Associate II
Posted on April 08, 2011 at 14:49

SPI communication between two stm32f103 - Urgent Help

2 REPLIES 2
ColdWeather
Senior
Posted on May 17, 2011 at 14:31

Master             Slave

 

PC.4  ----------> SS_bar

 

MISO -----------> MISO

 

MOSI ----------> MOSI

 

SCK ----------> SCK

Maybe:

MISO -----------> MOSI

MOSI ----------> MISO?

A'm not sure here, but you can try...

 

Posted on May 17, 2011 at 14:31

No I think one-to-one wiring of MISO (MASTER IN, SLAVE OUT), etc is really the way to do it.

Personally, I'd suggest people use the library to avoid hours futzing around with register level debugging, but to each their own. If you're going to program it at this level, you'd better be prepared to debug it yourself, rather than asking others to URGENTLY comb over this kruft.

If you think you might have a USART problem, output some data/string upon entry to the program to confirm it is working.

If using the registers, you really should be worried about initial conditions and not randomly OR data into them. Either write an initial value, or mask the current content.

 

 

 

 

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..