Demonstration of Debugging Tools in STM32CubeIDE

Demonstration of Debugging Tools in STM32CubeIDE

STMicroelectronics provides a powerful integrated debugging tool based on GCC, called STM32CubeIDE, for all STM32 users free of charge. This article briefly demonstrates several debugging tools and features supported by STM32CubeIDE.1. Use Live Expression to display variable data in real-time;2. Use SWV‘s SWO feature to implement printf output;3. Use SWV to achieve real-time tracking and … Read more

Common Issues When Getting Started with STM32CubeIDE

Common Issues When Getting Started with STM32CubeIDE

ST has provided a free integrated development tool STM32CubeIDE for many STM32 users for some time now. As the saying goes, the beginning is always the hardest. Here are a few common issues regarding its initial use that I would like to share. 【Note: Images in this article can be enlarged for viewing on mobile … Read more

Detailed Guide on Using GCC to Compile with MDK Keil

Detailed Guide on Using GCC to Compile with MDK Keil

Follow, star our public account to access wonderful content directly Source: https://blog.csdn.net/qq_32348883/article/details/123894312 Compiled by: Technology Makes Dreams Greater | Li Xiaoyao Introduction Keil MDK-ARM can be used with the GNU Compiler Collection (GCC). GCC is an open-source development tool with numerous contributors, widely available and supporting many devices. Keil defaults to using ARMCC to compile … Read more

C Language: The Relationship Between clangd, Clang, and GCC

C Language: The Relationship Between clangd, Clang, and GCC

“ This article discusses the relationship between clangd, Clang, and GCC through answers to various questions.” The Relationship Between clangd, Clang, and GCC Discuss the JIT compilation technology based on Intermediate Representation (IR), introducing the LLVM compilation chain/Clang frontend (compiler project) which is also based on IR. As a compiler striving to replace GNU/GCC, compare … Read more

[Ubuntu][GCC] Downloading and Compiling GCC Source Code

[Ubuntu][GCC] Downloading and Compiling GCC Source Code

1. Download the GCC installation package. You can search for the official address to download it. If you cannot download it, you can try selecting a required GCC version from gitee.com/FIRC/gcc-cn-mirror. Note that if you are downloading the source code from gcc-cn-mirror, you can skip steps 2 and 3 and proceed directly to step 4 … Read more

Summary of Debugging Techniques and Macro Usage in Embedded C Programming

Summary of Debugging Techniques and Macro Usage in Embedded C Programming

1. Debugging Related Macros When compiling programs with gcc on Linux, there are some special syntax rules for debugging statements. During the gcc compilation process, certain macros are generated that can be used to print information about the current source file, including the current file, the currently running function, and the current line of code. … Read more

Configuring C/C++ Development Environment for VSCode with GCC and MinGW (Windows) (Part 1)

Configuring C/C++ Development Environment for VSCode with GCC and MinGW (Windows) (Part 1)

0. Introduction This article references the official Visual Studio Code documentation on Using GCC with MinGW, but provides a more detailed analysis of the parameters in the four configuration files located in the <span>.vscode</span> folder of the project directory: <span>c_cpp_properties.json</span>, <span>launch.json</span>, <span>settings.json</span>, and <span>tasks.json</span>. It explains how to configure these four files to achieve the … Read more

Configuring C/C++ Development Environment for VSCode with GCC and MinGW (Windows) – Part 2

Configuring C/C++ Development Environment for VSCode with GCC and MinGW (Windows) - Part 2

4. Understanding tasks.json When running the program for the first time, the C++ extension will create a <span>tasks.json</span> file, which can be found in the project’s <span>.vscode</span> folder. The purpose of <span>tasks.json</span> is to define tasks such as compilation, building, and cleaning, which can be triggered by <span>Ctrl+Shift+B</span>. The automatically generated <span>tasks.json</span> file should look … Read more

The Most Comprehensive Guide to Setting Up a C Language Development Environment Across All Platforms

The Most Comprehensive Guide to Setting Up a C Language Development Environment Across All Platforms

“From today on, study hard and make progress every day” Repetition is the best method for memory; spend one minute each day to remember the basics of C language. “C Language Essential Knowledge Points for Beginners Series”“ 03. The Most Comprehensive Guide to Setting Up a C Language Development Environment Across All Platforms 1. Why … Read more

The Most Comprehensive Guide to Setting Up a C Language Development Environment Across All Platforms

The Most Comprehensive Guide to Setting Up a C Language Development Environment Across All Platforms

“From today on, study hard and make progress every day” Repetition is the best method for memory; spend one minute each day to remember the basics of C language. “C Language Essential Knowledge Points for Beginners Series”“ 03. The Most Comprehensive Guide to Setting Up a C Language Development Environment Across All Platforms 1. Why … Read more