Calling external tools

Technical Note 73942

Targets:
All

Component:
IDE

Updated:
6/18/2013 10:56 AM

Introduction

There is the message

The handle is invalid.

after setting up an external tool using the menu item:

Tools -> Configure Tools...

in IAR Embedded Workbench.

Possible solution

  • 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.

Failing Example

Specifying Command

C:\TEMP\doit.bat $PROJ_DIR$

leads to the error message

The handle is invalid.

OK Example

Specifying Command

C:\Windows\System32\cmd.exe

and Argument

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

is OK.

 

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

Related Tech Notes

© IAR Systems 1995-2016 - All rights reserved.