cspybat.exe를 사용한 명령줄 디버깅

기술노트 26068

아키텍처:

All

컴포넌트:

debugger

업데이트:

2018-02-28 오전 1:55

Introduction

In some cases, downloading and debugging the application with cspybat.exe fails, even though it works to download and debug the application from inside IAR Embedded Workbench.

Reason for the issue

Something differs between the settings in the cspy.bat file and the settings in the IDE.

Solution

To create a correct contents in the cspy.bat file(s), make sure to do the following:

  1. Delete all *.bat file(s) in <project directory>\settings.
  2. From inside the IDE, build and debug the application.
  3. Go to <project directory>\settings and have a look at the generated file <project>.cspy.bat.
    Note that some versions of IAR Embedded Workbench generates a cspy.bat file that needs some editing, please check the comments in the file. Also note that some versions of IAR Embedded Workbench generates <project>.driver.xcl, and <project>.general.xcl files, that contain the command line options.
  4. In a command prompt, go to <project directory>\settings and do:
    <project>.cspy.bat <path to output file>
    For a "GettingStarted" project in IAR Embedded Workbench for ARM, the syntax is:
    GettingStarted.cspy.bat "..\Flash Debug\Exe\GettingStarted.out"

Documentation

CSpybat is documented in IAR Embedded Workbench manuals. Depending on the version, the location is:

  1. Help -> Embedded Workbench Debugging Guide, or Embedded Workbench User Guide, chapter 'The C-SPY Command Line Utility—cspybat'.
  2. In another pdf file provided with the installation.
  3. In the html files provided with the installation.

 

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

죄송하지만, 당사 사이트에서는 Internet Explorer를 지원하지 않습니다.보다 편안한 사이트를 위해 Chrome, Edge, Firefox 등과 같은 최신 브라우저를 사용해 주시길 부탁드립니다.