Stm32f4_ lead the introduction

Source: Internet
Author: User

, overview

This article is for those who want to learn St chip development (or primary learning) of friends, the articles focus on details, perhaps a bit simple.

I want to tell those who are just beginning to learn St's friends, regardless of which series you use (F0, F1, F2), which type of chip, in fact, learning methods and principles are similar. Perhaps different series, different models of chips, they do exist a certain difference, but original aim, design chip manufacturers are in accordance with common sense (and people's habitual thinking) to design the chip, and its development principle.

I am here to tell you, ST's chip whether it is hardware (PIN), or software (registers, libraries, etc.) their compatibility is very good, there may be different series, different models of chips, hardware changed, software does not change, can achieve the same effect (the author has tried, such as: STM32F205VC and Stm32f417ve, in addition to the obvious speed there are differences, hardware and software can be compatible, no friend can try to see the manual pin, register address and so on basically the same). There are a lot of chips are similar, the unbelief of friends can try.

Well, the return to today's topic, about the STM32F4 series Chip development, more details, please look down.

based on the principle of free sharing, easy to learn knowledge of mobile phones, regularly share technical knowledge on the platform. If you feel that the content you share is useful to you, and if you want to learn more about it, please use the search "embedddeveloper" or scan the QR code below and follow There will be more exciting content waiting for you.

Ⅱ, preparing development resources

1. Development Tools Keil

The development of St Chip tool has many, the official also provides (STVP), the author here does not comment which tool is good, which one tool is bad, only wants to say, each has each good, you use which one sees your own choice. The author habitually uses Keil (mdk-arm), therefore, the recommendation is also Keil.

About Keil (Mdk-arm) contains support package download and installation, I have explained in the previous article, different can go to my blog to see how to download and install.

Mdk-arm Download and install:

Http://www.cnblogs.com/strongerHuang/p/5528602.html

Some time ago I also summed up about the use of Keil-related methods, which basically summarizes most of the functions of mdk-arm.

Keil Usage Method (Rollup):

http://blog.csdn.net/ybhuangfugui/article/details/51647893

2.F4 Document Information

In the previous article I have described "how to find STM32 development materials", my suggestion is to enter St official website, I also advocate to enter the official website to find information.

For beginners, there are two documents that are essential: data sheets and reference manuals. The data sheet is used to see what resources are available on the chip you are using, the pin-corresponding function, and so on. The reference manual is used for development, viewing some of the relevant register configurations when debugging, how to use related functions, etc.

Of course, the two above is about the whole chip all the information, development time also have some relevant information, such as: Application Manual, Errata Manual, Programming manual, and so on, explained some details of things, do not abandon troublesome friends, recommended reference to these documents.

St Official F4 Documentation:

http://www.st.com/content/st_com/zh/products/microcontrollers/stm32-32-bit-arm-cortex-mcus/stm32f4-series/ Stm32f407-417/stm32f407zg.html

Author 360 cloud Disk:

https://yunpan.cn/cR2pxqF5x2d9c access password 53e7

3. Standard Peripherals Library

About the development of STM32: Register development, Standard peripheral library, STM32CUBEMX configuration and so on. Since there are too many registers for STM32 (unlike registers with 51 or 430), it is not recommended to use register development for beginners. The tools for STM32CUBEMX configuration code are really powerful, but not for those who want to understand the underlying driver development. Therefore, the author recommends that beginners use standard peripheral library development STM32, the reason is very simple to take into account the above mentioned two points.

ST Official website This year updated the site, a lot of resources sorted in a Web page, user-friendly download. All of St's standard peripheral libraries are organized on a single download page to download the latest standard Peripherals library on the website.

Standard Peripheral Library website (for registered users):

Http://www.st.com/content/st_com/en/products/embedded-software/mcus-embedded-software/ stm32-embedded-software.html?querycriteria=productid=sc961

I 360 network disk (updated regularly):

HTTPS://YUNPAN.CN/CREDTUBI7ZYWC access password 4e0a

4. Other

STM32 St-link Utility: This tool is official ST, mainly used for mass production download, here for beginners also need to understand. The internal flash data can be viewed without read protection.

Download (Registration of users required):

Http://www.st.com/content/st_com/en/products/embedded-software/development-tool-software/stsw-link004.html

I 360 network disk (updated regularly):

https://yunpan.cn/cRezHui3RVRdd access password 1ABC

Ⅲ, New project

We can get into the development after we have done the preparatory work for the previous section. The first is to extract the standard peripheral Library of Useful source code files (mainly extracted libraries inside the file), this can be based on their own understanding and ideas to sort and classify, the author will provide the collation of good documents for everyone to download reference.

On how to create a new software engineering, the author also in front of an article, for your reference.

Http://www.cnblogs.com/strongerHuang/p/5532880.html

The author provides a new software engineering example, relatively simple is also more practical for you to download the reference:

https://yunpan.cn/cRepWDShSK4yc access password 65b1

, Description

About the development of STM32, software compatibility is very good, do not feel that your chip and I summed up the example of the difference does not look, in fact, is the wrong understanding, especially the same series of chips basically the program is compatible, that is, can use each other.

The above summary is for reference only, if has the wrong place, please understanding.

Ⅴ, last

Attention, reply to "more content", will get more content (such as:UCOS instances, etc., constantly updated in ...) )。

If you like what I share, and you want to know more about it, please follow the public number at the beginning of the article, the new content continues to be updated, and more exciting content will appear later.

Stm32f4_ lead the introduction

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.