Skip to content

Commit a6ed7cd

Browse files
committed
[NUCLEO_F207ZG] Conflict with Arduino D11 and Ethernet port
The board has a jumper that be used to select between using ethernet or using SPI for the same pin. Without this patch, a user that configures the board in 'SPI' mode would get a "pinmap not found for peripheral" error. With this change a user doesn't have to change the mbed library when switching modes (of course user has to take care of SW and HW matching... SPI wouldn't work as expected if board is configured in Ethernet)
1 parent 5d1d8b4 commit a6ed7cd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

hal/targets/hal/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/PeripheralPins.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ const PinMap PinMap_UART_CTS[] = {
255255
//*** SPI ***
256256

257257
const PinMap PinMap_SPI_MOSI[] = {
258-
// {PA_7, SPI_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_SPI1)}, // Ethernet RMII RX Data Valid
258+
{PA_7, SPI_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_SPI1)}, // Ethernet RMII RX Data Valid // D11
259259
{PB_5, SPI_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_SPI1)},
260260
// {PB_5, SPI_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF6_SPI3)}, // choice: PB_5 with SPI_1
261261
{PB_15, SPI_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_SPI2)},

hal/targets/hal/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/PinNames.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ typedef enum {
235235
USBRX = SERIAL_RX,
236236
I2C_SCL = D15,
237237
I2C_SDA = D14,
238-
SPI_MOSI = D11,
238+
SPI_MOSI = PB_5, // Conflict between D11 and RMII RX Data Valid (PA7)
239239
SPI_MISO = D12,
240240
SPI_SCK = D13,
241241
SPI_CS = D10,

0 commit comments

Comments
 (0)