NEC ELECTRONICS GLOBAL
nec electronics global
HOME
APPLICATIONS
PRODUCTS
TECHNOLOGY
SUPPORT
BUY ONLINE
NEWS & EVENTS
ABOUT US
header
GO
AdvancedParametric
SITE MAP CONTACT US

[ID78K4] Setting Debug Environment

Contents

    
FAQ-ID = ID_Setting-nnnn
0530: Error message "1004(F): Illegal condition." is displayed when the ID78K4 is used.
ID_Setting
-0530
Error message "1004(F): Illegal condition." is displayed when the ID78K4 is used.
Q1
Error message

"1004(F): Illegal condition."

is displayed if the environment is set as follows in the configuration dialog box for the ID78K4 and the button is clicked.

[Settings]
Location: 00H
Memory Attribute: Target
Mapping Address: 10000-FFFFF

A1
The above error message is displayed because there is a restriction that an environment set in the configuration dialog box is not correctly mapped even if it is stored in a project file.

In this case, avoid the error by using a hook procedure.
By using a hook procedure, the value of registers can be changed before a program is downloaded or after the CPU is reset.
The hook remains valid until the debugger is terminated.

Follow the steps below to use the hook procedure.

  1. Create a file of the following contents, and then save it in the directory that contains the project file in which an object file to be downloaded is specified.
    The file name should be "project file name.tcl" .
      ------------------------------
      proc BeforeDownload {} {
          map -target 0x10000 0xfffff
      }
      proc AfterCpuReset {} {
      }
    
      proc BeforeCpuRun {} {
      }
    
      proc AfterCpuStop {} {
      }
      ------------------------------
    
      BeforeDownload FHook before program downloading
      AfterCpuReset  FHook after CPU reset
      BeforeCpuRun   FHook before start of execution
      AfterCpuStop   FHook after break
    
  2. When the debugger is activated the second time, the hook is set immediately before the object file is downloaded, and mapping is correctly made.
    Note that Location in the configuration dialog box must be set to "00H".

-78K4-

Is this information useful for you ?
back to top  
(2006/07)









































 LEGAL  RSS Feeds       © 1995-2008  NEC Electronics Corporation