学习搭建STM32MP135F-DK开发板交叉编译环境。 一、安装软件包 " X" G" X6 m0 I . Y( `, T/ x5 z- c; e 1.1、root@ubuntu:~# sudo apt-get update 1.2、root@ubuntu:~# sudo apt-get install gawk wget git diffstat unzip texinfo gcc-multilib chrpath socat cpio python3 python3-pip python3-pexpect' g2 V& _' q# s% L( J* d+ ~9 c 1.3、root@ubuntu:~# sudo apt-get install libssl-dev libgmp-dev libmpc-dev lz4 zstd8 @; Y0 T& {+ {' s/ \. P# y 1.4、root@ubuntu:~# sudo apt-get install build-essential libncurses-dev libyaml-dev libssl-dev 1.5、root@ubuntu:~# sudo apt-get install coreutils bsdmainutils sed curl bc lrzsz corkscrew cvs subversion mercurial nfs-common nfs-kernel-server libarchive-zip-perl dos2unix texi2html libxml2-utils * k' j( o; Y& B+ V+ E7 V7 C 二、下载SDK2 K0 \- A% U6 f7 B4 V! B9 a $ `# a" J8 _) |; C8 A1 M 官网下载地址:https://www.st.com/en/embedded-software/stm32mp1dev.html . [$ G9 J6 e; M( X4 } 7 e/ G) R4 C( z" K$ ]4 j . t# ~' N9 o9 ~ 三、安装SDK ! ?4 \7 w7 z( Z) m 3.1、复制SDK到ubuntu系统,并解压 3 W1 @+ S, ~0 L0 D 3.2、安装 3.3、设置环境 1 K! p" J. U4 d5 Y1 r root@ubuntu:~# source /opt/st/stm32mp1/4.2.1-openstlinux-6.1-yocto-mickledore-mp1-v23.06.21/environment-setup-cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi4 x: s1 j! O! R9 V. D. }0 K 3.4、测试编译环境, {7 V) n* ]' F ~1 S$ l+ L 四、编译应用程序 4.1、hello.c
4 {+ f$ x- l$ z) c 4.2、编译程序/ |3 C @1 ~- x. ? : y. M+ T) E$ l1 A 4.3、复制文件到开发板 5 N" v' Y. ~; H6 g; q 五、测试 + j% s$ s" ]' D ; K- |6 p7 ^2 ?/ o( v, J' a0 t 在开发板上测试hello1 k* B) k& l+ A" s, y 1 r- b3 x2 P2 ?: g; o% \ |
可以分享个例程 b+ w: q& Q6 F2 B |
拷打cubemx【001】——艰难的选型路
linux eclipse编译后自动更新程序
eclipse编写stm32mp135配置
eclipse编写stm32mp135程序
STM32MP135F-DK 开箱测试
openSTlinux系统搭建过程分享
《STM32MPU安全启动》学习笔记之uboot如何校验kernel和如何使能校验
《STM32MPU安全启动》学习笔记 1.0 介绍
在 STM32MP13x 系列 MPU 上裸跑应用程序
聊聊 STM32 MPU OpenSTLinux 实时扩展包 X-LINUX-RT