Nothing special, but it’s the day I decided to start talking about a recent project of mine—a little line follower.But as you can see, it is really late now(actually it is May 28 now), so, I just uploaded my blog files to github so I can more easily edit it with clion on my laptop. As you can see, it’s pretty convenient. Good night.zzZ
Hi, I’m Julian Tree, an undergraduate student majoring in Physics. As you can see, I’ve set up this site to… log something (apparently). But log what? Actually, since I have very broad interests, there are many things to log, e.g. Physics (my major… I think), Electronics, Computer Science, Embedded Development, Extreme Sports (I wish), Music… And, a very good friend of mine (also my ex-girlfriend…) told me that “ὁ δὲ ἀνεξέταστος βίος οὐ βιωτὸς ἀνθρώπῳ”. Alright, alright, she’s not Greek and that’s not what she said originally. Anyway,
The unexamined life is not worth living — Socrates
As a consequence, I may also write some thoughts of mine here.
Windows has filled up my C:\ ,again! I’ve compromised again and again,from 100GB,200GB to 300GB.BUT NOT THIS TIME. I decided to migrate all my development works to Linux.I choose Kali Linux,which I’m familiar with.btw,it’s UI really looks great. One of the development I did most often recently is stm32,so I built the environment once I install Kali on my laptop. Let’s see how to do it.
Begin
Make sure you have Linux installed on your computer.(yeah~ make sure!) You may want to upgrade your system first
mkdir CubeMX mv <zip package> CubeMX cd CubeMX unzip <zip package> rm <zip package> #in my occasion unzip stm32cubemx-lin-v6-17-0.zip
Then you will find a file named SetupSTM32CubeMX-x.x.x,run it
1 2 3
sudo ./SetupSTM32CubeMX-x.x.x #in my occasion sudo ./SetupSTM32CubeMX-6.17.0
If nothing went wrong,you will see a window,follow it you will finish the CubeMX installation.Run the STM32CubeMX under the directory you installed to start the software. btw,run the software like this is not convenient,you can add a .desktop on your desktop in order to run CubeMX by a double click on your desktop.refer this https://comate.baidu.com/zh/page/9kqwoz7ac6m
unzip <zip name> #in my occasion unzip st-stm32cubeclt_1.21.0_27995_20260219_1804_amd64.sh.zip
Run the .sh
1 2 3
bash <*.sh> #in my occasion bash st-stm32cubeclt_1.21.0_27995_20260219_1804_amd64.sh
You will need to enter some ‘y’ to accept something, then choose the directory you’d like to install(I used the default) Congratulations! Now you’ve installed all the tools you need.
Configuration
First run CLion,and start a new project.You can find STM32CubeMX from Embedded.Enter the places you store CubeMX and CubeMXclt. Then click Launch STM32CubeMX,finished configuration of stm32 chip. Now go to the page Project Manager,enter the Project Name and Location, AND choose Toolchain/IDE CMake. Generate Code! Go back to CLion, the first time, it will ask you to choose the toolchain.choose the directory as picture below, all you need are in folder cubeMXctl Then configurate CMake Tips: make sure you add “–preset=Debug” in CMake options.
Enjoy your development!
Now you have a stm32 HAL development environment under Linux!