Should High Cohesion and Low Coupling be Emphasized in Embedded Software Written in C?

Should High Cohesion and Low Coupling be Emphasized in Embedded Software Written in C?

I am Lao Wen, an embedded engineer who loves learning.Follow me to become even better together! 1 – Principles Low coupling means that modules should exist as independently as possible. While some connection between modules is inevitable, the interfaces between them should be minimal and simple. Thus, high cohesion from the internal characteristics of each … Read more

Object-Oriented Programming in C (Introduction)

Object-Oriented Programming in C (Introduction)

Hello everyone, today we will discuss a topic that is both popular and somewhat <span>"non-mainstream"</span> in the embedded community, Object-Oriented Programming (OO) in C. C has long been the preferred language in the embedded field due to its efficiency, flexibility, and closeness to hardware. However, as embedded systems become increasingly complex, pure procedural programming sometimes … Read more

What to Do About Data Loss in Embedded Products During Operation?

What to Do About Data Loss in Embedded Products During Operation?

Click the blue text above to follow us Data loss is a common and urgent issue in embedded systems during operation, especially in application scenarios involving frequent data writes (such as database operations). It manifests in various forms, from minor loss of the latest records to severe issues such as file name corruption, loss of … Read more