从零开始打造 OpenSTLinux 6.6 Yocto 系统 - STM32MP2(基于STM32CubeMX)(二)

STM32MPU Developer Package

下载source code(从官网下载) - https://wiki.st.com/stm32mpu/wiki/STM32MPU_Developer_Package

下载以下两个压缩包

复制代码
SDK-x86_64-stm32mp2-openstlinux-6.6-yocto-scarthgap-mpu-v25.06.11.tar.gz
en.SOURCES-stm32mp-openstlinux-6.6-yocto-scarthgap-mpu-v25.08.27.tar.gz

安装SDK

复制代码
#解压缩SDK
tar xvf SDK-x86_64-stm32mp2-openstlinux-6.6-yocto-scarthgap-mpu-v25.06.11.tar.gz

#增加执行权限
chmod +x stm32mp2-openstlinux-6.6-yocto-scarthgap-mpu-v25.06.11/sdk/st-image-weston-openstlinux-weston-stm32mp2.rootfs-x86_64-toolchain-5.0.8-openstlinux-6.6-yocto-scarthgap-mpu-v25.06.11.sh

#安装SDK到默认目录
./stm32mp2-openstlinux-6.6-yocto-scarthgap-mpu-v25.06.11/sdk/st-image-weston-openstlinux-weston-stm32mp2.rootfs-x86_64-toolchain-5.0.8-openstlinux-6.6-yocto-scarthgap-mpu-v25.06.11.sh

#安装SDK到指定目录
./stm32mp2-openstlinux-6.6-yocto-scarthgap-mpu-v25.06.11/sdk/st-image-weston-openstlinux-weston-stm32mp2.rootfs-x86_64-toolchain-5.0.8-openstlinux-6.6-yocto-scarthgap-mpu-v25.06.11.sh -d <working directory absolute path>/Developer-Package/SDK

声明SDK

复制代码
#安装完成后做软链接
ln -sf /opt/st/stm32mp2/5.0.8-openstlinux-6.6-yocto-scarthgap-mpu-v25.06.11/environment-setup-cortexa35-ostl-linux ~/sdk6.6_mp2

source ~/sdk6.6_mp2

echo $ARCH
arm64

echo $CROSS_COMPILE
aarch64-ostl-linux-

$CC --version
aarch64-ostl-linux-gcc (GCC) 13.3.0
Copyright (C) 2023 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

echo $OECORE_SDK_VERSION
5.0.8-openstlinux-6.6-yocto-scarthgap-mpu-v25.06.11

安装OpenSTLinux BSP包

复制代码
#解压源码
tar xvf en.SOURCES-stm32mp-openstlinux-6.6-yocto-scarthgap-mpu-v25.08.27.tar.gz

参考链接

https://wiki.st.com/stm32mpu/wiki/STM32MPU_Developer_Package

相关推荐
硅农深芯1 天前
什么时候要用开漏输出(open drain output)?
单片机·嵌入式硬件·gpio·开漏输出·open drain
电子工程师-C511 天前
基于51单片机的家居环境监测系统
单片机·嵌入式硬件·51单片机
Big_潘大师1 天前
十轴IMU模块-AHRS角度姿态、加速度计、磁力计、气压陀螺仪传感器
stm32·单片机·嵌入式硬件·arduino·陀螺仪
ghomeway1 天前
keil使用虚拟的调试串口给调试助手发送数据
单片机·嵌入式硬件
Jason_zhao_MR1 天前
米尔RK3506核心板SDK重磅升级,解锁三核A7实时控制新架构
linux·嵌入式硬件·物联网·架构·嵌入式·嵌入式实时数据库
小痞同学1 天前
stm32跑马灯实验
stm32·单片机·嵌入式硬件
宇宙realman_9991 天前
Flash2833x_API的cmd文件解析
单片机
易水寒陈1 天前
定时器计数溢出引发的bug
stm32·单片机
染予1 天前
串口发送之中断方式
单片机·嵌入式硬件
TangDuoduo00051 天前
【I2C协议】
stm32·单片机