Embedded Design Handbook

ID 683689
Date 8/28/2023
Public
Document Table of Contents

4.1.2.2.1. bin2flash Usage Example

To program an arbitrary binary file to flash memory, perform the following steps:

  1. Type the following command to generate your .flash file:
    bin2flash --location=<offset from the base address> \ 
    	-input=<your file> --output=<your file>.flash
  2. Type the following command to program your newly created file to flash memory:
    nios2-flash-programmer -base=<base address> <your file>.flash