1. Function Introduction
STM32CubeIDE is an STM32-based development tool officially launched by ST, which integrates the functions of TrueStudio and STM32CubeMX in one.
Main features:
1. Integrate the features of STM32CubeMX
- Support STM32 microcontroller and microprocessor selection
- Pin, clock, peripheral and middleware configuration
- Project creation and initialization code generation
2. Based on ECLIPSE / CDT, with the help of ECLIPSE plug-in function, provide GNU C / C ++ compiler for ARM tool chain, support GDB debugger
3. Other advanced debugging features
- CPU core, peripheral registers and memory window
- Real-time variable monitoring window
- System analysis and real-time tracking
- CPU error analysis tool
4. Support ST-Link and J-Link debugger
5. Support the project of importing TrueStudio and SW4STM32
6. Support multiple operating systems, including windows, linux and macOS, only support 64-bit
Second, the basic menu
From left to right:
-
File:
Mainly involves options for file operations. Including new, open, close, save, roll back, move, rename, refresh, print, import, export and other file operation options, as well as conversion file line separator, restart software, exit software and other operation options.
-
Edit
Including editing operations on file content. Such as undo, reverse undo, copy, cut, paste, delete, select all, block select, search, replace, word completion, code completion, etc.
-
Source
Prefer to shortcut operation of the code. Such as adding comments, uncommenting, correcting indentation, implementing methods, rewriting methods, etc.
-
Refactor
Refactoring related operations.
-
Navigate
Navigation operation. For example, jump to the next member, jump to the header file, display the file structure, etc.
-
Search
Search operation.
-
Project
Project related operations. Including open, close, compile, configure, clear and other operations.
-
Run
Debug related operations.
-
Window
Window related operations. Including operations such as new, open, and close.
-
Help
Provide some relevant help information options.
3. New STM32 project
General operation: File–> New–> STM32 Project, and finally select the MCU model, configure pins, clock, and related peripheral parameters according to the actual situation to generate initialization code.
Four, commonly used shortcut keys
hot key | Shortcut key description |
---|---|
Ctrl+/ | Comment line / uncomment line |
Ctrl+D | Delete row |
Ctrl+F | Search in file |
Ctrl+H | Search within project |
Ctrl+L | Jump to specified line |
Ctrl+O | Show current document outline |
Ctrl+W | Close the current file |
Ctrl+Tab | Switch between source and header files |
Alt+/ | Code completion |
Alt+↓(↑) | Line down (line up) |
Alt+←(→) | Switch file window |
F3 | Jump to the declaration |
F4 | View type hierarchy |
F11 | Start debugging |
F5 | Step into |
F6 | Step over |
F7 | Step back |
F8 | Keep running |