Affordable and flexible platform to ease prototyping using a STM32F401RET6 microcontroller.

NUCLEO-F401RE SPI API problem

29 Aug 2016

I found NUCLEO-F401RE has problem on OS-5 SPI API. When I created SPI by using the constructor with 4 parameters:

SPI spi(SPI_MOSI, SPI_MISO, SPI_SCK, SPI_CS);

the program could not run correctly. The LD2 LED is blinking (even the LD2 is not defined in the program) and the program hangs. The SPI constructor with 3 parameters has no problem.

Please log in to post a reply.