Skip navigation

emFile - NOR Image Creator

Software utility for creating file system images for NOR flash devices

About the utility

The NOR Image Creator is a command line utility which can be used to build a file containing 1-to-1 representation of a NOR flash device (image) with preselected files and directories found on the host computer. The utiliy creates a file on the host computer containing a virtual NOR flash device where files and directories can be stored in the exact same way they are needed on the target device. It is possible to copy files and entire directory trees from the host computer to the created image. The image file created by the NOR Image Creator is a standard binary file which can be flashed directly into the NOR flash of the target via programming tools such as the SEGGER Flasher family

The utility ships in executable form for Windows and Linux operating systems. Separate versions are available for the FAT and the EFS file systems.

User Interface

The interface of the NOR flash image is used like any other command line based program. For the ease of usage many commands are kept similar to their DOS commands.

By entering "?" or just pressing [Enter] an overview of the commands is printed on the screen and should look like the screenshot beneath.

The NOR Image Creator can be started in script mode by starting it with a script file with one command per line. It will then process the commands in the script file and will close gracefully if no errors occurred.

Sample Script File

The following sample shows a simple script file which does the following thing:

  • Creates a NOR flash image file stored to C:\flash.bin
  • Adds a sector block of 4 Megabyte (64 x 64 kByte) to the image
  • Writes the file system information to the image
  • Low-level formats the image
  • High-level formats the image
createimage C:\flash.bin
addsectorblock 0, 64, 10000
init
formatlow
format
addfile C:\Test.txt
addfolder C:\Data\
q