Difference between revisions of "Using Flashloader with different IDEs"

From SEGGER Wiki
Jump to: navigation, search
 
(2 intermediate revisions by one other user not shown)
Line 5: Line 5:
 
If your flashloader package does not already include such a file, check the J-Link User Manual (UM08001) for more information.
 
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:
+
A JLinkDevices.xml should be loaded from these locations:
  +
* [[J-Link_Device_Support_Kit#JLinkDevices_folder | JLinkDevices]] folder (recommended)
* The J-Link Library Directory
 
* The J-Link Software Installation Directory
 
 
* The J-Link Settings File directory
 
* The J-Link Settings File directory
 
* A directory added with the command JLinkDevicesXMLPath
 
* A directory added with the command JLinkDevicesXMLPath
  +
* The J-Link Library Directory (deprecated and no longer recommended)
  +
* The J-Link Software Installation Directory (deprecated and no longer recommended)
   
 
If the same memory region for the same device is specified in multiple files, the latter loaded description is used.
 
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.
 

Latest revision as of 09:50, 9 December 2022

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 should be loaded from these locations:

  • JLinkDevices folder (recommended)
  • The J-Link Settings File directory
  • A directory added with the command JLinkDevicesXMLPath
  • The J-Link Library Directory (deprecated and no longer recommended)
  • The J-Link Software Installation Directory (deprecated and no longer recommended)

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