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,

CodePudding user response:

Going to do it again C

CodePudding user response:

refer to the second floor weixin_40723221 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,

The firmware library can't understand what

CodePudding user response:

reference 5 floor weixin_41569432 reply:
Quote: refer to the second floor weixin_40723221 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,

The firmware library can't understand what

ST firmware library user manual, such as data on its web site, should the Chinese version, can also found general watching the firmware library to register manual look, to see diagram, understanding together will be better, I learn STM32 is accurate atomic, firmware library register tutorial, recommend

CodePudding user response:

Feeling is fine, with register also not very hard! If you feel difficult to use the library!

CodePudding user response:

I don't have to go to the library, how to build the function ST is sealed to the user function library, it is good that you go to call,

So to speak, if you are in you in the project, to register to access the functions, all make it function, then call, this step in front of the ST to do for you now, you call directly in engineering,

CodePudding user response:

Think it has no experience in MCU novice can start on the library development, easy to stick to it, have certain base to register again, not so boring,

CodePudding user response:

Direct call library function, are encapsulated

CodePudding user response:

First firmware library programming is simple, fast, can call a function to go, I also use the hold fire board, want to learn more words may have a look behind the register, learn the microcomputer principle will be more easy to understand

CodePudding user response:

Hold on, write code, analysis function code, write comments

CodePudding user response:

Use the firmware library function call, parameter configuration, simple easy entry, unlike register is difficult, but the ideas are good,

CodePudding user response:

11 references DengFengLai123 response:
first firmware library programming is simple, fast, will have to do is call a function, I also use the hold fire board, want to learn more words may have a look behind the register, learn the microcomputer principle will be more easy to understand

Microcomputer principle? Can recommend on this book

CodePudding user response:

Don't stick to use a register or a library, configure a register + library environment, and then, convenient to use what you can,
With the official library is a very common problem, have no idea, so many functions completely remember don't even know what a standard format, this actually don't need to worry about, will check with the,
Here if you load the full version is the official library, the library is a complete documentation, you can in the help document, find the corresponding library chip all library function and usage of all hardware, such as the checked, is very convenient to use, as to the help document, you can download the complete library files in the inside, a similar stm32f10x_XXXX_XX_XX. CHM compiled library documentation,

CodePudding user response:

Stm32 registers is not complicated, the library is also useful, don't tangle

CodePudding user response:

reference 15 floor tianxj001 response:
don't stick to use a register or a library, configure a register + library environment, and then, convenient to use what you can,
With the official library is a very common problem, have no idea, so many functions completely remember don't even know what a standard format, this actually don't need to worry about, will check with the,
Here if you load the full version is the official library, the library is a complete documentation, you can in the help document, find the corresponding library chip all library function and usage of all hardware, such as the checked, is very convenient to use, as to the help document, you can download the complete library files in the inside, a similar stm32f10x_XXXX_XX_XX. CHM compiled library documentation,

This I really don't know, I'm beginner only that a few library, thought that all of the libraries have to himself slowly then change to use

CodePudding user response:

Now is definitely the library programming, register too difficult to operate

CodePudding user response:

Beginners can use library function, easy to use, simple and fast! With more familiar with, or want to go to the register, so what problems can more quickly find!

CodePudding user response:

Novice register programming, good fit, operation register directly, feel to understand more deeply,,
  • Related