🛠 Activer une console série sur l'UART du CM3+

Raspberry Pi Compute Module 3+ (CM3+ / CM3+ Lite) · debutant · Schéma : un module CM3+ sur CMIO3, broches GPIO14 (TXD) et GPIO15 (RXD) reliées à un adaptateur USB-série, broche GND commune, un terminal série à 115200 bauds.

Objectives

Set up a serial console access on the CM3+: essential for industrial batch production, when the HDMI screen and network are not available. The BCM2837B0 exposes two full UARTs on the SODIMM connector (2× UART per datasheet RP-008163-DS §2.2); here we use the UART0 PL011 on GPIO14/15, exposed on the GPIO connector of the CMIO3. You will enable the serial port via config.txt and raspi-config, then connect from a host PC.

Hardware

Complete code

# 1. Activer le port série de login sur la console série
sudo raspi-config    # Interface Interfacing Options > Serial > Login shell activé
# (ou à la main dans /boot/firmware/config.txt : enable_uart=1)
sudo sed -i 's/^#*enable_uart=.*/enable_uart=1/' /boot/firmware/config.txt
grep enable_uart /boot/firmware/config.txt
sudo reboot

# 2. Côté CM3+ : vérifier le port
ls /dev/serial*
dmesg | grep -i pl011

# 3. Côté PC hôte Linux : se connecter
sudo apt install -y minicom
sudo minicom -D /dev/ttyUSB0 -b 115200

Expected verification

The minicom terminal displays the CM3+ login message; entering the password gives a full shell. Conversely, echo test > /dev/ttyS0 on the CM3+ side (with the login shell disabled to avoid echo) scrolls text on the PC. The console works even without network or screen.

Common errors

Other tutorials for this board

Code examples for this board

← Back to the board 🛠 All tutorials