Skip to content

Commit fc2ab68

Browse files
committed
Wrong pins for Serial2
Fix #73 Signed-off-by: Frederic.Pillon <[email protected]>
1 parent 078f1f5 commit fc2ab68

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

Diff for: variants/NUCLEO_F303RE/variant.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ HardwareSerial Serial(PA3, PA2); //Connected to ST-Link
102102
HardwareSerial Serial1(PA10, PA9);
103103
#endif
104104
#ifdef ENABLE_SERIAL2
105-
HardwareSerial Serial2(PA1, PA0);
105+
HardwareSerial Serial2(PD2, PC12);
106106
#endif
107107

108108
void serialEvent() __attribute__((weak));

Diff for: variants/NUCLEO_F303RE/variant.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ enum {
112112
#define PIN_SERIAL_TX 1
113113
#define PIN_SERIAL1_RX 2
114114
#define PIN_SERIAL1_TX 8
115-
#define PIN_SERIAL2_RX 47
116-
#define PIN_SERIAL2_TX 46
115+
#define PIN_SERIAL2_RX 31
116+
#define PIN_SERIAL2_TX 17
117117

118118
#ifdef __cplusplus
119119
} // extern "C"

Diff for: variants/NUCLEO_F401RE/variant.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ HardwareSerial Serial(PA3, PA2); //Connected to ST-Link
103103
HardwareSerial Serial1(PA10, PA9);
104104
#endif
105105
#ifdef ENABLE_SERIAL2
106-
HardwareSerial Serial2(PA1, PA0);
106+
HardwareSerial Serial2(PC7, PC6);
107107
#endif
108108

109109
void serialEvent() __attribute__((weak));

Diff for: variants/NUCLEO_F401RE/variant.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ enum {
112112
#define PIN_SERIAL_TX 1
113113
#define PIN_SERIAL1_RX 2
114114
#define PIN_SERIAL1_TX 8
115-
#define PIN_SERIAL2_RX 47
116-
#define PIN_SERIAL2_TX 46
115+
#define PIN_SERIAL2_RX 9
116+
#define PIN_SERIAL2_TX 34
117117

118118
#ifdef __cplusplus
119119
} // extern "C"

0 commit comments

Comments
 (0)