Follow+Star Public Account Number, don’t miss exciting content

Material Source | ST, MYiR Official Website
Last month, STMicroelectronics launched the new generation of 64-bit Cortex-A35 core, with a frequency of up to 1.5GHz STM32MP2x series microprocessors (MPU), which has taken the STM32MP series processors to a new level.
Recently, I received a set of MYiR’s STM32MP135 core board and development board, and for the first time, I experienced the STM32MPx processor, and it felt pretty good.

STM32MP135 is different from ordinary STM32 microcontrollers in terms of performance, price, application scenarios, etc. At the same time, STM32MP135 is not limited to bare metal or RTOS, but is positioned on a higher Linux operating system platform.
Next, I will explain the powerful performance of STM32MP135 and related content such as getting started based on the 【MYiR STM32MP135 core board and development board】.
Hardware Platform Introduction
There are many development boards for STM32MP135, here I will take MYiR’s 【MYiR STM32MP135 core board and development board】 as an example to explain.
The STM32MP135 core adopts Cortex-A7, with a frequency of up to 1.0GHz, belonging to entry-level MPU, with super high cost performance.
https://www.st.com/en/microcontrollers-microprocessors/stm32mp135.html

2、MYiR STM32MP135 Core Board
MYiR STM32MP135 core board is controlled by the STM32MP135 processor, equipped with DDR3L memory, standard configuration of 4GB eMMC / 256MB Nand FLASH, and 32KB EEPROM, interface type is stamp hole 148PIN, size 37mm x 39mm.
Application Direction: Charging piles, battery management, energy management directions.
MYiR STM32MP135 core board introduction link:
https://www.myir.cn/shows/110/57.html

3、MYiR STM32MP135 Baseboard
The peripherals and interfaces of MYiR STM32MP135 baseboard are relatively rich and diverse.
Here is the official information:

As early as 2019, ST launched the STM32MP1 series MPU, whose powerful performance attracted a lot of attention. However, due to the lack of supporting development materials and a complete ecosystem at that time, it made it difficult for many people to get started with learning.
MYiR designed this MYiR STM32MP135 development board considering this issue, and launched supporting development materials at the same time as the development board.

MYiR STM32MP135 development board supporting development materials link:
http://down.myir-tech.com/MYD-YF13X/
STM32MP1 chip data can refer to ST official link:
https://www.st.com/en/microcontrollers-microprocessors/stm32mp1-series.html
(Tip: Public accounts do not support external links, please copy the link to the browser to open)
Running Linux on STM32MP135 (MYD-YF13X) platform is slightly more complicated than running RTOS on ordinary STM32, requiring certain relevant basic knowledge.
Of course, MYiR also provides supporting step-by-step tutorials for beginners, allowing you to get started quickly.
0、Development Introduction
MYD-YF13X is equipped with an operating system based on Linux kernel version 5.15.67, providing rich system resources and other software resources.
There are many open-source system construction frameworks on the Linux system platform, and MYiR core board is based on Yocto for building and customizing development.
1、Development Environment
-
Linux Development Host: Debian, Ubuntu, RHEL, etc.
-
ST Supporting Tools: STM32CubeProg, STM32CubeMX
-
Install MYiR Customized SDK
2、Build Development Board Image
You can get the source code from the link provided by MYiR.
http://down.myir-tech.com/MYD-YF13X/
You can also get the source code online from github.
PC$ mkdir $HOME/githubPC$ cd $HOME/githubPC$ repo init -u https://github.com/MYiR-Dev/myir-st-manifest.git --no-clone-bundle --depth=1 -m myir-stm32mp1-kirkstone.xml -b develop-yf13xPC$ repo sync
Step 2: Quickly Compile Image
Here we need to use the envsetup.sh script provided by MYiR to set environment variables
PC$: DISTRO=openstlinux-weston MACHINE=myd-yf13x-emmc source layers/meta-myir-st/scripts/envsetup.sh
Then, build the myir-image-full image. Note that to build different system images, you need to use different bitbake command parameters(specific command parameters can refer to the provided documentation).
MYiR has provided a relatively complete SDK installation package, which users can use directly.
Here we use ST’s official STM32CubeProg tool for burning, which can be done on both Windows and Linux platforms.
Tip: The burning time may be a bit long, please be patient.
Of course, if you find it slow, you can also use SD card startup (burning).
4、Modify Board Support Package
This section is relatively important and also relatively difficult, including the compilation and updating of U-boot, kernel, etc.
a. Onboard TF-A Compilation and Update
PC$ cd /home/workPC$ tar -jxvf MYiR-STM32-tf-a.tar.bz2PC$ cd MYiR-STM32-tf-a
Configure and compile the source code: Load SDK environment variables into the current shell:
PC$ source /opt/st/myir-yf13x/4.0.4-snapshot/environment-setup-cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi
Enter the source code directory:
PC$ cd myir-st-arm-trusted-firmware
Configure and compile the source code:
PC$ make -f $PWD/../Makefile.sdk all
The above is to compile TF-A in an independent cross-compilation environment, and TF-A can also be compiled in the Yocto project.
Update TF-A: After compilation, burn the TF-A image into the Micro SD card, then use the dd command to burn the image to the specified partition of the SD card:
PC$: dd if=tf-a-myb-stm32mp135x-512m-sdcard.stm32 of=/dev/mmcblk0p1 conv=fdatasyncPC$: dd if=tf-a-myb-stm32mp135x-512m-sdcard.stm32 of=/dev/mmcblk0p2 conv=fdatasync
b. Onboard u-boot Compilation and Update
Compile u-boot in an independent cross-compilation environment, similar to the above compilation of TF-A, it is also similar to the conventional compilation u-boot method.
c. Onboard Kernel Compilation and Update
Load SDK environment variables:
PC$ source /opt/st/myir-yf13x/4.0.4-snapshot/environment-setup-cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi
PC$ make ARCH=arm O="$PWD/../build" myir_stm32mp135x_defconfig
PC$ make ARCH=arm uImage vmlinux dtbs LOADADDR=0xC2000040 O="$PWD/../build"PC$ make ARCH=arm modules O="$PWD/../build"
This configuration may be relatively complex, and the compilation time is also relatively long, specific can refer to the official manual.
5、Adapt Hardware Platform
This section is about the adaptation of the chip’s underlying related (drivers), including creating device trees, using STM32CubeMX to configure GPIO, peripheral clocks, etc., and configuring the pins you use.
Then, you can add some of your applications. At this point, you have basically reached the entry level.
If you want to advance from STM32 microcontroller bare metal or RTOS to Linux, this STM32MP135 【MYC-YF13X development board】 is a good choice. At the same time, it will also use some familiar ecological tools.
Finally, insert a small advertisement:
If your company uses STM32MP135 processors to develop products, you are welcome to purchase this MYC-YF13X core module:

Here is the introduction to MYiR STM32MP135 core board:
https://www.myir.cn/shows/110/57.html
Tip: Public accounts do not support external links, please copy the link to the browser to open, or click 【Read Original】 at the end to learn more.
MYiR Electronics, a high-tech enterprise focusing on embedded processor module design and development, is a leading embedded processor module manufacturer.MYiR Electronics has more than 10 years of R&D experience in the embedded processor field, providing customers with CPU modules based on ARM architecture, FPGA architecture, charging control systems, and other products and services; providing customized solutions and OEM services for customers in industries such as smart medical, smart transportation, smart security, IoT, edge computing, industrial gateways, and artificial intelligence. The company helps customers accelerate their product launch process through professional and efficient services, and has served more than 10,000 enterprise customers in the industry.
Leading Embedded Processor Module Manufacturer
☞ Regularly share product information and dry goods
☞ Release the latest news from MYiR as soon as possible
Long press the QR code to follow us
For more information, please contact us
Shenzhen Headquarters Phone:
0755-25622735 17324413392
Address: 6th Floor, Building 2, Yunli Smart Park, Bantian, Shenzhen