This article introduces M5Stack's integrated Linux industrial control host CoreMP135, which is based on the STM32MP135DAE7 chip, integrates a single-core ARM Cortex-A7 processor and 4Gb DDR3L SDRAM memory, and has rich functional interfaces. It is equipped with a touch screen, speaker and power management chip, and supports a variety of installation scenarios. In terms of application development, M5Stack_Linux_Libs provides assistance, which can be cross-compiled, uploaded and run in Linux and Windows. The article introduces the steps to use the CoreMP135 development framework, including installing related dependencies, downloading source code and cross-compilation tool chains, compiling case programs, and pushing programs. Related product information is also listed.
In today's digital age, industrial control hosts, as the core equipment of industrial automation, play a vital role. Today, we would like to introduce to you a
powerful integrated Linux industrial control host from M5Stack - CoreMP135
.
CoreMP135 is built on the STM32MP135DAE7 chip, integrating a single-core ARM Cortex-A7 processor with a main frequency of up to 1GHz and equipped with 4Gb DDR3L SDRAM running memory, providing a solid foundation for efficient data processing and operation.
In terms of interfaces, CoreMP135 is rich in functions. It has 2 GbE interfaces, ensuring high-speed and stable network connection; 1 HD video output interface, capable of presenting clear images and videos; 2 USB2.0-A interfaces and 1 USB-C interface (supporting OTG and power supply), meeting the connection needs of various peripherals; MicroSD card slot provides convenience for data storage; 2 CAN FD interfaces and 1 PWR485 (9-24V power input + RS485) interface, enabling it to communicate with a variety of industrial equipment; 2 Grove (I2C & UART) interfaces make it possible to connect sensors and other peripherals.
Buy one get one free final countdown! Go to the push now
[Buy one get one free, expires on Sunday] Super integrated Linux industrial control host is waiting for you!
Learn more ~
Next, Li Guoxuan, an application development engineer at M5Stack, will tell you what are the outstanding features of this Linux industrial control host CoreMP135.
Speakers:
Li Guoxuan
M5Stack Senior Embedded System Engineer (Linux)
The system is the soul of all equipment, and my task is to give life to the equipment.
Let's take a look at
the highlights of the product in terms of human-computer interaction
. CoreMP135 is equipped with a 2.0-inch IPS capacitive touch screen and a 1W speaker (16 bits I2S driver). It uses the AXP2101 power management chip, the overall design is low power consumption, built-in RTC (BM8563) timed wake-up-sleep function, and supports rechargeable battery power supply. The device is equipped with a DC power socket and supports external DC12V@2A DC power supply. The host comes with a MicroSD card pre-installed with the Debian system, which can be used immediately after powering on.
CoreMP135 is suitable for a variety of installation scenarios. The bottom of the device is equipped with a DIN rail base plate for easy wall mounting and screw fixing. It is
widely used in advanced industrial automation, smart home, multimedia entertainment equipment, industrial IoT edge gateways, and robot motion control centers.
在应用开发方面,有
M5Stack_Linux_Libs
为CoreMP135开发提供强大的助力,
M5Stack_Linux_libs能在Linux中和windows中对CoreMP135进行交叉编译,上传,甚至运行,
这让我们不必为切换系统而发愁。同時M5Stack_Linux_libs有着丰富的Demo,每一个场景,每一个应用方向都有一个应用示例。
Next, let’s take a look at how to use the CoreMP135 development framework.
Download and install Python according to the tutorial instructions. When installing Python, check the Add pyhton.exe to PATH option and add it to the environment variable.
Copy the Python dependency package installation command. Press WIN+R on the keyboard, enter the CMD command in the pop-up window, open the command line terminal, paste the command, and start the installation.
Download the development framework source code, download the source code by cloning or compressing it,
Download the cross-compilation toolchain
Compile the example program:
Open the directory of the example program, open the command line interface, and enter
the
scons menuconfig
command to compile and configure. (Note: If Windows users cannot move the cursor normally when opening the configuration interface in the cmd terminal, please use PowerShell to access it)
cd
M5Stack_Linux_Libs/examples/lcd_hello_world
scons menuconfig
Press Enter to enter Toolchain Configuration
Press the Enter key to open the configuration, fill in the absolute path of the cross-compilation toolchain and the prefix of the toolchain, and press the Esc key to exit and save.
In the current case project, enter the following command to compile. After the compilation is completed, the executable file will be output to the dist directory of the current path.
scons -j4
Push Case Program
Through the program push script in the development framework, the compiled program can be pushed to the user directory of CoreMP135, which is convenient for debugging and running, thus avoiding the tedious operation of manually copying files to the SD card every time. Before that, we need to connect CoreMP135 to the same network segment as the current computer, and then check the device IP through the router background or use
the
ifconfig
command after logging in through the serial port connection to obtain the IP address of the current device.
Serial port connection
The USB of CoreMP135 will be enabled as the system log port by default. Users can use this interface to connect to the computer and access it using terminal tools such as putty or MobaXterm. The default baud rate is
115200bps
. The following operations are based on putty. Please click the link below to download the putty installation package and log in according to the operation instructions.
SSH Access
1. Connect the device to the same network segment as the current computer via an Ethernet cable. The computer can be remotely accessed through the command line ssh command. The default user name is
root
and the password is
root
.
In the new version of Debian image, the root login permission is disabled by default. Please log in to the device through the serial port before use and use
the
useradd
command to create a new user. Please also enter the configuration file
setup.ini
used to push program configuration
according to the actual user information.
ssh root@192.168.2.212
The setup.ini
configuration file
in the case project directory
can be used to configure the device IP address and directory for remote push, and modify it to the actual device IP address and user information.
[ssh]
local_file_path = dist
remote_file_path = /root
remote_host = 192.168.2.212
remote_port = 22
username = root
password = root
ifconfig
4. And execute the following
scons push
command to push.
scons push
#log
#scons: Reading SConscript files ...
#...
#push dist\lcd_hello_world /root/lcd_hello_world
success!
Go back to the command line terminal of CoreMP135, enter the directory where the program was just pushed, find the executable file sent, grant execution permissions to the file, and then run it.
chmod +x lcd_hello_world
./lcd_hello_world
Today I will share with you an introduction to the CoreMP135 hardware, and then a simple demonstration of the programming platform, which you can try.
In short, M5STACK's CoreMP135 is an all-in-one Linux industrial control host with powerful functions and excellent performance. It has demonstrated a very high level in both hardware configuration and software development support. I believe it will bring new experiences and opportunities to your industrial automation and intelligent projects.
Related product information:
Let me know you
're
watching