Pin D10 definition on Nucleo L476

Post here all questions related to STM32 core if you can't find a relevant section!
Post Reply
mebab
Posts: 115
Joined: Mon Aug 24, 2020 12:42 pm
Answers: 4

Pin D10 definition on Nucleo L476

Post by mebab »

On Nucleo 64 L476 there is a digital pin, D10 that can be either TIM4_CH1 or SPI1_CS. How to choose SPI1_CS by Arduino IDE?
by fpiSTM » Thu Sep 03, 2020 4:18 pm
This is automatically set by the feature you used. If you use the pin D10 for the SPI CS then it will use it as CS.

Each pin capabilities are defined in a file called PeripheralPins.cpp:
https://github.com/stm32duino/Arduino_C ... #L289-L297

In the case of L476, D10 is PB6 and does not have hardware SPI CS and is used like a software CS managed by the SPI library.
Go to full post
User avatar
fpiSTM
Posts: 1757
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 91
Location: Le Mans
Contact:

Re: Pin D10 definition on Nucleo L476

Post by fpiSTM »

This is automatically set by the feature you used. If you use the pin D10 for the SPI CS then it will use it as CS.

Each pin capabilities are defined in a file called PeripheralPins.cpp:
https://github.com/stm32duino/Arduino_C ... #L289-L297

In the case of L476, D10 is PB6 and does not have hardware SPI CS and is used like a software CS managed by the SPI library.
mebab
Posts: 115
Joined: Mon Aug 24, 2020 12:42 pm
Answers: 4

Re: Pin D10 definition on Nucleo L476

Post by mebab »

Thanks a lot!
Post Reply

Return to “General discussion”