Skip to content
Discussion options

You must be logged in to vote

Hi @EnzoPB
In fact PB5 can be used for 2 SPI instance:

{PB_5, SPI1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_SPI1)},
{PB_5_ALT1, SPI3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF6_SPI3)},

So simply change to:
#define SPI_MOSI PB5_ALT1

Like this the SPI3 is used for PB5 and aligned with PC10/PC11

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@EnzoPB
Comment options

@fpistm
Comment options

Answer selected by EnzoPB
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants