This project can cross-compiled on Ubuntu, MacOS, Windows. For more infomation about how to compile and build mdk project, you can go though RT-Thread user Manual.
sudo apt-get install python2.7 scons
brew install python scons
Download & install python2.7 and scons
sudo add-apt-repository ppa:terry.guo/gcc-arm-embedded
sudo apt-get update
sudo apt-get install gcc-arm-none-eabi
brew install arm-none-eabi-gcc
Download & install arm-none-eabi-gcc
git clone https://github.com/RT-Thread/rt-thread.git
git clone https://github.com/WRTnode/wrtnode2r_stm32.git
- Change EXEC_PATH in rtconfig.py as your cross compile tool path.
- Change RTT_ROOT in SConstruct as your RT-thread root path.
scons
scons -c
If you want to use scons to build MDK project, make sure you did not open template.uvprojx file.
-
Open CMD window and run
scons --target=mdk5 -s
-
After that, you will find new mdk project file project.uvprojx.
-
Open it, start compile and debug.