cancel
Showing results for 
Search instead for 
Did you mean: 

SPI full duplex communication using software NSS for STM32F103ZE

ayanmukherjee
Associate II
Posted on June 11, 2014 at 15:01

Hello. I am trying to run SPI full duplex communication using software NSS for STM32F103ZE downloaded from

http://elk.informatik.fh-augsburg.de/pub/stm32lab/libs/STM32F10x_StdPeriph_Lib_V3.5.0/Project/STM32F10x_StdPeriph_Examples/Library_Examples.html#SPI

. Its compiling and downloading without error. I have connected GPIOA 5,6,7 (SPI1) with GPIOB 13,14,15 (SPI2) respectively.

The program is running ok till the while loop 'while (SPI_I2S_GetFlagStatus(SPIz, SPI_I2S_FLAG_RXNE) == RESET);' The program is not moving any further. It seems there is some problem with reception of data.

Please suggest a solution to the problem.

Thanks.

1 REPLY 1
randyao12345
Associate II
Posted on June 12, 2014 at 19:22

I have a similar problem actually. Can you post your code? How do we debug without it lol

Also, you connected chip select right (for SPI1_NSS is PA4)