2014-07-15 04:20 AM
SPI doesn't work! & How to configure the Baud Rate Perscaler?
#spi-stm32f103 #stm32f030f42014-07-15 04:27 AM
When you say it doesn't work, what, exactly, doesn't work? For example, are you seeing a clock on the clock line with your scope?
2014-07-15 04:39 AM
Probably want to ensure the buffer is NUL terminated, before using string functions.
Try debugging the send end first, using a scope or analyzer.2014-07-15 05:18 AM
@wood.robert There is a LED that I connected to
GPIOB
0 (stm32f103) that it doesn't work. it should be turn on when the SPI1 peripheral get the
''Rohalamin''
string.
@clive1 My Saleae logic shows me this:
2014-07-15 07:00 AM
Perhaps you might want to use the Standard Firmware Library, and not the HAL/CUBE stuff, I don't see any code initializing the pins properly in your F030 example. Probably save you several man-days of effort messing around with the problem.
2014-07-16 10:28 AM
I changed the codes. Is there any ST E-Mail? I want to send an E-Mail to them and ask my question.
2014-07-16 10:45 AM
Push in via your local account rep, or FAE
2014-07-16 08:53 PM
How exactly? What should I do?
2014-07-17 01:33 AM
I changed the codes and Now they work better! the first problem was that I forgotten to high and low the NSS pin. I changed the code and now it works better than before. as you can see in Saleae, the data is odd (in other word, it's not ''Rohalamin'').
http://i.stack.imgur.com/PUOFk.jpg2014-07-17 09:02 AM
How exactly? What should I do?
How important is your problem?/st-extranet-web-active/active/en/support/online_support.html
http://www.st.com/stonline/contactus/contacts/index.php?type=2
/st-extranet-web-active/active/en/support/mcu_design_consultants.html