Discussion on SystemInit() function of STM32

Publisher:phi31Latest update time:2019-03-18 Source: eefocusKeywords:STM32 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

I only knew that systemInit was used to initialize the clock, but I didn't know how to initialize it, so I reorganized it. For details, refer to 

[Reprint] STM32 study notes - SystemInit() function 

This blog is very detailed, so I won’t go into details.


Write the picture description here


ST recommends an 8M external crystal. Looking at the clock tree, you can see that OSC32_IN and OSC32_OUT do not need to be connected to an external crystal. Just use the internal RC. I have struggled with this issue before and don't know what it is used for.

Keywords:STM32 Reference address:Discussion on SystemInit() function of STM32

Previous article:STM32F4 clock configuration
Next article:STM32 drives stepper motor

Recommended ReadingLatest update time:2024-11-16 19:49

STM32ADC conversion interrupt read
The ADC interrupt reading method is suitable for low-frequency ADC acquisition, while high-frequency AD acquisition must use DMA. The initialization function of ADC interrupt reading only adds an interrupt configuration file compared to the direct reading method in the previous article. The code is as follows: static
[Microcontroller]
Design and implementation of digital oscilloscope based on STM32
0 Introduction With the development of integrated circuits and the adoption of digital signal processing technology, digital oscilloscopes have become intelligent measuring instruments that integrate various functions such as display, measurement, calculation, analysis, and recording. Digital oscilloscopes have gradu
[Test Measurement]
Design and implementation of digital oscilloscope based on STM32
About STM32 software reset code writing
For STM32, there are two ways to reset the software:   1) Use the official software library     The system reset function is directly provided in the stm32f10x_nvic.c file of the official software library   /****************************************************** ****************************** * Function Name: NVIC_Gen
[Microcontroller]
STM32 Series Part 6 --NVIC Interrupt Priority Grouping
There are only 60 maskable interrupts on the STM32F103 series (68 on the 107 series).  Interrupt management method:  First, group the STM32 interrupts into groups 0 to 4. At the same time, set a preemption priority and a response priority value for each interrupt.  The group configuration is configured in register SCB
[Microcontroller]
STM32 Series Part 6 --NVIC Interrupt Priority Grouping
STM32 MCU (7) Serial communication printf redirection
1. Add header file #include stdio.h 2. Project "Target" -- check "Use MicroLIB" 3. Redefine the fputc function int fputc(int ch, FILE *f)   {   Uart1_PutChar((u8)ch); //This is a custom function, see serial port interrupt communication, please do not copy blindly   return (ch);   }   After the above configu
[Microcontroller]
STM32 NVIC (interrupt vector, priority) brief introduction
1. Background         It is necessary to use the CAN of STM32 for communication. After a series of configurations, it can send and receive normally, and there is only one CAN communication error handling left.     The error interrupt enable register has been configured and enabled. After an error occurs, the "CAN1_SCE
[Microcontroller]
STM32 NVIC (interrupt vector, priority) brief introduction
STM32 ADC multi-channel continuous routine
#include "stm32f10x.h" /*RCC clock configuration*/ void RCC_config(void) {  ErrorStatus HSEStartUpStatus; /* RCC registers are set to default configuration */ RCC_DeInit(); /* Turn on external high speed clock */ RCC_HSEConfig(RCC_HSE_ON); /* Wait for the external high-speed clock to stabilize*/ HSEStartUpStatus
[Microcontroller]
Question about STM32 SPI slave mode
There are many questions about using STM32 as a slave on the Internet. The main problem is that the slave receives data incorrectly. 1 About the master and slave clock suspension configuration It can be said with certainty that the master and slave clock suspension must be configured to be the same  This is clearl
[Microcontroller]
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号