Description
Description
- Type: Bug
- Priority: Major
Target
STM32F401 Nucleo
mbed-os sha:
f4864dc Merge pull request #3930 from ARMmbed/release-candidate
Issue
The issue is in regards to PeripheralPins.c for the STM32F401 Nucleo board which can be found at :
targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F401xE/TARGET_NUCLEO_F401RE/PeripheralPins.c
In this file, the pinmap for SPI_SSEL is missing its default arduino header pin that is defined in PinNames.h The image below shows two different pin maps for the device from PeripheralPins.c, SPI_SCLK and SPI_SSEL. Notice how SPI_SCLK has the arduino pin commented on, and that SPI_SSEL does not.
Now look at PinNames.h found at: /targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F401xE/TARGET_NUCLEO_F401RE/PinNames.h
You will notice that the default SPI_CS pin is PB_6 (as highlighted in the image below), which is not added to the PinMap in PerphiralPins.c. I have not checked whether other STM Nucleo boards have similar issues as well.