STM32——Modify MCU steps

Publisher:快乐飞翔Latest update time:2017-10-29 Source: eefocusKeywords:STM32 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

When we write a project, we can change the MCU and STM32 project by modifying a few places without having to create a new project.

Here we take the STM32 large capacity to medium capacity as an example:

1. Replace startup_stm32f10x_hd.s in the project with startup_stm32f10x_md.s;

2. Click the magic wand (Options for target)

A. Click Device and select the type of replacement in the selected serial port;

B. Click C/C++, and in Define: change STM32F10X_HD to STM32F10X_MD;

C. If you use J-LINK to download, click Debug -> Settings -> Flash Download, and change the stm32 flash under Programming Algorithm to medium capacity.

3. Compile, download and verify.


Keywords:STM32 Reference address:STM32——Modify MCU steps

Previous article:STM32 - tick timer
Next article:About the problem of garbled characters in the first character of the STM32 serial port

Recommended ReadingLatest update time:2024-11-23 19:08

[STM32 motor square wave] Record 2——NVIC interrupt basic settings
NVIC concept: provides an interrupt controller for overall management of exceptions, called "embedded vectored interrupt controller". In simple terms, it is a module that provides and handles internal interrupts of the MCU. NVIC library functions: Interrupt Priority: Before configuring NVIC, you need to understand
[Microcontroller]
[STM32 motor square wave] Record 2——NVIC interrupt basic settings
STM32 study notes - SystemInit() function
Lesson 1 Clock Frequency        The internal 8M oscillator of STM32F103 can reach a maximum of 72M after frequency multiplication. Currently, the maximum frequency of TI's M3 series chips can reach 80M.        In the stm32 firmware library 3.0, the selection of clock frequency has been greatly simplified. A lot of o
[Microcontroller]
STM32RTC real-time clock
I use the STM32 library function: Two knowledge points:       1. RTC clock block diagram analysis (important)       2. How is the time displayed (brief analysis) 1. RTC clock block diagram analysis (important) First, let's get familiar with a few knowledge points:       1. The real-time clock (RTC) of STM32 is an inde
[Microcontroller]
STM32RTC real-time clock
STM32 serial port baud rate setting problem under 12M crystal oscillator
Using an external 12MHz crystal oscillator will cause many problems, such as incorrect USART baud rate, inaccurate Systick timing, etc. This situation can be found in both actual debugging and software simulation. In fact, this cannot be blamed on ST officials. We must affirm the efforts made by ST officials to facili
[Microcontroller]
STM32 system clock setting, using external active crystal oscillator related configuration issues
I encountered a problem when debugging the STM32 system clock setting: TIM2 timing 1Ms, TIM2 interrupt service function time++, LED state changes when time=100. After the program runs, I found that the LED does not flash according to the 0.1S time, but flashes very slowly. The program search found that when the system
[Microcontroller]
STM32 firmware library file tree and detailed structure
STM32 firmware library file tree and detailed composition (library version: STM32F10x_StdPeriph_Lib_V3.5.0) After the library is decompressed, all folders are structured as follows: ///////////////////////////////////////////////////// ///////////////////////////////////////////////
[Microcontroller]
STM32 firmware library file tree and detailed structure
Showcasing 15 years of innovation achievements with STM32 ecosystem partners
Showcasing 15 years of innovation achievements with STM32 ecosystem partners 2022 STM32 China Online Technology Week focuses on industry and energy, artificial intelligence and smart travel, smart Internet of Things, information security and functional safety, ecology and innovation During
[Embedded]
Using STM32 as the core control chip to implement gate measurement technology analysis solution
In electronic engineering, resource exploration, instrumentation and other related applications, frequency measurement is one of the most basic and common measurements in electronic measurement technology, and frequency meter is also an indispensable measurement tool for engineering technicians. However, traditional
[Microcontroller]
Using STM32 as the core control chip to implement gate measurement technology analysis solution
Latest Microcontroller Articles
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号