AnsweredAssumed Answered

read the stack content of stm8l152

Question asked by jay.wong on Jun 6, 2014
I've got a problem of using stm8l152.  The stack content could be successfully read out via SP when i use simulator debugging, and it failed when i switch to hardware online debugging with a st-link. Here is code:
stack_content = *(uint16_t *)(*(uint16_t *)0x7f08 + 2);
IDE: IAR 1.40.1
Thanks for your replies.