-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Description
Describe the bug
On some STM32 boards, changing the Serial Rx or Tx pin stalls the board after ~10s. Recovery requires a HW-reset. The failure depends on which HardwareSerial or pin is used. Specifically
- setup: Nucleo-STM32L432KC and "-DENABLE_HWSERIAL1"
- for Serial2 setTx(PA_2) or setRx(PA3) stall the board after ~10 seconds
- skipping SERIAL_TEST.write() in example prevents the stall
HardwareSerial | setTx() | setRx() | both | none | remarks
------------------------------------------------------------------------------------
Serial1 | ok | ok | ok | ok | all Rx/Tx pin combinations
Serial / Serial2 | PA2 stall | PA15 ok / PA3 stall | stall | ok |
To Reproduce
see attached PlatformIO project STM32_Serial_Rerouting.zip
Steps to reproduce the behavior:
- Compile and upload to Nucleo-STM32L432KC
- LED stops blinking after ~10s -> error
Expected behavior
LED should continue blinking and on Tx pin expect periodic sending of 0x55
Desktop (please complete the following information):
- OS: Linux
- Arduino IDE version: 2.3.7 / PlatformIO version: Core 6.1.18·Home 3.4.4
- STM32 core version: 2.12.0
- Upload method: STLink
Board (please complete the following information):
- Name: [e.g. Nucleo F429ZI]
- Hardware Revision: [e.g. Rev B]
- Extra hardware used if any: [e.g. X-Nucleo IKS01A1]
Metadata
Metadata
Assignees
Labels
No labels