Using Command-Line

To link a binary file using Command line, perform the following steps:

  1. Linker recognizes .bin extension as a binary data input file. If binary file has another extension it may not be recognized correctly by the command line linker.
  2. Update linker command file (.lcf) and place .BINARY section into memory. Listing1.1 shows a sample linker command file with .BINARY section.
  3. Add a binary file (.bin) as an input file for linker (MWLDARM.exe) mwldarm main.o c:\bin_data.bin -o myapp.elf commandfile.lcf.