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