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

Cortex-M: Why did ARM decide to automatically load SP from first entry of the Vector Table?

Why is the stack not set for example by the first command?

I guess it might provide more stability (NMI between reset and stack setup command) but better listen.

 

Parents
  • Not an M expert and here is my understanding:You assumption should be part of the intention. Further more, set SP automatically could make software easier - this allows branch to a C-based initialization routine possible.

Reply
  • Not an M expert and here is my understanding:You assumption should be part of the intention. Further more, set SP automatically could make software easier - this allows branch to a C-based initialization routine possible.

Children
No data