When studying the UART1 serial port case of Wildfire's firmware library, I used the STM32103F103RB chip on the SIM9008 module application board, and the external crystal used was 12M.

The serial port reads garbled characters

The default external crystal oscillator is 8M

Since the STM32 library is implemented under the condition of an external crystal oscillator of 8M by default, the baud rate of the serial port is also configured at 8M, including the main frequency.

If an external crystal oscillator of 8M or 12M is used, the configuration clock is 72MHZ.

STM32 single chip microcomputer external crystal oscillator configuration clock setting

1) Change it like this in void SetSysClockTo72(void) in the system32_stm32f10x.c file:

8M:

RCC-》CFGR |= (uint32_t) (RCC_CFGR_PLLSRC_HSE | RCC_CFGR_PLLMULL9);//8*9=72

12M:

RCC-》CFGR |= (uint32_t)(RCC_CFGR_PLLSRC_HSE | RCC_CFGR_PLLMULL6);//12*6=72

2) Modification in stm32f10x.h:

8M:

#define HSE_Value ((uint32_t) 8000000) /*! 《Value of the External oscillator in Hz */

12M:

#define HSE_Value ((uint32_t) 12000000) /*! 《Value of the External oscillator in Hz */

PGA Sockets Adapters

PGA Sockets Pin Grid Array Socket
A pin grid array, often abbreviated PGA, is a type of integrated circuit packaging. In a PGA, the package is square or rectangular, and the pins are arranged in a regular array on the underside of the package. The pins are commonly spaced 2.54 mm (0.1") apart, and may or may not cover the entire underside of the package.
PGAs are often mounted on printed circuit boards using the through hole method or inserted into a socket. PGAs allow for more pins per integrated circuit than older packages, such as dual in-line package (DIP).

PGA Sockets & Adapters
Low insertion force Pin Grid Array (PGA) Sockets and Adapters are available in a variety of RoHS Compliant insulators with hundreds of screw-machined terminal choices. Virtually any PGA footprint can be accommodated, including interstitial patterns.

PGA Sockets & Adapters Overview
Durable construction for virtually any application
Wide variety of materials, lengths, and sizes
Cost-effective method for replacing, repairing, or upgrading PGA devices
Unique options such as solder preform terminals eliminate the need for wave soldering in mixed SMT/Thru-hole applications
RoHS compliant insulators and screw-machined terminals are compatible with lead-free processing - select either Matte Tin/Gold (MG) or Gold/Gold (GG) plating

Antenk's Pin Grid Array (PGA) Sockets
Complex printed circuits are too valuable to risk direct soldering to expensive integrated circuits (ICs). Using a socket is the answer. The use of sockets offers advantages that prove cost effective and simplify board design.

Antenk's processor socket line is designed for use with Intel- and AMD-based microprocessor packages. Socket types include land grid array (LGA), micro pin grid array (mPGA), and PGA with low to zero insertion force. The mPGA and PGA sockets are designed for various microprocessor packages for notebook PCs, desktop PCs, and servers. For custom applications, the compression sockets can be configured to the specific application.

mPGA/PGA (ZIF)
These sockets provide a zero insertion force (ZIF) PGA interface to the microprocessor PGA package and are attached to the PCB with surface-mount technology (SMT) soldering. PGA sockets are available in arrays up to 989 positions with single lever, screw driver, and hex wrench actuation methods.
PGA Sockets (LIF)
These sockets are primarily employed for microprocessor package test applications using through-hole solder attachment to the PCB design. The contacts are screw-machine outer sleeves with either stamped and formed or drawn inner contacts. Custom arrays are available in more than 1,000 positions.

Pin Grid Array (PGA) Sockets Type
mPGA
PGA

PGA

PGA Sockets Typical Applications:
Eliminate hand-loading of pins, facilitate solder joint visibility, low profile component mounting or board mating.

PGA Sockets,mPGA Sockets,Integrated Circuits Socket,Pin Pga Sockets,Pga Socket Connector,PGA Adapters,Pin Grid Array Sockets,Processor Socket

ShenZhen Antenk Electronics Co,Ltd , https://www.antenkconn.com