This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Stack initialization with constant

Doe Keil IDE support initializing stack space with a constant? For example with a #define. If not, please does someone have ARM Cortex M3/M4 assembler code to do that and where should it be located? For example in startup*.s prior to the branch to main?

Parents Reply Children
  • Possibly. Thanks for the pointer Andrew. The problem of stack initialisation now seems to be solved. Keil / ARM advise me I can't use a symbolic name directly but,

    "If you open a Watch window, you can type 'sp' to 'watch' the stack pointer (r13). Then you can
    right-click on 'sp' and navigate to 'Add 'sp' to...' -> Memory 1. The stack pointer, is
    also available in the 'Registers' window."