Keil MDK generates .bin file

Keil usually generates .hex files, but sometimes it is necessary to generate .bin files for use, such as using bootloader to update the app.

Click "options for target" and select "user" on the pop-up page. Check "Run #1" in "After Build/Rebuild" and fill in:

The path of fromelf.exe plus the command (D:\AppPlus\Keil\ARM\ARMCC\bin\fromelf.exe --bin -o) The path to generate the .bin file, this path can be customized (C:\Users\wei. xia\Desktop\1\OBJ\LED.bin) The generation path of the .axf file, which is the path specified under the "Output" tab ( C:\Users\wei.xia\Desktop\1\OBJ\LED.axf ).

Compile the project file, if passed, a .bin file will be generated in the specified path.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325807076&siteId=291194637