Skip to main content
lakshmikantha85
Visitor II
April 8, 2011
Question

SPI communication between two stm32f103 - Urgent Help

Posted on April 08, 2011 at 14:49

SPI communication between two stm32f103 - Urgent Help

    This topic has been closed for replies.

    2 replies

    ColdWeather
    Senior
    May 17, 2011
    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...

     

    Tesla DeLorean
    Guru
    May 17, 2011
    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 (See Profile) Up vote any posts that you find helpful, it shows what's working..