7595 views|4 replies

1w

Posts

203

Resources
The OP
 

STM32 free development environment which one should I use [ST official application notes] [Copy link]

Notes preview: Foreword According to the official homepage of ST (http://www.st.com/en/development-tools/stm32-ides.html), there are as many as 20 IDEs that provide development support for STM32. Among them, the most popular ones are IAR and KEIL, which require payment; in particular, users of STM32F0 and STM32L0 can use KEIL for free without worrying about the size limit of compiled code (STM32F0 and STM32L0 free registration code http://www2.keil.com/stmicroelectronics-stm32/mdk). So, besides the paid IAR/KEIL, is there an STM32 development environment that is free and easy to use, with a user experience close to IAR/KEIL, and can be used for the entire STM32 series development but not limited by the code size? The integrated development environments SW4STM32 and TrueSTUDIO based on Gcc and Eclipse introduced in this article can meet the above requirements and have the advantage of being cross-platform. SW4STM32 Introduction SW4STM32 is a complete integrated development environment based on the Eclipse graphical interface launched by AC6. SW4STM32 uses a complete compilation and debugging tool chain based on Gcc, which is completely free and has no size limit. You can use its graphical interface to configure the source code path and Gcc compilation options, quickly and conveniently jump and browse in the source code, automatically complete and view parameters when writing code, etc. SW4STM32 supports importing project files generated by STM32CubeMX, and can be compiled directly without modification. SW4STM32 has built-in support for ST-Link through OpenOCD, and you can use the graphical interface to debug the source code step by step. SW4STM32 supports the following platforms:  Windows  Linux  Mac OS Installation Users need to register for free at http://www.openstm32.org/HomePage, and then they can download the complete installation package. The complete installation package is less than 500M. Once the installation package is downloaded, the installation is not difficult, just click OK all the way. Import the project file generated by CubeMX for compilation STM32CubeMX can directly generate project files that support SW4STM32. When generating code, select SW4STM32 as the IDE. After the project is generated, you can open SW4STM32 (C:\Ac6\SystemWorkbench\eclipse.exe) to start importing the STM32 project. First, you will be prompted to select the Workspace. Users who have not used Eclipse can follow the default processing. Then there is a welcome page, which can be closed directly. Select File->Open Projects From File System, and the following project import interface will appear. After the project is successfully imported, you can start compiling. There is only one project here, so you can select Project->Build All or Build Project. SW4STM32 will automatically generate a Makefile for compilation. After the compilation is successful, you can see the following output on the Console graphical interface: Generating binary and Printing size information: arm-none-eabi-objcopy -O binary "TestSW4STM32.elf" "TestSW4STM32.bin" arm-none-eabi-size "TestSW4STM32.elf" text data bss dec hex filename 4688 24 1568 6280 1888 TestSW4STM32.elf 11:17:54 Build Finished (took 38s.982ms) Debugging Users of SW4STM32 do not need to worry about the need for tedious Eclipse debugging configuration, because the integrated environment has already done the preliminary work. Select the project on the left Project Explorer (if you do not select it, the debug menu will not be visible), and then go to Run->Debug As to see the debug start menu. SW4STM32 will automatically switch to the debug view. You can press F5 or F6 to debug in a single step. You can also view the memory. When you move the mouse over a variable, the variable value and the change in the single step will be automatically displayed. TrueSTUDIO Introduction TrueSTUDIO is a complete integrated development environment based on the Eclipse graphical interface launched by Atollic. Like SW4STM32, it uses a complete compilation and debugging tool chain based on Gcc. TrueSTUDIO provides two versions. TrueSTUDIO Lite is completely free and has no size limit; TrueSTUDIO Pro requires authorization, but you can get more advanced features, including code analysis and debugging. Whether in the free version with no size limit or the version that requires authorization, you can use its graphical interface to configure the source code path and Gcc compilation options, use the Eclipse graphical interface to quickly and conveniently jump and browse in the source code, and automatically complete and view parameters when writing code. SW4STM32 supports importing project files generated by STM32CubeMX, and compiles directly without modification. TrueSTUDIO has built-in support for ST-Link, and you can use the graphical interface to debug the source code step by step. TrueSTUDIO supports the following platforms:  Windows  Linux Installation Users need to visit https://atollic.com/resources/download/, select Windows or Linux and then register their personal information to download the required version. The download of the complete version is about 900MB in size. Installation is not difficult. Import the project file generated by CubeMX for compilation STM32CubeMX can directly generate project files that support TrueSTUDIO. When generating code, please select TrueSTUDIO as the IDE. After the file is generated, you can find Atollic from the Windows Start menu and open TrueSTUDIO for ARM 8.1.0 Start importing the STM32 project. First, you will be prompted to select a Workspace. Users who have not used Eclipse can follow the default. Then there is a welcome page, which can be closed directly. Select File->Open Projects From File System, and the following project import interface will appear. After the project is successfully imported, you can start compiling. There is only one project here, so you can select Project->Build All or Build Project. TrueSTUDIO will automatically compile. After the compilation is successful, you can see the following output on the Console graphical interface: Generate build reports... Print size information text data bss dec hex filename 4104 12 1568 5684 1634 TestTrueSTUDIO.elf Print size information done Generate listing file Output sent to: TestTrueSTUDIO.list Generate listing file done Generate build reports done 14:00:31 Build Finished (took 16s.705ms) Debugging Users of TrueSTUDIO do not need to worry about the need to perform tedious Eclipse debugging configuration, because the integrated environment has already done the preliminary work. Select the project on the Project Explorer on the left (if you do not select it, the debug menu will not be visible), and then go to Run->Debug As to see the debug start menu. TrueSTUDIO will automatically switch to the debug view. You can press F5 or F6 for single-step debugging, or view the memory. At the same time, moving the mouse over a variable will automatically display the variable's value. Conclusion The integrated development environment SW4STM32 and TrueSTUDIO based on Gcc and Eclipse are close to IAR/KEIL which requires license fees in terms of user-friendliness and development efficiency. For professional developers who need to use Gcc to develop STM32, and individual/student users who study STM32, SW4STM32 and TrueSTUDIO can be considered. Download: STM32免费开发环境该用谁.pdf (578.56 KB, downloads: 30)




























This post is from stm32/stm8
Add and join groups EEWorld service account EEWorld subscription account Automotive development circle

Latest reply

Good.   Details Published on 2017-11-8 16:55
Personal signature

玩板看这里:

https://bbs.eeworld.com.cn/elecplay.html

EEWorld测评频道众多好板等你来玩,还可以来频道许愿树许愿说说你想要玩的板子,我们都在努力为大家实现!

 

113

Posts

0

Resources
2
 
Very good summary post, thumbs up
This post is from stm32/stm8
 
 

1972

Posts

0

Resources
3
 
Keil is used more often
This post is from stm32/stm8
 
 

2774

Posts

8

Resources
4
 
Anyone who has tried this knows it! It won’t go down, it won’t go down, it won’t go down…
This post is from stm32/stm8
 
 
 

6069

Posts

4

Resources
5
 
Good.
This post is from stm32/stm8
 
 
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list