STM32F407VG (quad) clock configuration

Source: Internet
Author: User

1.stm32 F407VG starup_stm32f40_41xxx.s The following location called IMPORT Systeminit, and then called the main function, so enter the main function when the clock configuration has been automatically completed.
2. Complete the clock configuration in the Systeminit function,with the following comments do not need to explain more, at a glance.

The following comments intercept from system_stm32f4xx.c  *=============================================================================   *                    supported stm32f40xxx/41xxx devices  * * ----------------------------------------------------------------------------  *         System Clock Source                    | PLL (HSE)   *-----------------------------------------------------------------------------  *        SYSCLK (Hz)                             | 168000000  *-----------------------------------------------------------------------------  *        HCLK (Hz)                           &N Bsp   | 168000000  *-----------------------------------------------------------------------------  *        AHB prescaler                .          | 1  *-----------------------------------------------------------------------------  *        APB1 prescaler                         | 4  *-----------------------------------------------------------------------------  *        APB2 prescaler                         | 2  *-----------------------------------------------------------------------------  *        hse Frequency (Hz)                      | 25000000  *-----------------------------------------------------------------------------  *        pll_m             &nbsp                    | 25  *-----------------------------------------------------------------------------  *        pll_n                             &NBSP ;    | 336  *-----------------------------------------------------------------------------  *        pll_p                             &NBSP ;    | 2  *-----------------------------------------------------------------------------  *        pll_q                               &NBSP ;  | 7  *-----------------------------------------------------------------------------  *        plli2s_n             &NBSp                 | na  *-----------------------------------------------------------------------------  *        plli2s_r                             &N BSP; | na  *-----------------------------------------------------------------------------  *        I2S input clock                        | na  *-----------------------------------------------------------------------------  *        VDD (V)                             &NBS P   | 3.3  *-----------------------------------------------------------------------------  *        main regulator output voltage          | Scale1 mode  *-----------------------------------------------------------------------------  *        flash Latency (WS)   & nbsp                  | 5  *-----------------------------------------------------------------------------  *        prefetch Buffer                        | on  *-----------------------------------------------------------------------------  *        instruction Cache                      | on  *-----------------------------------------------------------------------------  *        data Cache                             | on  *-----------------------------------------------------------------------------  *        require 48MHzFor USB OTG FS,          | disabled  *        sdio and RNG clock                 &NB Sp   |  *-----------------------------------------------------------------------------

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

STM32F407VG (quad) clock configuration

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.