Please tell me where the stack pointer is initially set in the HEW generation source code ? (Using SH-3,SH3-DSP and SH-4)
Initial setup of the stack pointer is at the head of PowerON_Reset function in resetprg.c. Compiler automatically generates it by #pragma entry specification. You can check it by disassembling the head of the PowerON_Reset function.
|C/C++ Compiler Package for SuperH Family|