Using Flashloader with different IDEs

From SEGGER Wiki
Revision as of 10:22, 29 July 2020 by Nino (talk | contribs)
Jump to: navigation, search

For officially supported device, the flashloaders which are available, are already configured to be used by the J-Link software. Other flashloaders for new devices or additional memory regions can be added.

New devices are always described in an xml file JLinkDevices.xml. If your flashloader package does not already include such a file, check the J-Link User Manual (UM08001) for more information.

A JLinkDevices.xml can be loaded from these locations:

  • The J-Link Library Directory
  • The J-Link Software Installation Directory
  • The J-Link Settings File directory
  • A directory added with the command JLinkDevicesXMLPath

If the same memory region for the same device is specified in multiple files, the latter loaded description is used.

Adding a Flashloader to an Embedded Studio Project

Embedded Studio uses a J-Link settings file. It is created in the project directory. To add a flashloader to an Embedded Studio Project, copy the JLinkDevices.xml and the referenced flashloader into the project directory.

Adding a Flashloader to an Ozone Project

To use a flashloader in Ozone, the path for the JLinkDevices.xml has to be set via a J-Link command Exec.Command() in the Ozone project file. Copy the JLinkDevices.xml and the referenced flashloaders into the project directory and add Exec.Command("JLinkDevicesXMLPath=$(ProjectDir)/JLinkDevices.xml"); to BeforeTargetConnect().

Adding a Flashloader globally

To use a flashloader from any debugger or other tool, it can be copied into the J-Link installation directory. Copy the referenced flashloader files and add the description from the JLinkDevices.xml to the JLinkDevices.xml in the installation directory.