Recently, the master asked us to use keil5 to generate a .bin file. However, we searched a lot of information on the Internet and designed it according to the methods on the Internet, but the results were not satisfactory and nothing came out. This morning, after a lot of hard work, I finally generated a .bin file. Although it is a bit long-winded and looks complicated, if you follow the steps step by step, you will find that it is still very simple. I will share it below and hope it can help you. Due to my lack of language and ability, if there are any mistakes, I would like to ask the big guys to correct me.
There are two ways to produce .bin files. One is to open fromelf.exe in the installation path, and the other is as shown in the figure below. I will introduce all my methods below.
Click the User column, check Run#1, and fill in the path to generate .bin in the box behind. My path is:
fromelf(a space) --bin(a space) --output(a space) .gpioshurigpioshuri.bin(a space) .gpioshurigpioshuri.axf
The fromelf (a space) --bin (a space) --output (a space) . are fixed formats and do not need to be modified. At the same time, it should be noted that there are four spaces in the path. The first gpioshuri is the name of the folder, which can be selected according to personal projects. The second is the file name of the .bin file. The first gpioshuri is the folder where the .axf file is located. .axf has been generated and can be found in the MDK folder.
The above is theory, now let’s put it into practice.
At the beginning, there is no .bin file in the gpioshuri folder. In Keil, click the select button in the upper left corner to open the .axf file.
Set the .bin path
Compile
Open the folder where it is located. Mine is in the gpioshuri folder.
By comparison, we can see that the .bin file we need has been generated.
Previous article:The stm8 was ok at the beginning of burning using iar, but the download failed during use. Solution
Next article:STM8 MCU STVD environment new project notes
Recommended ReadingLatest update time:2024-11-16 12:27
- Popular Resources
- Popular amplifiers
- MCU C language programming and Proteus simulation technology (Xu Aijun)
- 100 Examples of Microcontroller C Language Applications (with CD-ROM, 3rd Edition) (Wang Huiliang, Wang Dongfeng, Dong Guanqiang)
- Principles and Applications of Single Chip Microcomputers and C51 Programming (3rd Edition) (Xie Weicheng, Yang Jiaguo)
- Home Weather Station Engineering Code Based on STM32F411+BME680
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- C2000 built-in comparator error sources and correction methods--F28004x, F2807x, F2837x
- Problems with burning programs
- Common problems and countermeasures for CCS commissioning
- Huada
- Introduction to the Powerpad function of the sharing chip
- Configuration and precautions of COFF in Buck LED driver chip with COFT control mode
- Android Bluetooth Low Energy BLE Development Notes
- How to train your programming thinking
- Fast multiplexing within and between boards
- vl813 schematic diagram solution sharing