• sales

    +86-0755-88291180

Raspberry Pi CM4-NANO-A User Guide

Introduction

Product description

CM4-NANO-A is a 4th generation mini board of Raspberry Pi Compute Module, which is a baseboard of Raspberry Pi Compute Module 4, 5V/ 2.5A USB Type C power supply interface.

Precautions for use

  1. It is forbidden to plug and unplug any device other than USB while it is powered on
  2. The Type C interface can be used as a power supply or as a USB SLAVE interface to burn the image.
  3. In order to ensure the normal power supply of CM4, please do not connect other devices when using the Type C interface to burn the image.
  4. When CM4 is in normal use, it needs to provide 5V 2A power supply for CM4. Otherwise, there may be problems such as automatic shutdown, frequency reduction and so on.
  5. Since the module does not have any protection circuit, please do not short-circuit the power supply
  6. USB2.0 is disabled by default, if you want to open it, you need to add dtoverlay=dwc2,dr_mode=host

Product Size



Compute_Module 4 Core board


Onboard Resources



LabelNameDescription
1CM4 socketsuitable for all variants of Compute Module 4
2Power supply/burning interface5V/2A power supply, can also be used as eMMC burning interface
3Micro SD card interfaceFor inserting a Micro SD card with the system, only for Lite version
4CSI InterfaceSingle MIPI CSI Camera Interface
5USB 2.0 interfaceUSB 2.0 interface, support various USB device insertion
640PIN GPIO interfaceEasy access to various HAT modules
7PWR indicatorIndicates the power status of the Raspberry Pi
8ACT IndicatorIndicates the working status of the Raspberry Pi
9AMS1117-3.3VSupply voltage for CSI and 40Pin
10BOOTON: Switch the USB to type C interface, and enter the download mode when powered on (configured as a large-capacity disk through rpi boot)

OFF: Switch the USB to TYPE A interface, it will not enter the download when powered on (start from eMMC or SD card)


Introduction

Precautions

Do not plug or unplug any device while it is powered on

Writing Image

USB2.0

The USB port is disabled by default on the CM4 to save power. If you need to start, you need to add the following to the config.txt file:

dtoverlay=dwc2,dr_mode=host

After restarting

If you use the latest Raspberry Pi OS (image after October 30, 2021) USB2.0 is OTG mode by default, CM4 will report an error:

config failed, hub doesn't have any ports! (err -19)

However, USB can still be used. If you want to remove this error, remove otg_mode=1 in [cm4] of config.txt, and add dtoverlay=dwc2, dr_mode=host (USB cannot be recognized without adding it).


CSI

CSI are disabled by default. When using the camera, it will occupy three I2C devices: I2C-10, I2C-11, and I2C-0.
Open a terminal and run the following commands:

sudo apt-get install p7zip-full
wget https://www.waveshare.net/w/upload/4/41/CM4_dt_blob.7z
7z x CM4_dt_blob.7z -O./CM4_dt_blob
sudo chmod 777 -R CM4_dt_blob
cd CM4_dt_blob/
# If using the camera to execute
sudo dtc -I dts -O dtb -o /boot/dt-blob.bin dt-blob-disp0-double_cam.dts
# When using CSI, HDMI1 has no image output, even if you do not connect the DSI screen, as long as you 
compile the corresponding file, then HDMI1 will not output
# If you need to restore, delete the corresponding dt-blob.bin: sudo rm -rf /boot/dt-blob.bin
# After execution, turn off the power and restart the CM4

Reconnect the camera:
1: Make sure the connection is in the power-off state
2: Connect Power
3: Wait a few seconds for the screen to start
4: If it fails to start, check whether /boot/dt-blob.bin exists, and restart it if it exists.
5: The camera needs to run raspi-config, select Interfacing Options->Camera->Yes->Finish-Yes, reboot the system, open the enable camera, and then restart to save the changes.

Test photo:

raspistill -o image.jpg

Test video:

raspivid -o video.h264 -t 10000

Where -t 10000 means recording for 10 seconds, users can adjust according to their own needs.


Reference: CSI camera

TAG: Raspberry Pi 14 inch LCD 2K HDMI /Type C Display Capacitive TouchScreen 2160x1440 For Jetson Nano/mini Computer PC Arduino 1.54inch OLED Raspberry Pi 5 Argon-NEO-M.2-NVME-PCIE-Expansion-Board Only For Argon NEO 5 Case (Not include) RS485 to RJ45 NVIDIA Jetson Orin Nano 4/8GB AI 20/40Tops Lower Power Autonomous Machines Raspberry Pi ESP32 C3 LCD Jetson RTL8822CE 5GHz WiFi Wireless Bluetooth5 Card NGFF-M.2 RTL8822CE-CG Core Raspberry Pi 3.5 inch DSI Display MIPI LCD (H) Capacitive TouchScreen 480x800 E-Paper RTL8852BE wireless network card Gigabit dual-band WiFi6 wireless module Standard Bluetooth 5.2 ESP32 S3 Development Board 1.43 inch AMOLED Display 1.43inch TouchScreen For Arduino LVGL With SD-Port/ QMI8658C 6-Axis Sensor Raspberry Pi 5 PCIe to USB3.2 Gen1 Hub 5Gbps For Raspberry Pi OS Drive free Raspberry Pi 3.5 inch LCD G Display Resistive TouchScreen 60fps ST7796 320x480 Also For Arduino/Pico2/ESP32/RP2040/RP2350 STM32 0.96inch RGB OLED Raspberry Pi 5 PCIe TO Gigabit RJ45 ETH Adapter Board (C) Driver-Free RTL8111H For Pi5 ESP32 S3 Development Board 2.1 inch Round Rotary Knob LCD Smart Screen 2.1inch Display 480x480 LVGL for Arduino Milk V Duo ESP32-S3FH4R2 Raspberry Pi 0.96inch OLED