8 years, 5 months ago.

Accessing serial port for external interface

Is it possible to use RX TX pins on a 32-pin Nucleo board for external interface - communicating to a second microcontroller or for a RS485 interface? Thanks, SG

1 Answer

8 years, 5 months ago.

You can use the serial ports that are available on external pins. On the ST32f103 for example you have access to serial port 1 and serial port 3. See the platform page of the f103 for the pin mapping. Note that serial port 2 (on D0,D1 pins) is not available since it is used for the serial port (printf) via the USB port to the host PC. The processors in a smaller package often have less serial ports available and you may have to give up the host connection when you want an external serial port. You may also have to remove some solderbridges to avoid hardware conflicts. Check the user manual for details.