Difference between revisions of "CM4-NANO-A"

From Waveshare Wiki
Jump to: navigation, search
 
(19 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
<div class="wiki-pages jet-green-color">
 
{{Infobox item
 
{{Infobox item
 
|name = CM4-NANO-A-4
 
|name = CM4-NANO-A-4
|img=[[File:CM4-NANO-A-4.jpg|250px|link=https://www.waveshare.com/cm4-nano-a.htm]]
+
|img=[[File:CM4-NANO-A-4.jpg|250px|{{Amazon_nolink|default={{#ifeq: {{#urlget:amazon|0}}|{{#urlget:Amazon|0}}| default|}}|url=link=https://www.waveshare.com/cm4-nano-a.htm}}]]
 
|platform=Supports various systems
 
|platform=Supports various systems
 
|category=[[:Category:Raspberry Pi|Compute Module]]
 
|category=[[:Category:Raspberry Pi|Compute Module]]
Line 18: Line 19:
 
*[[Compute Module PoE 4G Board]]
 
*[[Compute Module PoE 4G Board]]
 
}}
 
}}
<div class="tabber">
+
= Introduction =
<div class="tabbertab" title="Introduction">
+
==Description==
== Introduction ==
+
CM4-NANO-A is the mini board of Raspberry Pi Compute Module 4, which is a baseboard of Raspberry Pi Compute Module 4 with a power supply interface of 5V/2.5A, USB Type C.
  
 
+
==Precautions==
===Product description===
+
#<font color="#ff0000">DO NOT plug and unplug any device other than USB while it is powered on.</font>
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===
 
#<font color="#ff0000">DO NOT plug and unplug any device other than USB while it is powered on</font>
 
 
#The Type C interface can be used as a power supply or as a USB SLAVE interface to burn the image.  
 
#The Type C interface can be used as a power supply or as a USB SLAVE interface to burn the image.  
 
#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.  
 
#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.  
 
#When CM4 is in normal use, it needs to provide 5V 2A power supply for CM4. Otherwise, there may be problems such as shutdown, frequency reduction, and so on.  
 
#When CM4 is in normal use, it needs to provide 5V 2A power supply for CM4. Otherwise, there may be problems such as shutdown, frequency reduction, and so on.  
#Since the module does not have any protection circuit, please do not short-circuit the power supply  
+
#Since the module does not have any protection circuit, please do not short-circuit the power supply.
#<font color="#ff0000">USB2.0 is disabled by default, if you want to open it, you need to add the line ''dtoverlay=dwc2,dr_mode=host'' to the config.txt file</font>
+
#<font color="#ff0000">USB2.0 is disabled by default, if you want to open it, you need to add the line ''dtoverlay=dwc2,dr_mode=host'' to the config.txt file.</font>
  
===Product Size===
+
==Dimension==
 
[[File:CM4-NANO-A-details-intro.jpg|800px]]<br />
 
[[File:CM4-NANO-A-details-intro.jpg|800px]]<br />
 
Compute_Module 4 Core board<br />
 
Compute_Module 4 Core board<br />
 
[[FILE:Compute_Module_4_IO_Board_5.png|700px]]<br />
 
[[FILE:Compute_Module_4_IO_Board_5.png|700px]]<br />
  
===Onboard Resources===
+
==Onboard Resources==
  
 
[[File:CM4-NANO-A-details-size.jpg|700px]]<br />
 
[[File:CM4-NANO-A-details-size.jpg|700px]]<br />
Line 68: Line 65:
 
OFF: Switch the USB to TYPE A interface, it will not enter the download when powered on (start from eMMC or SD card)
 
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==
 +
<font color="#ff0000">Do not plug or unplug any device while it is powered on.</font><br>
  
 
+
==Writing Image==
</div>
 
 
 
<div class="tabbertab" title="User Guides"><br />
 
 
 
==Introduction==
 
===Precautions===
 
<font color="#ff0000">Do not plug or unplug any device while it is powered on</font><br>
 
 
 
===Writing Image===
 
 
*[[Write Image for Compute Module Boards eMMC version]]
 
*[[Write Image for Compute Module Boards eMMC version]]
 
*[[Wrote Image for Compute Module Boards Lite version |Write Image for Compute Module Boards Lite version]]
 
*[[Wrote Image for Compute Module Boards Lite version |Write Image for Compute Module Boards Lite version]]
  
===USB2.0===
+
==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:
 
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
 
  dtoverlay=dwc2,dr_mode=host
Line 95: Line 86:
 
</font>
 
</font>
  
===CSI===
+
==CSI==
 
CSI are disabled by default. When using the camera, it will occupy three I2C devices: I2C-10, I2C-11, and I2C-0.<br>
 
CSI are disabled by default. When using the camera, it will occupy three I2C devices: I2C-10, I2C-11, and I2C-0.<br>
 
Open a terminal and run the following commands:<br>
 
Open a terminal and run the following commands:<br>
Line 123: Line 114:
  
  
Reference:[https://www.raspberrypi.org/documentation/hardware/computemodule/cmio-camera.md  CSI camera]  
+
Reference: [https://www.raspberrypi.org/documentation/hardware/computemodule/cmio-camera.md  CSI camera]
  
 
+
=Resources=
 
+
==Official Manual==
 
 
</div>
 
<div class="tabbertab" title="Resources">
 
 
 
=='''Resources'''==
 
===Official Manual===
 
 
*[https://datasheets.raspberrypi.org/cm4io/cm4io-product-brief.pdf Raspberry Pi Compute Module 4 IO Board Brief]
 
*[https://datasheets.raspberrypi.org/cm4io/cm4io-product-brief.pdf Raspberry Pi Compute Module 4 IO Board Brief]
 
*[https://datasheets.raspberrypi.org/cm4io/cm4io-datasheet.pdf Raspberry Pi Compute Module 4 IO Board Datasheet]
 
*[https://datasheets.raspberrypi.org/cm4io/cm4io-datasheet.pdf Raspberry Pi Compute Module 4 IO Board Datasheet]
 
*[https://www.raspberrypi.org/documentation/hardware/computemodule/cmio-camera.md  CSI Camera Reference]  
 
*[https://www.raspberrypi.org/documentation/hardware/computemodule/cmio-camera.md  CSI Camera Reference]  
===Schematic===
+
==Schematic==
 
*[https://www.waveshare.com/w/upload/6/68/CM4-NANO-A_SchDoc.pdf Schematic]
 
*[https://www.waveshare.com/w/upload/6/68/CM4-NANO-A_SchDoc.pdf Schematic]
  
=== 3D document ===
+
== 3D document ==
 
*[https://www.waveshare.com/w/upload/1/10/CM4-NANO-A-3D.zip 3D Drawing]<br>
 
*[https://www.waveshare.com/w/upload/1/10/CM4-NANO-A-3D.zip 3D Drawing]<br>
  
=== Software ===
+
== Software ==
 
*[https://{{SERVERNAME}}/w/upload/f/f3/Rpiboot_setup.zip RPiboot_Setup]<br>
 
*[https://{{SERVERNAME}}/w/upload/f/f3/Rpiboot_setup.zip RPiboot_Setup]<br>
 
*[http://www.waveshare.com/w/upload/d/d7/Panasonic_SDFormatter.zip Panasonic SDFormatter]
 
*[http://www.waveshare.com/w/upload/d/d7/Panasonic_SDFormatter.zip Panasonic SDFormatter]
 
*[http://www.waveshare.com/w/upload/7/76/Win32DiskImager.zip Win32DiskImager]
 
*[http://www.waveshare.com/w/upload/7/76/Win32DiskImager.zip Win32DiskImager]
 
*[http://www.waveshare.com/w/upload/5/56/Putty.zip PuTTY]
 
*[http://www.waveshare.com/w/upload/5/56/Putty.zip PuTTY]
 
+
{{service00}}
</div>
 
<div class="tabbertab" title="FAQ">
 
 
 
=='''FAQ'''==
 
 
 
== <font color=red>'''Beware of knock-offs'''</font> ==
 
{{Beware of knock-offs}}
 
</div>
 
<div class="tabbertab" title="Support">
 
=='''Support'''==
 
{{Service02}}
 

Latest revision as of 07:17, 3 November 2022

CM4-NANO-A-4
CM4-NANO-A-4.jpg
{{{name2}}}

{{{name3}}}

{{{name4}}}

{{{name5}}}

Introduction

Description

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

Precautions

  1. DO NOT 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 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 the line dtoverlay=dwc2,dr_mode=host to the config.txt file.

Dimension

CM4-NANO-A-details-intro.jpg
Compute_Module 4 Core board
Compute Module 4 IO Board 5.png

Onboard Resources

CM4-NANO-A-details-size.jpg

Label Name Description
1 CM4 socket suitable for all variants of Compute Module 4
2 Power supply/burning interface 5V/2A power supply, can also be used as eMMC burning interface
3 Micro SD card interface For inserting a Micro SD card with the system, only for Lite version
4 CSI Interface Single MIPI CSI Camera Interface
5 USB 2.0 interface USB 2.0 interface, support various USB device insertion
6 40PIN GPIO interface Easy access to various HAT modules
7 PWR indicator Indicates the power status of the Raspberry Pi
8 ACT Indicator Indicates the working status of the Raspberry Pi
9 AMS1117-3.3V Supply voltage for CSI and 40Pin
10 BOOT ON: 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).
CM4 Burn EMMC 12.png

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.com/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

Resources

Official Manual

Schematic

3D document

Software

Support

If you require technical support, please go to the Support page and open a ticket.