The Role, Generation and Invocation of LIB Libraries in Keil

The Role, Generation and Invocation of LIB Libraries in Keil

Click the above “Chuangxue Electronics” to follow with one click, making it easy to learn electronic knowledge. Chuangxue Electronics Subscription Account Daily updates on technical articles in the electronics industry and the latest information on microcontrollers, making it easy to learn anytime and anywhere. What is the use of the LIB library? A simple example … Read more

Detailed Analysis of KEIL C51 Code Optimization

Detailed Analysis of KEIL C51 Code Optimization

In-depth analysis of Keil C51 bus peripheral operation issues. 1 Problem Review and Analysis In actual work, encountering repeated consecutive reads of the same port, the Keil C51 compiler did not achieve the expected results. Analyzing the assembly program generated by the C compiler found that the second read statement of the same port was … Read more

How to Fix Chinese Comment Encoding Issues in Keil V4

How to Fix Chinese Comment Encoding Issues in Keil V4

As shown in the figure below: Experiencing this issue is undoubtedly very frustrating for those who write programs with Chinese comments. However, the solution to this problem is actually quite simple, as shown in the figure below. This is the configuration interface accessed from the last option in the view menu. Select GB2312 in the … Read more

Simple Use of GCC to Compile C Files in Keil Projects

Simple Use of GCC to Compile C Files in Keil Projects

It must be said that Keil seems to be the most widely used IDE among domestic users. After being acquired by ARM, the introduction of the Keil MDK development environment with ARMCC and other compilers has been well received by many ARM development engineers. The large user base (many of whom have transitioned from the … Read more

Operations in Keil C Debugging State

Operations in Keil C Debugging State

In the debugging state of Keil C, how can we observe the operating status of various internal and external peripherals? How can we modify their settings? Answer: In debugging state, click on different peripheral options under the Peripherals menu to display or hide the corresponding observation windows. For example, to display the Timer 0 window, … Read more

Detailed Explanation of Keil MDK Compiler Warnings and Errors

Detailed Explanation of Keil MDK Compiler Warnings and Errors

After working with microcontrollers, I transitioned to ARM and initially used the ADS 1.2 compiler. I used it for a while because the old program of the project I took over was compiled with ADS, and most of the department was using it. When learning about microcontrollers, I used the Keil C51 compiler, and the … Read more

Resolving Link Errors in Keil Compilation

Resolving Link Errors in Keil Compilation

Using Keil MDK, I tried an example for STM32F107. After opening and compiling, the compilation succeeded, but the linker indicated that there were 5 functions undeclared. However, upon reviewing the files, it was clear that the header files were included. Why was it still not working? I also tried using extern declarations, but that did … Read more

Common Debugging Techniques in Keil uVision

Common Debugging Techniques in Keil uVision

When you enter the debugging interface, you will see the following image. The cursor has already run to the entry point of the main function, and the debugging toolbar is now displayed in front of you. Tools/Materials Ulink2 emulator Development board and Keil software Methods/Steps First, let’s introduce the relevant menus. The first one on … Read more