GDB (GNU Debugger) – A Powerful Tool for Database Kernel Developers

GDB (GNU Debugger) - A Powerful Tool for Database Kernel Developers

GDB (GNU Debugger) – A Powerful Tool for Database Kernel Developers Welcome to the world of database kernel development! Today, we will learn about a very important tool that acts like a doctor’s stethoscope or a detective’s magnifying glass, helping us delve into the internal workings of programs and uncover hidden bugs. This tool is … Read more

Documenting a Crash Issue Caused by Missing Return in High Version GCC

Documenting a Crash Issue Caused by Missing Return in High Version GCC

1. Problem Phenomenon The code that runs normally on CentOS 7 crashes when compiled and run on CentOS 8. 2. Troubleshooting Process The crash occurred at a location in the test case that should not have been reached, so I first commented out that part of the code. It then crashed again after reaching the … Read more

How to Prevent Memory Leaks in Embedded Programming?

How to Prevent Memory Leaks in Embedded Programming?

1. Introduction Recently, various products in our department have encountered issues caused by memory leaks, specifically manifested as board resets after continuous operation for several days due to memory exhaustion. On one hand, memory leak issues are considered low-level errors, and their oversight in production can have severe consequences; on the other hand, since memory … Read more

FreeMaster – A Powerful Debugging Tool for MCUs

FreeMaster - A Powerful Debugging Tool for MCUs

What is FreeMaster FreeMaster is a data visualization debugging software developed by NXP, provided free of charge to users. Its main function is to provide a data visualization interface on a PC, displaying data variables from the MCU through communication interfaces such as SWD, UART, and CAN. When using the J-Link debugging tool for connection, … Read more

Debugging nRF9160 Zephyr Applications with Ozone

Debugging nRF9160 Zephyr Applications with Ozone

Ozone is a free embedded software debugger from SEGGER. It is a powerful tool that allows you to gain deep insights into what is happening within embedded systems. It is particularly useful when debugging nRF9160 Zephyr applications. Organizing multiple threads and multi-image builds can be challenging, but this is the tool you want. In our … Read more

Console.trace: A Powerful Tool for JavaScript Debugging

Console.trace: A Powerful Tool for JavaScript Debugging

console.trace() is a very useful debugging tool that clearly displays the call stack information, helping developers quickly trace the execution path of the code and the chain of function calls. In practical business scenarios, the use of console.trace() mainly focuses on problem diagnosis and debugging work. Below are some typical practical business use cases, along … Read more

Learning | 17 Essential C Programming Tips

Source: Internet 1. A pipeline can achieve maximum efficiency only when it is filled with instructions, executing one instruction per clock cycle (referring only to single-cycle instructions). If a jump occurs in the program, the pipeline will be cleared, requiring several clock cycles to refill. Therefore, minimizing the use of jump instructions can enhance program … Read more

Common Errors in C Language Programming (Part Two)

Common Errors in C Language Programming (Part Two)

Learning programming involves not only knowing that there are errors in the program and how to correct them, but also understanding where the errors are and why the computer produces such erroneous outputs. The behavior of computers is always explainable; one must understand the underlying execution logic rather than simply correcting the program. This is … Read more

PLC Network Expansion: Fiber Optic Communication Applications Extend Transmission Distance to 10 Kilometers!

PLC Network Expansion: Fiber Optic Communication Applications Extend Transmission Distance to 10 Kilometers!

PLC Network Expansion: Fiber Optic Communication Applications Extend Transmission Distance to 10 Kilometers! Introduction Hello everyone! Today, I want to share a technological breakthrough that has excited industrial automation engineers — PLC Fiber Optic Communication Network Expansion. Don’t be intimidated by the technical terms, I will explain this technology in the most straightforward way. Imagine … Read more

TCAN4550 SPI-CANFD Debugging Notes

TCAN4550 SPI-CANFD Debugging Notes

Table of Contents Standard Version and Q1 Version Schematic Diagram Physical Diagram Test Wiring Default Power-On Test STM32CubeMX Configuration Adaptation of SLLC469 Driver Library SPI Read ID Test Steps to Send and Receive CAN Messages MCAN and MRAM Configuration CAN Send Test CAN Receive Test VCCOUT Direct 5V Test Open Circuit, Short Circuit, and Busoff … Read more