Related settings when KEIL 5 downloads the program to the STM32F103ZET6 chip

Publisher:w2628203123Latest update time:2018-08-14 Source: eefocusKeywords:KEIL  STM32F103ZET6 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

1. Click the magic wand pointed by the arrow to open the project settings. (You can also open the magic wand under Project)



2. Under the Device tab, select the chip used in the project. On the right is the relevant information about the selected chip (I use STM32F103ZET6, select STM32F103ZE)



3. The crystal oscillator under the Target tab is related to software simulation. We download it to the hardware and then debug it without setting it. The starting address and size of ROM and RAM are as follows. They refer to the starting address and size of ROM and RAM of the actual hardware. The default is OK.



4. The Output tab is as follows, turn on Debug information and function jumps when reading code



5. Under the Listing tab, select all the ones in the red box. The purpose is to record detailed information (in the project.map file) when the program is finally linked. My English is not very good, so some translations may not be very accurate.



6. C/C++ tab:

    The purpose of adding the USE_STDPERIPH_DERIVER string is to include the stm32f10x_conf.h header file (the string can be found in the stm32f10x.h file). The stm32f10x_conf.h header file contains the header files of the standard peripheral drivers. When you need to use a standard peripheral, you only need to add the corresponding macro definition.

    The optimization level is usually set to the default level during normal debugging. It can be adjusted appropriately when the project is completed. It is best to turn on all warning messages during normal debugging. It is important to note the include file path at the bottom. You need to add all the header file paths used in the project (usually header files added by users themselves)



7. All the defaults in the Linker tab correspond to the settings in ROM and RAM in the previous Target tab.



8. The left side of the Debug tab is software simulation, and the right side is hardware simulation (it is more appropriate to call it hardware debugging, which is mainly to correspond to the left side). Select the corresponding debugger in hardware debugging (I use ST-Link)



Click the Settings button in the hardware debugging section in the figure above, and a dialog box as shown below will pop up. Select SW mode under the Debug tab (note that it is the Debug tab in the dialog box that pops up after clicking Settings).



Select the Flash Download tab in the dialog box above, check and add as shown in the figure below.



At this point, all download-related settings have been completed. You only need to compile without errors or warnings to download the program to the STM32 chip.


Keywords:KEIL  STM32F103ZET6 Reference address:Related settings when KEIL 5 downloads the program to the STM32F103ZET6 chip

Previous article:STM32F103ZET6 boot mode
Next article:STM32F4XX IO port clock multiplexing function

Recommended ReadingLatest update time:2024-11-15 13:28

The epidemic has hit the automotive market, and Infineon expects its sales to drop by 5% year-on-year in the fiscal year
According to Reuters, Infineon Technologies AG said on Monday local time that it expects annual sales to fall 5% in the fiscal year ending September 30 due to the impact of the COVID-19 epidemic, instead of the previously expected 5% increase. It is understood that due to the impact of the epidemic, automobile product
[Mobile phone portable]
Circuit design diagram of two sets of 15V DC and one set of 5V switching power supply
  As shown in the figure, J1 is the No. 1 and No. 2 terminals of the instrument. VD3, C7, C9, etc. rectify and filter the AC voltage output by the low-voltage winding of transformer T1, and then output 15V DC power for one group of circuits; VD4, C6, C8, etc. form another group of DC power supplies. GND1 and GND2 are
[Power Management]
Circuit design diagram of two sets of 15V DC and one set of 5V switching power supply
Jingxun Juzhen's new FBAR RF filter helps the 5G market
In recent years, the scale of the RF front-end market has continued to expand. According to the Yole Development report, the filter market will grow by about 3 times from 2017 to 2023. Not long ago, Jingxun Juzhen Technology Co., Ltd. officially released its independently developed B41 full-band FBAR filter in Zhuhai.
[Mobile phone portable]
Jingxun Juzhen's new FBAR RF filter helps the 5G market
The world's first 5G driverless bus line opened in Henan Province
The world's first 5G driverless bus line to be trial-run on an open road has officially started. Witnessed by guests from all walks of life attending the launch ceremony of the Henan Province 5G+ Demonstration Project, Huang Qiang, Executive Vice Governor of the Henan Provincial Government, issued a departure order th
[Embedded]
The world's first 5G driverless bus line opened in Henan Province
Description of printf() function in Keil C51
In C51, when using the printf() function for formatted output, the format control characters are different from those in ANSI C. In the format control characters, b stands for byte Output uint8_t in decimal: %bu Output int8_t in decimal: %bd #include   void tst_printf (void) {   char a = 1;   int b = 12365;
[Microcontroller]
Does the lack of 5G have a big impact on the iPhone 11?
The release of Apple iPhone 11 has once again sparked heated discussions, and the lack of 5G has become the biggest controversy and complaint about this generation of iPhone. However, judging from the current hot pre-sales, people don't seem to care much about the lack of 5G in iPhone 11. Many people are confused abou
[Mobile phone portable]
Research on 5G+ horizontal balance monitoring system to improve the operation safety of vehicle-mounted mobile substation
0 Introduction A mobile substation is a small mobile substation with a compact structure, convenient transportation and quick installation. The electrical equipment mainly consists of high-voltage switches, current transformers, pressure transformers, isolating switches, grounding transformers, main transformer
[Embedded]
Research on 5G+ horizontal balance monitoring system to improve the operation safety of vehicle-mounted mobile substation
TrendForce: DDR3 prices are expected to rise by 0-5% in the second quarter
On March 7, TrendForce research showed that in the PC or server field in 2022, both Intel and AMD will launch new CPUs that support the DDR5 generation. Therefore, memory suppliers led by Korean manufacturers will gradually shift their focus to DDR5 while reducing the supply of old-generation DDR3. TrendForce believe
[Mobile phone portable]
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号