STM32 clock configuration
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2015-07-13 10:15 PM
Posted on July 14, 2015 at 07:15
I am a beginner in STM32. Recently I surf the Internet and find some codes written by others. They all says that the RCC should be configured at first as follow:
1. Reset the RCC register; 2. Open HSE; 3. Wait for HSE start up; 4.RCC_HCLKConfig; 5. RCC_PCLK2Config; 6. RCC_PCLK1Config; 7. RCC_PLLConfig; 8. Rcc_PLLCmd(ENABLE); 9. Wait for PLL to work; 10. RCC_SYSCLKConfig; 11. Determine that whether PLL is the system clock; 12. Open the peripheral's clock. But how can I know these procedures from the reference manual or the datasheet? #stm32 #clock-configuration #replySolved! Go to Solution.
This discussion is locked. Please start a new topic to ask your question.
1 ACCEPTED SOLUTION
Accepted Solutions
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2015-07-14 2:51 AM
Posted on July 14, 2015 at 11:51
Hello,
1) In the section Reset and clock control (RCC) in any reference manual of STM32 products you can find details about clocks settings.2) If you are using HAL, I would suggest you to use CUBEMX tool which has ''clock diagram'' where you can configure the clock easily. 3) If you are using standard library you can use clock configuration tool: For example if you are using STM32F40X/41x microcontrollers you can have more information about the clock configuration tools (downloads and settings) via thishttp://www.st.com/web/en/catalog/tools/FM147/CL1794/SC961/SS1533/PF257927
I hope this helps,Syrine.
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2015-07-14 2:51 AM
Posted on July 14, 2015 at 11:51
Hello,
1) In the section Reset and clock control (RCC) in any reference manual of STM32 products you can find details about clocks settings.2) If you are using HAL, I would suggest you to use CUBEMX tool which has ''clock diagram'' where you can configure the clock easily. 3) If you are using standard library you can use clock configuration tool: For example if you are using STM32F40X/41x microcontrollers you can have more information about the clock configuration tools (downloads and settings) via thishttp://www.st.com/web/en/catalog/tools/FM147/CL1794/SC961/SS1533/PF257927
I hope this helps,Syrine.Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2015-07-17 6:18 PM
Posted on July 18, 2015 at 03:18
Thank you very much!
