How Large Is the Program for Microcontrollers?

How Large Is the Program for Microcontrollers?

I have always been curious about a question: after writing a microcontroller program, when I use the programming software to upload it, I can see the size of the programming file, which is the hex file size: The microcontroller chip I am using is STM32F103C8T6, with a program memory (flash) of only 64K. From the … Read more

Why Does Hex Change While Code Remains the Same?

Why Does Hex Change While Code Remains the Same?

Follow+Star Public Account, don’t miss out on exciting content Author | strongerHuang WeChat Public Account | strongerHuang Today in the technical exchange group, I saw such a question, which roughly means: the same code project (source code unchanged), but the program (hex) changes due to different Keil versions. For many beginners, it’s definitely puzzling why … Read more

Cortex-M MCU Learning Resources Organized by KEIL

Cortex-M MCU Learning Resources Organized by KEIL

The learning resources for Cortex-M core MCUs organized by KEIL are very detailed, and I am sharing them with everyone. (The comment feature has been enabled at the bottom of the article~~ You can express your suggestions and opinions, making communication more convenient! Thank you~~) Official Address: http://www2.keil.com/mdk5/learn/===================================For example, when we open the ST section:===================================Open … Read more

From Schematic PCB to RTOS Porting: STM32 Explained

From Schematic PCB to RTOS Porting: STM32 Explained

[Introduction] Since the release of the iBox related textbooks, many friends have expressed a desire for a detailed explanation of software development. Therefore, we will gradually share some details about IoT development with STM32 on the iBox. Today is the first chapter, where we will introduce how to port the standard official code (bare metal, … Read more

Porting RTOS to 51 Microcontroller

Porting RTOS to 51 Microcontroller

Previous Articles The official website of STC is a furnace I will never forget. A big shot commented. So, taking this opportunity, let’s take a look at the code he wrote. https://gitee.com/open-ell/freertos The file directory is in my favorite style, and the bsp directory clearly indicates its purpose. Below is an overview of the project. … Read more

Resolving LCD12864 Display Issues with Missing Characters

Resolving LCD12864 Display Issues with Missing Characters

Characters Not Displaying – Add \xfd at the End Let me explain! This issue is due to an inherent bug in Keil itself; the Keil compiler ignores strings ending with 0xFD, resulting in garbled characters for Chinese characters that end with 0xFD and the characters immediately following them, because it discards the 0xFD, leading to … Read more

Why C++ is Not Recommended for Microcontroller Programming

Why C++ is Not Recommended for Microcontroller Programming

Generally speaking, when programming on microcontrollers, it is either assembly or C language, and it is rare to develop with C++, so why is it not recommended to develop microcontrollers with C++? Below, I will combine Keil and STM32 to explain the content of writing a running light program in C++, to see why C++ … Read more

Understanding Programming Environments for Microcontrollers

Understanding Programming Environments for Microcontrollers

Microcontroller programming is a practical skill; programs must run on a microcontroller platform to see results and accumulate programming experience. While studying microcontroller courses at school, one might feel a disconnect due to a lack of practical application. In fact, learning about microcontrollers is simple, and the first step is to understand the programming environment. … Read more

Pros and Cons of Popular Development Environments for STM32

Pros and Cons of Popular Development Environments for STM32

Many beginners are asking: Which development tool should I use to learn STM32? First, let me share my opinion: 1. There is no best, only what is suitable; what suits you is the best. 2. There are many development tools, each with its own characteristics, and with advantages, there are also disadvantages. Today, let’s talk … Read more