[评测分享]
【米尔-STM32MP135入门级开发板 测评】1.环境搭建
#板卡评测
2404 人阅读
|
0 人回复
|
2023-09-09
TA的每日心情 | 慵懒 2025-10-12 19:48 |
|---|
签到天数: 232 天 连续签到: 1 天 [LV.7]常住居民III
状元
- 积分
- 5258
|
本帖最后由 az158 于 2023-9-10 11:37 编辑
作为ST最新推出的低端MPU,STM32MP135 处理器是一款基于单核 Cortex-A7 设计的高性价比,高可靠性工业级处理器;配备LCD-TFT 并行显示接口、16 位并行摄像头接口;处理器还支持双千兆以太网接口、2 个CANFD接口、2个 USB2.0 接口、8 个 UART 功能接口,适用于能源电力、工业控制、工业网关、工业HMI 等场景。
今天我们先来搭建一下开发环境。
一、安装交叉编译器
1.从官网下载自己需要的版本(https://developer.arm.com/downloads/-/gnu-a)
2.将下载好的gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf.tar.xz拷贝到自己需要的文件路径下
执行解压命令:
- <font size="4">sudo tar -vxf gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf.tar.xz</font>
复制代码
3.修改环境变量,打开/etc/profile 文件:
- <font size="4">sudo vim /etc/profile</font>
复制代码 在最后添加上交叉编译器路径
export PATH=$PATH:/usr/local/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/bin
添加完后,效果如下:
- <font size="4"># /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
- # and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).
- if [ "${PS1-}" ]; then
- if [ "${BASH-}" ] && [ "$BASH" != "/bin/sh" ]; then
- # The file bash.bashrc already sets the default PS1.
- # PS1='\h:\w\$ '
- if [ -f /etc/bash.bashrc ]; then
- . /etc/bash.bashrc
- fi
- else
- if [ "`id -u`" -eq 0 ]; then
- PS1='# '
- else
- PS1='$ '
- fi
- fi
- fi
- if [ -d /etc/profile.d ]; then
- for i in /etc/profile.d/*.sh; do
- if [ -r $i ]; then
- . $i
- fi
- done
- unset i
- fi
- export PATH=$PATH:/usr/local/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/bin</font>
复制代码
4.保存退出,重启 Ubuntu 系统,交叉编译器就安装完了。
5.验证一下安装是否成功。查询交叉编译器 GCC 版本:
arm-none-linux-gnueabihf-gcc -v
一切正常
二、安装STM32CudeProg
STM32CubeProgrammer 简称 STM32CubeProg,是一个适用于 STM32 系列产品的跨平台、多合一的程序烧写工具。支持 Windows、macOS 和 Linux 操作系统,软件运行时需要 Java 环境。支持通过 USB、ST-LINK、UART、OTA 多种方式来烧写固件。
下载解压完毕后,直接运行
- sudo ./SetupSTM32CubeProgrammer-2.12.0.linux
复制代码 安装即可
三、安装STM32CubeMX
可选,用于生成工程使用。
之前开发STM32单片机,电脑里就有安装,就不重复安装了。
|
|
|
|
|
|
|
|
|