首页 > 系统服务 > 详细

IAR KEIL ECLIPSE使用JlinkScript文件进行调试

时间:2018-11-12 10:37:13      阅读:634      评论:0      收藏:0      [点我收藏+]

转载自:https://wiki.segger.com/Using_J-Link_Script_Files

Using J-Link Script Files

 
 

In some IDEs, the J-Link script file can be configured directly (e.g. in the project file). If the IDE does not offer a native J-Link script file configuration option, there are some alternative options which can be used to use J-Link script files anyhow. For further information regarding this, please refer to Using J-Link Script Files#Generic.

Please note that there are two different kind of script files:

  • Plaintext script files (*.JLinkScriptFile)
  • Pre-compiled script files (*.pex)

Both script file types are accepted by the DLL.

Embedded Studio

To use a .JLinkScript file in Embedded Studio simply go to the project settings Project->Edit Options... and set the J-Link script file path under Debug->J-Link->Script File

The absolute path on the drive must be used. Note that macros can be used (e.g. "$(ProjectDir)/MyScript.JLinkScript").

Ozone

To use a .JLinkScript file in Ozone first a Ozone project needs to be created. Next the .jdebug file needs to be edited. To set the J-Link script file function Project.SetJLinkScript(); needs to be used.

e.g. Project.SetJLinkScript("./Example.JLinkScript");

Either the absolute path on the drive or the relative path in regards to the .jdebug file can be used.

This function can be called in any of the Ozone project functions. More information can be found in the Ozone user manual.

IAR EWARM

https://wiki.segger.com/IAR_EWARM#Using_J-Link_script_files

Keil MDK

https://wiki.segger.com/Keil_MDK#Using_J-Link_Script_Files

Eclipse

https://wiki.segger.com/Eclipse#Using_J-Link_script_files

Generic

If no J-Link settings file is present, "Default.JLinkScript" is loaded if present in the same directory as the J-Link DLL.
If a J-Link J-Link settings file is present, but no script file is specified inside of the script file, "<Name of the J-Link settings file>.JLinkScript" is loaded if present in the same directory as the J-Link settings file.
Alternatively, a J-Link script file can be specified by using one of the following ways:

  1. Via J-Link settings file:
    1. Add or edit the line
    2. "ScriptFile="<path to script file""
      
    3. (e.g. ScriptFile="C:\Work\Test.jlinkscript") to the [CPU] section of the J-Link settings file
  2. Via J-Link command strings
    1. Execute the command string
    2. "ScriptFile = <path>"
      
    3. e.g. ScriptFile = C:\Work\Test.jlinkscript
  3. Via the J-Link control panel
    1. Specify the path to the J-Link script file in the tab Settings of the J-Link control panel
      技术分享图片 
 

IAR KEIL ECLIPSE使用JlinkScript文件进行调试

原文:https://www.cnblogs.com/wzd5230/p/9944647.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!