How to generate .bin file using MDK (KEIL5)

Publisher:脑洞飞扬Latest update time:2020-01-19 Source: eefocusKeywords:MDK  KEIL5 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

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.

Keywords:MDK  KEIL5 Reference address:How to generate .bin file using MDK (KEIL5)

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

S3C2440 LCD driver code template (RealView MDK)
A good memory is not as good as a bad pen. In order to facilitate the code review and code reuse in the future, here is the S3C2440 LCD control initialization code. Use the friendly MINI2440 development board, the LCD is 320*240, and the development environment is RealView MDK 4.22. The source code structure is simple
[Microcontroller]
A red cross appears in MDK, but the program compiles normally without errors
The above problem will occur in Keil5. The program will be compiled normally, but a red cross will appear in the program. This is the new synchronous error checking function of Keil. If you turn it off directly, the red cross will not be displayed. Edit - Configurations - Text Completion. However, after turning off
[Microcontroller]
A red cross appears in MDK, but the program compiles normally without errors
Solution to the problem that Keil MDK debugging cannot set breakpoints
The projects I opened before did not have this problem. After downloading a project from the Internet, I prepared to debug it and found that the breakpoints could not be set. I was confused for a long time. The solution is as follows. 、
[Microcontroller]
Solution to the problem that Keil MDK debugging cannot set breakpoints
Migrate the ADS project file of TQ2440 to KEIL5
The routines of TQ2440 are all in the ADS environment. ADS is an antique software. Win7 does not support it, let alone Win10. Considering the needs, I tried to port the project to Keil5. After searching a lot of information, experimenting and modifying, the porting was finally successful. The reference address is atta
[Microcontroller]
Migrate the ADS project file of TQ2440 to KEIL5
STM32 Keil MDK uses JLink to simulate and debug keyboard keys online - detailed explanation with pictures and text
        It turns out that buttons can be debugged online using JLINK! I used to think that buttons can only be debugged by sending key values ​​through the serial port! This is great. Newbies who don't know how to do it should read on!         Note: When debugging a statement that requires a key to be press
[Microcontroller]
STM32 Keil MDK uses JLink to simulate and debug keyboard keys online - detailed explanation with pictures and text
What is the difference between keil5 and keil5 mdk?
From Keil C51 to Keil5 MDK, I have been using Keil for more than ten years without realizing it. Although some new development environments have been added now, Keil should be the most friendly to veteran engineers... Keil has released many versions, and many people are most familiar with Keil C51 and Keil5 MDK. Whe
[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号