Question: how to create axf file in keil?
Answer:  Open the project you want to use and go to Projects->Options for target 'project_name'...
 In the Output tab, make sure the Create HEX file box is checked.
 Build the project. Now you can find an . ... 
 In MSDOS prompt, use the following command to convert the .axf file to a .bin file: