New Project---Register edition

Source: Internet
Author: User

Currently the most popular way to learn STM32 is to use the firmware library!! (temporarily using Register version)

The role of the Systeminit function is to turn the external crystal through a phase-locked loop to make the system clock 180MHZ. (implemented in the firmware repository version).

The Systeminit function can be implemented in the Main.c file, but there is no function body; if we do not implement this function, that is, the system clock is set to 180MHZ, then how does the system clock come? stm32f429 Series if the external crystal oscillator (25MHZ) is not vibrating or not configured, it will use the internal HSI as the system clock for 16MHZ. It doesn't make sense to be too low on a system project!!!!!!!!!

STARTUP_STM32F429_439XX.S is the boot code.

Stm32f4xx.h the code used to store the register mappings.

. AXF and. Hex are executable files that are used to download to the Development Board!

1, register version of the establishment of the project

Only need to add the Startup_stm32f429_439xx.s file, and stm32f4xx.h (this file can be empty), and then create a main.c file, implement the main function, and introduce stm32f4xx.h header file, you can compile successfully.

The clock is off for each peripheral when power is on by default! Controlled by RCC!!

New Project---Register edition

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.