Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#3 msp430 reserve ram access

closed
nobody
None
5
2004-02-20
2004-01-21
Jos Rennies
No

Hello,
I am using the msp430 gnu compiler with success in my
project, but now i need to remember 2 integer that will
not be initialized by the complier. I've used the int
RESERVE_RAM(10) main(), which works fine but I can not
access this memory from my cprogram. What can you
advise me to get this access to these ram places?
The idea is to store 2 variables in 2 reserved int
place that will hold information from the c program but
these values my not be overwritten while doing a reset.
Thanks for your support already.
Jos
e-mail : jre@melexis.com

Ps: using the __&stack I can let it work but I think
that the code is not relyable then, because I get
access under the stack pointer which should be above.
eg.
stack=(&__stack);
stack--;
degCF = *stack;

Discussion

  • Dmitry Diky
    Dmitry Diky
    2004-02-20

    Logged In: YES
    user_id=405830

    put you vars into .noinit section.
    Make shure you init them during initial startup.

     
  • Dmitry Diky
    Dmitry Diky
    2004-02-20

    • status: open --> closed