How to Complete Unit Testing for Embedded Code?

How to Complete Unit Testing for Embedded Code?

In software development, every change in requirements generally requires rewriting code, and after code changes, functionality testing is needed. Of course, before functionality testing, unit testing of the code is necessary to avoid unverified scenarios after code modifications, which can lead to various issues. Using a testing framework to quickly complete unit testing of the … Read more

What to Learn for Embedded Systems

What to Learn for Embedded Systems

Embedded systems refer to computer systems that are embedded in devices, typically having dedicated functions and real-time requirements. Learning embedded development requires mastering both hardware and software knowledge. Here are the main topics for learning embedded systems: 1. Fundamental Knowledge Digital and Analog Circuits: Understand basic circuit principles such as logic gates, resistors, capacitors, amplifiers, … Read more

Unexpected Discovery: Cortex-M Core with 64-bit Timestamp

Unexpected Discovery: Cortex-M Core with 64-bit Timestamp

Tencent Video: Bilibili Video: Introduction: According to the Debug section of the parameter manual, those in the System ROM Table with Timestamp generator are supported, while those without are not supported. The current tested series H743/H750, etc. come with it. Similar to the DWT clock counter, it can be used for debugging as well as … Read more

How to Reduce Bugs During the Coding Phase?

How to Reduce Bugs During the Coding Phase?

Source丨AuthorizedReprinted from Embedded and Linux Matters (ID: gh_748eaf2209b0) Author丨Zhong Yi Introduction As a qualified programmer, it is impossible not to write bugs. How can we spend the least amount of time fixing bugs? By using some static analysis tools during the coding phase, we can often achieve more with less effort and reduce the bugs … Read more

C Language and Embedded System Performance Optimization

C Language and Embedded System Performance Optimization

C Language and Embedded System Performance Optimization: Improving System Response Speed In embedded system development, performance optimization is a crucial topic. Since embedded devices usually have limited resources, optimizing code to improve system response speed is particularly important. This article will introduce some common performance optimization techniques and illustrate them with C language code examples. … Read more

Mutex Issues Between RTOS Tasks

Mutex Issues Between RTOS Tasks

When developing projects based on RTOS, we often encounter mutual exclusion situations, such as: multiple tasks needing to use a single UART port to send data. If mutex locks are not used, a higher priority task may preempt the UART and send data, potentially resulting in “garbled” data being sent. Today, we will discuss a … Read more

27 Programming Languages to Enhance Your Python Skills

27 Programming Languages to Enhance Your Python Skills

Translation: Open Source China www.oschina.net/translate/languages-to-improve-your-python Original: http://www.curiousefficiency.org/posts/2015/10/languages-to-improve-your-python.html 27 Languages Procedural Programming Languages: C, Rust, Cython Object-Oriented Data Modeling Languages: Java, C#, Eiffel Object-Oriented Derivatives of C: C++, D Array-Oriented Data Processing: MATLAB/Octave, Julia Statistical Data Analysis: R Computational Pipeline Modeling: Haskell, Scala, Clojure, F# Event-Driven Programming: JavaScript, Go, Erlang, Elixir Gradual Typing: TypeScript Dynamic Metaprogramming: … Read more

Function Calls in Embedded Systems

Function Calls in Embedded Systems

Understanding the function call process is beneficial for implementing the AUTOSAR layered architecture. 1 Memory Distribution of the Program In embedded systems, what is the internal mechanism when a function is called, and what steps are executed? As shown in Figure 1, first, let’s look at the memory distribution of a program when it is … Read more

Embedded Software Design for Testability

Embedded Software Design for Testability

“Star Public Account“, Let’s Progress Together! Hello everyone, I am Mixed Cuisine Jun. This time we will introduce embedded software design for testability. What is testability? It means that after you finish writing a software module/function interface, you can conveniently and comprehensively perform self-testing. Let’s take a simple example to understand testable software. There is … Read more