This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

SPI on chip MBN52832 to STM32

Hi,

I am trying to communicate from STM32 Nucleo board to murata's MBN52832, using SPI, with the nordic chip being the slave. So, for this I used the SPIS example from the nordic SDK, and I had to change some pin numbers in sdk_config.h because the default pins in the SDK are not available in the MBN52832. I didn't do much, I just directly went to sdk_config.h and I changed the pin definitions of MISO, MOSI, SCN, and SCK. 

Now I connected to STM32 controller, referring to the following pin diagram:

CLK I connected to SCK, MISO to MISO, MOSI to MOSI, and I connected both the grounds. For the SCN pin, I wasn't sure what to do, and I assumed it was active low, and connected it to ground, it did not work, I connected it to 3.3 V, it still did not work.

I have some questions:

1) For changing the pins, just going and changing the pin definitions in sdk_config.h is enough? In the datasheet it says, you have to enable SPI on the pin, and set connect field to 1, etc. So, what exactly am I supposed to do in the SDK example, to change the pins?

2) What should I do about SCN?

3) For checking whether or not it is working, I am looking at the LEDs. SPIS says it should toggle if it is working. It doesn't.  I also noticed that there is a NRF_LOG_INFO() function. Where could I see it logging the data? I am using Keil IDE.  

Please let me know any other mistakes I could have committed.

Thanks a lot in advance! Your help will be extremely appreciated.

Related