Posted in category [MCU/DSP/FPGA/Embedded/EE]
How to design MCU application architecture?
There are three methos
1. Simple front-back sequential execution program, which is the method used by most people, without the specific architecture of the thinking program, directly through execution Just write the application in sequence.
2. Time slice polling method, which is a method between sequential execution and the operating system.
3. Operating system, this method should be the highest level of application writing.
Implement another pseudo operating system (scheduler) using goto and C macro definitions, this is not a real embedded operating system, it is a pseudo operating system, or a scheduler for MCU, it costs a few ram and rom, but can do a lot works for you and save your time and easy your software.
Compared to the previous implementation, In this implement, switch case can be used in source.
Implement a pseudo operating system (scheduler) using C macro definitions, this is not a real embedded operating system, it is a pseudo operating system, or a scheduler for MCU, it costs a few ram and rom, but can do a lot works for you and save your time and easy your software.
We know by learning STM32F1 that if you want to optimize your code, you must know the rom and ram usage of the project. Therefore, we need to use the .map file. By analyzing the .map file, you can easily view the occupation of the project rom and ram, including a single source file or even a rom for each function.
How to develop an embedded product from scratch?
if you are fortunate enough to see this article, don’t try to finish it in 2 hours. Even if you finish reading in 2 hours, I believe that you will not understand the essence of the explanation. I believe that you should This article, slowly taste, this is definitely a need to taste 2 to 3 days, combined with their past experience, plus their own thinking, I believe that you will not only technical ability, but even the overall way of thinking There will be a very big improvement.