What Are the Differences Between Embedded Programming and PC Programming?

What Are the Differences Between Embedded Programming and PC Programming?

What Are the Differences Between Embedded Programming and PC Programming? In China, few friends in embedded programming have graduated from a formal computer science program; most come from automatic control or electronics-related majors.These individuals have strong practical experience but lack theoretical knowledge;many computer science graduates tend to work on online games, web pages, and other … Read more

Self-Assessment for Junior Python Developer Interview Questions (Issue 17)

Self-Assessment for Junior Python Developer Interview Questions (Issue 17)

Keywords for this issue:<span>logging</span>、<span>traceback</span>、<span>cProfile</span>、<span>timeit</span>、Code Debugging and Optimization Difficulty: Beginner → Essential Skills for Advancement 📌 I. Basics of logging 1. Print simple logs import logging logging.basicConfig(level=logging.INFO) logging.info("Program started") 2. Customize log format import logging logging.basicConfig( level=logging.INFO, format="%(asctime)s – %(levelname)s – %(message)s" ) logging.warning("This is a warning") 3. Write logs to a file import logging logging.basicConfig( … Read more

Understanding Python Exceptions

Understanding Python Exceptions

Introduction In any programming language, encountering exceptions (errors) is inevitable. Knowing how to view errors, understand them, avoid them, and capture error information are all aspects we need to address. 1. Definition of Exceptions An exception occurs when the <span>Python</span> interpreter detects an error and can no longer continue execution. At this point, some error … Read more

Debugging the Linux Kernel Using QEMU and GDB

Debugging the Linux Kernel Using QEMU and GDB

Debugging the Linux kernel is an important way to understand the internal workings of an operating system. Often, code is understood through execution rather than just reading. By using QEMU in conjunction with the GDB debugger, we can set breakpoints, step through code, and inspect various data structures within the Linux kernel without needing additional … Read more

C Preprocessor: Mastering Macro Programming Techniques

C Preprocessor: Mastering Macro Programming Techniques

This article dives straight into the technical points, systematically organizing practical skills, common pitfalls, and engineering suggestions for macro programming, helping you leverage macros as productivity tools in real projects rather than as technical debt. Conclusion in One Sentence Macros are powerful text/code generation tools that operate before compilation. Prioritize type-safe alternatives (inline, _Generic, const), … Read more

From Startup to First Task Execution in ThreadX RTOS

From Startup to First Task Execution in ThreadX RTOS

Utilizing the VSCode debugging environment to observe the startup process of ThreadX.0. Startup AnecdoteThe example program for the debugging environment built on ThreadX RTOS encounters a HardFault exception, as shown in the figure below.However, this issue does not occur on another host. The same example code, when debugged step by step, locates the specific instruction … Read more

Sharing Several Embedded Software Logging Techniques!

Sharing Several Embedded Software Logging Techniques!

Follow+Star PublicAccount to not miss exciting content Source | Embedded Miscellaneous In embedded development, logging and debugging are undoubtedly the most commonly used and practical debugging methods. However, many engineers may not fully leverage the power of logging! Today, I will share several logging techniques to help you progress from a “printf novice” to a … Read more

Embedded C Language: Misconceptions and Solutions for Global Variable Usage

Embedded C Language: Misconceptions and Solutions for Global Variable Usage

Click the above to select“Pin/Star Public Account” Welfare and valuable content delivered first-handHello everyone, I am Mai Ge.In embedded development, especially in os-less microcontroller programs, the most common mistake is the rampant use of global variables.This phenomenon is often seen among programmers transitioning from early assembly language and beginners, who tend to treat global variables … Read more

Understanding PLC Projects: The Real Challenge is Not Programming

Understanding PLC Projects: The Real Challenge is Not Programming

With over 10 years in the non-standard automation industry and having handled hundreds of PLC projects, ranging from standalone devices to complete line integration, and from simple logic to complex algorithms, I can reflect on the fact that the highest technical barrier is indeed programming—ladder diagrams, structured text, and function blocks, each requiring a solid … Read more

VisionMaster and Siemens PLC1200 Communication Setup

VisionMaster and Siemens PLC1200 Communication Setup

1. Siemens PLC1200 Communication Settings Set the Ethernet address of the PLC, while noting the rack number and slot number, which will be used in the subsequent VisionMaster setup. Set the PLC connection mechanism, check the option {Allow PUT/GET communication access from remote objects}. Create a DB block to store the variables for communication, and … Read more