5257 views|4 replies

45

Posts

0

Resources
The OP
 

Layering of MCU Software [Copy link]

After working for many years, I have written programs that implement functions according to requirements, and I consider them completed after the tests are stable. However, looking at the various couplings between codes, I always feel "uncomfortable" and always have a desire to separate them. However, due to various factors, I have never learned the idea of layering, let alone separating the codes.

Recently, I finally made up my mind to take this first step. Please tell me whether you have the habit of layering your code in your work, or talk about your own layering ideas~~~

This post is from Embedded System

Latest reply

MCU software is also divided into layers? This is overkill. How can we layer things if there is no object-oriented programming, no design patterns, and no reflection mechanism? Make some library functions yourself, and call the library functions when you use them. Then you can update only the library files when you update.   Details Published on 2019-9-23 14:27

247

Posts

1

Resources
2
 

For me, software layering is for easy porting, which makes it easier for me to develop the next similar project.

This post is from Embedded System
 
 

1w

Posts

25

Resources
3
 

This is where the importance of system architecture comes in. Why do some programs look complicated? In fact, it is to better achieve modularization and separate the application from the underlying layer.

Software engineering is about solving these problems, not just creating a program.

This post is from Embedded System
 
 
 

2w

Posts

341

Resources
4
 

The MCU software is layered, which means it is easy to transplant and archive, so that future generations can read it.

There are some differences from modular programming

This post is from Embedded System
 
 
 

625

Posts

209

Resources
5
 

MCU software is also divided into layers? This is overkill.

How can we layer things if there is no object-oriented programming, no design patterns, and no reflection mechanism?

Make some library functions yourself, and call the library functions when you use them. Then you can update only the library files when you update.

This post is from Embedded System
Add and join groups EEWorld service account EEWorld subscription account Automotive development circle
 
 
 

Guess Your Favourite
Find a datasheet?

EEWorld Datasheet Technical Support

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list