Calling external tools

Technical Note 73942

Architectures:

All

Component:

IDE

Updated:

2018/2/8 6:14

Introduction

There can be an error message after setting up an external tool in the IAR Embedded Workbench.

Discussion

This error message...

The handle is invalid.

...can occur after setting up an external tool at: Tools > Configure Tools...

Example

Specifying Command as follows will lead to the error message:

C:\TEMP\doit.bat $PROJ_DIR$

Suggestions

  • Specify a shell (for example cmd.exe) as Command
    and specify script(s) (for example .bat file(s)) to be called as Argument.
  • Avoid specifying an Argument variable (such as $PROJ_PATH$) as Initial Directory.

The suggestion is to specify Command and Argument as follows:

Command: C:\Windows\System32\cmd.exe

Argument: /C C:\TEMP\doit.bat $PROJ_DIR$

Conclusion

The suggestions above can help when setting up an external tool.

All product names are trademarks or registered trademarks of their respective owners.

很抱歉,该页面尚未翻译成中文。

如果您有任何问题,请联系我们的中国团队

We do no longer support Internet Explorer. To get the best experience of iar.com, we recommend upgrading to a modern browser such as Chrome or Edge.