1、在Linux虚拟机上创建arm交叉编译环境
# sudo apt-get update
# sudo apt-get upgrade
# sudo apt-get install build-essential git
# sudo apt-get install gcc-arm-none-eabi
2、把FreeRTOS例程clone到虚拟机并编译例程
# git clone
https://github.com/cbhust/STM32F429_Discovery_FreeRTOS_9.git
![](https://images2017.cnblogs.com/blog/821762/201709/821762-20170915231521282-82227682.png)
# cd STM32F429_Discovery_FreeRTOS_9/Projects/Hello_RTOS/
# make
生成hello_rtos.hex文件