Skip to main content
Knowledgebase
Home
Renesas Electronics Europe - Knowledgebase

Stack Pointer in guarded area is displayed when executing program with E8/E8a on H8 family

Last Updated:10/11/2017

Question:

The error message “Stack Pointer in guarded area” is displayed when trying to execute a program with the E8/E8a on a H8 family. How do I avoid it?

Answer:

This error message is displayed, because the value of the stack pointer (ER7) is set to the address of guarded area which user cannot use. In case of a microcomputer which the address space is 64 KB, this error message is displayed when the value of the stack pointer (ER7) is over 64 KB. Also, because an emulator itself uses a user stack when the E8/E8a executes a user program, the initial value of the stack pointer (ER7) is set to the RAM area on creating a workspace. 
However, in case the stack pointer (ER7) becomes odd number or out of 64 KB space due to runaway, the initial value of the stack pointer (ER7) on a H8 family is not determined, so the stack pointer (ER7) is not changed by [Reset CPU]. Therefore in this case, change the value of the stack pointer (ER7) to the value of the internal RAM manually from register window.
Suitable Products
E8a
E8
  • Was this article helpful?