Home > other > Stm32 registers programming or firmware programming.
Stm32 registers programming or firmware programming.
Time:12-18
Electronic information science and technology professional sophomore, embedded in the future, to play for half a year, 51 teacher introduction to 51 is used to remind me, let me now to start with stm32, I play for a month, the board is adhered to the fire, watching video data look suspect life,
Now can understand registers programming method, the feeling can achieve a goal just by looking at their manual (only learn now button small lights), the firmware library can't read, I have no clue, watching video, about how to build a library function, what what what what GPIOx_PIN_X structure, main function and they do not understand what are those things? If I use the other packaging good firmware library, how can I go with
CodePudding user response:
Register programming can master chip programming, can be flexible in practical use, but need more time Is essential to a function library programming register programming encapsulated into a variety of functions, lack of flexibility, but can rely on other people's work achievement, reducing development and debugging time, but must be fully digest the document
CodePudding user response:
32 registers programming to calculate, I learned more than a year of 51, 32 register is also having a lot of meng, round round very troublesome, but want to see or understand, it directly learn the firmware library better, not so easy to collapse, and out of work now, the company will not require the use of register to programming, basic it is to use the firmware library,
CodePudding user response:
I contact the STM32 started in 2011, with a period of time before contact STM32 51 single chip microcomputer, 51 microcontroller programming, basically all is to register, no 51 library function, because 51 register is less, easy to remember, easy to operate, STM32 is different, however, the number of registers STM32 much more special, let's when writing your own program, if often refer to the large number of registers will lead to development especially low efficiency, and so the official library function is developed, using a library function, can greatly improve the efficiency of development,
So, it is strongly recommended that learning library functions,
For what you say, structure, GPIO, library functions don't understand the situation, The solution is: 1. Review the C language, master the basic content such as the inside of the C language structure, 2. How to write programs, own written procedures, downloaded to the board, the phenomena, analysis principle, meet don't understand the C language grammar, reading books or surf the Internet to solve, 3. The library function can't understand, because with a few, that can first take a look at someone else's code is how to call library functions, actually each library function official has detailed notes, input and output parameters are detailed annotations,
Stress that a C language foundation, step by step, write programs more, practice more, will certainly have learned something,