cancel
Showing results for 
Search instead for 
Did you mean: 

SPI doesn't transmit any data

Sam Q.
Associate III
Posted on November 17, 2017 at 10:44

Hello everyone,

I'm trying to verify wether my SPI transmits data or not, based on the SPI simulink demo project which is provided by STM32 MAT/TARGET.

Since my borad is STM32F4 Discovery Board, which is different from the demo board, so I've just made the following modifications:

1) Reconfigurating the ioc file: Setting target board as STM32F4 Discovery Board and enabling SPI1 as Full-Duplex master with Hardware NSS Signal disabled.

2) Deleting USART block in the Simulink model, because I don't want to moniter signals via USART.


_legacyfs_online_stmicro_images_0690X0000060N1dQAE.png

After downloading code to the board, I use STMStudio to moniter the output signal ''NbSent'' of the block SPI as shown below. However, its value stays alway 0. It indicates that the SPI doesn't send any data!


_legacyfs_online_stmicro_images_0690X0000060Mz8QAE.png

Do you have any idea about this Problem?

Thank you!

#mat/target #spi
2 REPLIES 2
Sam Q.
Associate III
Posted on November 22, 2017 at 10:34

Is there anyone who has a good idea about this Problem?

Sam Q.
Associate III
Posted on November 29, 2017 at 11:51

Someone else has the same problem. Could any ST internal members pay any attention to this problme?

Any ideas would be highly appreciated! Thanks.