SPI doesn't work as expected - error message at some pins

Hi,

I’ve tried to connect a STM32F103RBT6 Board via SPI but in MBED OS no SPI pin is working and I get error messages in MBED OS.

With the NUCLEO-F767ZI (NUCLEO-F767ZI | Mbed) I have the same problem when I connect my Board with the SPI4 Pins PE_2, PE_4, PE_5 and PE_6. But when I use the SPI4 Pins PE11, PE_12, PE_13 and PE_14 everything is fine.

The Error message is:

Why is there a problem with some SPI Channels? Why are they not working and throw this error?

I choose the Pins like this:
image

Hi,

It is a good idea to list the version of Mbed OS you are currently using.
This error usually occurs when you use a wrong pin in the wrong place - according to pinmap. For example, if you swap if you swap PE_6 with PE_4.

Nucleo-F767ZI, MbedOS 6.7, MbedStudio

SPISlave spi(PE_6, PE_5, PE_2,PE_4);

No errors

BR, Jan

Hi I’m using MBED OS 6.7.
Thank you in for your response, but how can I use a already reserved pin like pin PA_7 / D11?

image

Hi,
Just visit ST web side and check the user manual of Nucleo-144 boards (UM1974 ) just try to take out the jumper JP6.

BR, Jan

Hi,

when I take out the jumper the programm does not work either.
Is it necessary to change something in the library too?

Hello,

try to check this Nucleo 144pins ethernet spi conflict - | Mbed.

Similar/same issue we discuss here.

BR, Jan