Page 1 of 1

Pin D10 definition on Nucleo L476

Posted: Thu Sep 03, 2020 3:16 pm
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?

Re: Pin D10 definition on Nucleo L476

Posted: Thu Sep 03, 2020 4:18 pm
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.

Re: Pin D10 definition on Nucleo L476

Posted: Thu Sep 03, 2020 5:34 pm
by mebab
Thanks a lot!