...have variables which aren't initialized and survive a reset?

Comments

4 comments

  • Avatar
    Jmfrey

    This does not work for me on MSP430. It tells me that I have to place the .non_init section. Is there a way to do this whithout having to place sections or mess with linker scripts?

    0
    Comment actions Permalink
  • Avatar
    Paul Curtis

    That's because you are using the MSP430 compiler, not the ARM compiler.  On MSP430, use the NOINIT section

    int x __at "NOINIT";
    0
    Comment actions Permalink
  • Avatar
    Jmfrey

    That does not work. It gives the same error with the new section name.

    0
    Comment actions Permalink
  • Avatar
    Paul Curtis

    Place the NOINIT section in the RAM group.

    0
    Comment actions Permalink

Please sign in to leave a comment.