Hi all, i need a help to move my first pass into this world of programming. I use a Cortex-M0 and my question is: how can I access to register R0-R12.. in language C? it's possible? I would save a variable into one register. Thanks bye.
Thanks for all reply! The reasons of my question is that i would save a variable after a reset.
But what does that have to do with register accesses?
The normal way to store variables is to actually use variables...
My intention was to save the specific variable into one register when the reset occurs, because now when reset occurs all variable return to value 0. I don't want to save the variable to flash because i need too flash all page..
My intention was to save the specific variable into one register when the reset occurs ...
Not a very good idea. When the processor resets that register is going to be used by the bootstrap and startup code. Bang goes your precious value.
View all questions in Keil forum