Discussing the Issues of Global Variables in Embedded C Programming

Discussing the Issues of Global Variables in Embedded C Programming

Having worked for several years, I have grown from a technical novice to someone who now considers themselves a junior expert. This journey has involved a lot of self-directed learning through various resources. Whether in forums, bookstores, or magazines, I often encounter either shallow posts from beginners or overly abstract conceptual articles. When I finally … Read more

Coresight (Part 7): The Two Main Functions of Coresight

Coresight (Part 7): The Two Main Functions of Coresight

Coresight has two main functions: debugging and tracing. 1. Debugging The debugger implements debugging functionality through DAP. 1.1. Single-Core Debugging System: One DAP, along with one AP and APBIC. External access to the DP is transformed by the DAP into AP access. The AP generates the AP bus through the APBIC, allowing access to debugging … Read more

Porting GDB 16.2 on RK3399

Porting GDB 16.2 on RK3399

👆 Click the blue text "Linux Armory" at the top, and select "Add to Favorites" in the upper right corner to not miss out on great articles and see valuable content first. 👆 FollowLinux Armory, to receive hardcore Linux learning materials and code. To quickly locate program issues, it is necessary to compile gdb16.2 on … Read more

Variable Types and Data Processing in PLC Hardware Programming

Variable Types and Data Processing in PLC Hardware Programming

Last week, I helped a colleague solve a problem with his temperature control system on the production line, which was frequently malfunctioning. After some investigation, it turned out that the variable type was not selected correctly, causing the decimal part to be truncated. This incident reminded me that we must discuss the topic of variable … Read more

Basics of PLC Programming: A Beginner’s Guide to Ladder Diagrams

Basics of PLC Programming: A Beginner's Guide to Ladder Diagrams

I really can’t stand those newcomers in the industry who ask the most ridiculous questions every day. Just yesterday, a guy came to me with a textbook asking why his ladder diagram program wasn’t working. When I opened it, it was a mess of logical relationships, and he couldn’t even distinguish between normally open and … Read more

Design Principles and Reuse Strategies of PID Controllers in PLCs

Design Principles and Reuse Strategies of PID Controllers in PLCs

Click the blue text for more exciting information Having worked in this field for 15 years, today let’s talk about the PID controllers in PLCs that many find confusing. Many beginners get a headache just hearing about PID, and to be honest, many veterans also struggle to understand it. This thing looks simple, but using … Read more

Fundamentals of PLC Programming: A Beginner’s Guide to Bit Operations

Fundamentals of PLC Programming: A Beginner's Guide to Bit Operations

After observing the discussions about bit operations in the group over the past few days, it’s hard to express my feelings! Some of the bit operation codes written by people made my eyes hurt. If the fundamentals of these bit operations are not solid, you could end up in serious trouble on-site! Not to mention … Read more

The Most Powerful Python HTTP Server: Setting Up a Local Server with http.server

The Most Powerful Python HTTP Server: Setting Up a Local Server with http.server

The Most Powerful Python HTTP Server: Setting Up a Local Server with http.server When developing and testing websites or applications, a simple local server is often needed to simulate a server environment, share files, or debug interfaces. Today, we will introduce a super convenient tool provided by Python—<span>http.server</span>—which can quickly set up a local HTTP … Read more

Troubleshooting SWD Connection Issues with Your Board

Troubleshooting SWD Connection Issues with Your Board

The board is ready, and the MCU is soldered, but the SWD cannot connect, and the program cannot be downloaded. What should I do? This issue seems to occur frequently, so I would like to share some recent cases I encountered. 1) Case 1: Engineer A made 5 boards, but none could connect. After confirming … Read more

C++ Debugging Techniques: Efficient Use of GDB and Breakpoints

C++ Debugging Techniques: Efficient Use of GDB and Breakpoints

# C++ Debugging Techniques: Efficient Use of GDB and Breakpoints Debugging is a crucial part of software development, and using tools to help us identify issues in our code can significantly enhance our development efficiency. For C++ developers, GDB (GNU Debugger) is a powerful debugging tool. This article will detail how to use GDB in … Read more