DistortOS: A New C++ Real-Time Operating System for Embedded Development

DistortOS: A New C++ Real-Time Operating System for Embedded Development

In the field of embedded system development, real-time operating systems (RTOS) are crucial for ensuring that devices respond to events in a timely manner. With the rapid development of the Internet of Things and edge computing, developers need an efficient RTOS that meets modern demands. DistortOS, as an open-source, object-oriented C++ real-time operating system, promises … Read more

Cross-Compiling C and C++ with CMake

Cross-Compiling C and C++ with CMake

Embedded development, especially in SOA (Service Oriented Architecture), often encounters a scenario where part of the business functionality is developed in C and is relatively mature, and there is a desire to reuse it directly. However, the underlying services obtained by the business layer are written in C++. If both need to be placed in … Read more

Comparison Analysis of Build Tools: XMake and CMake

Comparison Analysis of Build Tools: XMake and CMake

Syntax Comparison Empty Project XMake target("test") set_kind("binary") add_files("src/main.c") CMake add_executable(test "") target_sources(test PRIVATE src/main.c) Adding Source Files XMake XMake supports wildcard matching to add a batch of source files. *.c matches all files in the current directory, while **.c matches all files in recursive directories. This method saves time as there’s no need to modify … Read more

GCC Attributes Worth Learning

GCC Attributes Worth Learning

If you often look at the Linux source code, you must have seen the attribute attribute, which appears many times in Linux. The attribute is an extension of gcc and does not belong to standard C language. Using attributes can modify the properties of variables, functions, or data types, and there are many attributes, some … Read more

What You Should Know About KEIL

What You Should Know About KEIL

▼Click the card below to follow the public account ▼ Since we started working with microcontrollers, we have known about a software called KEIL. When developing microcontrollers, we use C language or assembly language. We know that neither of these languages can be directly loaded into the microcontroller. Regardless of whether it executes or not, … Read more

Can Keil Use GCC Compiler?

Can Keil Use GCC Compiler?

Follow+Star Public Account, don’t miss exciting content Author | strongerHuang WeChat Public Account | strongerHuang Recently, I have received some questions from readers: Can Keil use GCC to compile code? Can Keil use other compilers? When you use other GUN toolchains for compilation, you may encounter errors like the following: — Error: can't execute 'as'— … Read more

Setting Up STM32 Development Environment in VSCode

Setting Up STM32 Development Environment in VSCode

Follow+Star Public Number, don’t miss wonderful content Author | Nuan Nuan’s Dilemma Source | CSDN As we all know, Keil is a paid software. Although it can be used with a workaround, many companies are still a bit hesitant, and many readers may have received ** letters. Previously, when developing microcontroller projects, Keil was one … Read more

How to Change the Compiler in Keil MDK?

How to Change the Compiler in Keil MDK?

Follow+Star Public Account, don’t miss out on wonderful content Author | strongerHuang WeChat Public Account | strongerHuang Some readers do not want to change the version of Keil MDK but wish to upgrade to a higher version of the compiler. For example: using Keil MDK version V5.32, the default compiler version is V6.14.1. If I … Read more

Introduction to Keil Development Tools

Introduction to Keil Development Tools

Keil Keil consists of µVision + Development Tool Kit. µVision is the shell, while the development tool kit is the core, combined to form four complete software products. For example, keil5 (Keil µVision5) includes four products: • Keil for Arm • Keil for C51 • Keil for C251 • Keil for C166 Similarly, Keil4, Keil3, … Read more