🛠 Alimenter un CM5 comme il faut : USB-C PD 5 V / 5 A et bouton d'alimentation

Raspberry Pi Compute Module 5 (compute-module-5) · debutant · Schéma : IMG-compute-module-5-debutant-1-alimenter-cm5-usb-c-5a.svg — CM5 sur CM5IO Board alimenté par un câble USB-C relié à une alimentation officielle 27 W ; les broches CC1/CC2 du connecteur sont surlignées (négociation PD sur le module) ; le bouton d'alimentation de l'IO Board est indiqué avec ses deux appuis (court / plus de 5 s).

Objectives

The CM5 negotiates its power supply directly on the module: the CC1/CC2 pins of the USB-C connector communicate with the PMIC, which can request up to 5 V / 5 A (25 W) — no external PD controller is required on the motherboard. This tutorial covers: connecting the correct power supply, understanding the limitation of the 3 A position (max 600 mA for peripherals), getting familiar with the PWR_BUT power button (short press = on/off, press > 5 s = forced shutdown), and checking for undervoltage. Reference power consumption (datasheet): ~400 mA at idle, ~900 mA during operation, 1.3 mA in shutdown.

Hardware

Complete code

# 1) Démarrer avec l'alimentation 27 W, puis vérifier l'absence de sous-tension
dmesg | grep -iE 'under-voltage|underpower' || echo "OK : aucune sous-tension enregistrée"
vcgencmd get_throttled        # attendu : throttled=0x0
vcgencmd measure_temp         # throttle à 85 °C de boîtier

# 2) Charger le système (2 SSD USB3 + CPU à fond) et recontrôler
sudo apt install -y stress-ng
stress-ng --cpu 4 --timeout 60 &
sleep 30; vcgencmd get_throttled; dmesg | tail -5

# 3) Bouton d'alimentation : appui court = extinction douce ; > 5 s = forcée
sudo systemctl poweroff       # équivalent logiciel de l'appui court

# 4) Re-tester avec l'alimentation 3 A : les bits de sous-tension doivent apparaître

Expected verification

With the 27 W power supply: vcgencmd get_throttled remains at 0x0 even under stress, no undervoltage messages appear in dmesg, and the wattmeter indicates ~2 W at idle and ~4.5 W during typical operation (900 mA at 5 V). With a 3 A power supply + USB3 peripherals, under-voltage warnings appear — the datasheet requires a motherboard design of 5 V / 2.5 A.

Common errors

Other tutorials for this board

Code examples for this board

← Back to the board 🛠 All tutorials