Keil uses fromelf to generate bin files

Publisher:MysticMoonLatest update time:2019-04-18 Source: eefocusKeywords:Keil Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

1. The syntax format is as follows:


fromelf [options] input_file


[options] The options are as follows and can be used in combination, separated by spaces:



2. Usage process in Keil


1. Configure Output and generate executable files



aa is the executable file name, and the suffix is ​​axf. That is, after compilation, a file called aa.axf will be generated, and then a bin file will be generated from this file.


2. Configure User and generate bin file



In Keil's "User", you can set the run command. Here, it is set to execute the fromelf command after the compilation is completed. The following is an explanation:


C:KeilARMBIN40fromelf.exe --bin -o: The command means generating a bin file from the executable file.

D:1out33.bin: The path and file name of the generated bin file. 

D:1outaa.axf : The path and file name of the executable file.


After compiling, the 33.bin file will be generated (note that the path is variable).


3. Usage of $L, @L, L in fromelf


$L, @L, and L are used to specify the corresponding path or name.


1. L refers to the axf file path plus the file name.


2. $L refers to the file path of axf, not including the file name.


3. @L refers to the file name of axf, without the suffix of axf.


For example: generate D:1outaa.axf file, then


The content of L is: D:1outaa.axf


The content of $L is: D:1out (including the last "")


@L content: aa


So they can be used to form:


1. fromelf --bin -o "$L@L.bin" "$L@L.axf" means generating a bin file under the same file as axf.


2. fromelf --bin ".obj@L.axf" --output ".obj972.bin"


Keywords:Keil Reference address:Keil uses fromelf to generate bin files

Previous article:LCD timing and configuration of NUC972
Next article:Keil compiles Entry point (0x00100000) lies outside the image. Error

Recommended ReadingLatest update time:2024-11-16 15:03

STM32 mapping of printf under keil environment
Although printf is a standard function in C language, it is for systems with stdin and stdout devices. There is no standard stdin and stdout on embedded platforms. They need to be mapped to an output object after the serial port. However, each embedded platform is different. If there is no support from the operating s
[Microcontroller]
Create a keil project and light up the LED light of the STM32 board
Open the previously created project, as shown in the figure below (the creation of the Keil project is in the previous article, and students who don’t know can turn to the previous article.) (The picture above is a completed project) Then, open the LED light routine in the routine package of the corresponding develo
[Microcontroller]
Use KEIL and Atmel studio to define the array in the Flash area
Introduction: When developing 51 or AVR microcontroller programs, if you need to define a large array or string, the general definition will place these variables that occupy a large amount of memory in RAM, so the RAM is tight, and in serious cases it will cause the program to crash. In this case, we can define these
[Microcontroller]
Use KEIL and Atmel studio to define the array in the Flash area
MCU Development Environment Construction--Keil uVision4 Installation Tutorial
The two most important software for microcontroller development are programming software and downloading software. We use the 51 version of Keil uVision4, also called Keil C51, for programming software. Without further introduction, let's first talk about how to install it. 1) First prepare the Keil uVision4 installat
[Microcontroller]
MCU Development Environment Construction--Keil uVision4 Installation Tutorial
Porting s3c2440 ads program to keil (I) Preliminary completion
1 Add the project to compile just like any other project 2440init.s(8): error: A1023E: File "option.inc" could not be opened:  etc.  Directly put option.inc Memcfg.inc 2440addr.inc directly in the directory of 2440init.s Then compile the current error and it will disappear 出现 .led.axf: Error: L6238E: 2440ini
[Microcontroller]
Porting s3c2440 ads program to keil (I) Preliminary completion
51 MCU uses printf for serial port output in Keil
Recently, some students are troubled by the problem of how to use the serial port of the microcontroller to output and display on the host computer serial port assistant during the learning process of 51 single-chip microcomputer. In fact, many development environments support the use of the most commonly used printf
[Microcontroller]
The use of pointers in Keil C51
  Pointers are a relatively difficult topic in C language. Keil C51 has some differences in pointers from standard C. Today I read some materials and learned about the use of pointers in Keil C51.   Keil51 pointers include two types of pointers: ordinary pointers, compatible with standard C; memory special pointers   
[Microcontroller]
The use of pointers in Keil C51
Mini2440----Building the debugging and downloading environment under Keil for ARM
Off-topic: Recommended compilation environment selection For those who are new to ARM bare metal programming, I would like to remind you about the choice of compilation environment. Currently, there are three mainstream ones: ADS+AXD, KEIL FOR ARM, and IAR FOR ARM. I started using ADS+AXD for learning because it comes
[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号