Flasher/How to create a project configuration

From SEGGER Wiki
Jump to: navigation, search

This guide explains how to create a standalone project configuration for SEGGER's Flashers by using U-Flash or J-Flash.

Introduction

For information about the standalone mode and why it is recommended, please refer to Flasher/FAQ#What is the "standalone mode" and what is special about it.

Once a project configuration was created and sent to the Flasher, it is part of the Flasher project which cannot be used to reconstruct the original project configuration.

Instructions for U-Flash

U-Flash is the recommended configuration program for creating standalone project configurations. However, some devices, e.g. Arm devices, are currently only supported by J-Flash. This is going to be changed in the future, so that all devices are available in U-Flash.

Creating a U-Flash project

  1. Open U-Flash. U-Flash (UniversalFlasher.exe) can be found in the Flasher Software and Documentation Pack.
  2. Click on "Select device" and select the device the Flasher project shall target.
  3. Click on "Select data file" and select the target image.
  4. Click on "Configure project" to configure the project to your needs.
    • On the left, general settings independent of the selected device can be configured.
    • On the right, device specific settings can be configured.
    • Fore more settings, the view can be changed from basic to normal with the drop-down list next to the "Wiring diagram" button at the bottom.
  5. Finally, save the U-Flash project on disk by clicking on the "Save project" button or via the menu bar "File > Save menu".

Sending the project configuration to the Flasher

  1. Open an existing U-Flash project or create a new one as described in #Creating a U-Flash project.
  2. Click on "Select Flasher" and select the Flasher the project configuration shall be sent to.
  3. Click on "Send to Flasher". This sends all required files that are part of the project configuration to the Flasher which is then stored as a Flasher projects in the Flasher's internal flash memory.

Saving the project configuration

The U-Flash project can also be used to save the project configuration on disk.

  1. Open an existing U-Flash project or create a new one as described in #Creating a U-Flash project.
  2. In the menu bar select "File > Save Flasher UNI file..." to save the UNI file to disk.
  3. Then select "File > Save Flasher DAT file..." to save the DAT and PEX file to disk.

Project configurations saved to disk can also be copied manually to a Flasher. Please note that in order to enable the Flasher project it has to be selected via CLI by using the #SELECT <UNI filename> command. Alternatively, the Flasher.ini has to be edited manually to enable the newly copied Flasher project by using the file access mode. For more information on how to copy a project configuration to the Flasher, please refer to Flasher/Download project to Flasher.

Instructions for J-Flash

For instructions on how to use J-Flash to create a standalone project, please refer to UM08022 Flasher#Setting up Flasher for stand-alone mode.

Please note that the programming performed when pressing F7 in J-Flash or controlling J-Flash via command line does not make use of the standalone Flasher projects on the Flasher. Instead all data and information required for programming is sent each time F7 is pressed to the Flasher and is not stored on the Flasher.