I am using Energia to program MSP430G2553 chip in a BristleBot circuit and I would like to store data in the nonvolatile memory, so next time I turn it on it remembers the inputs. How do I define this in Energia? I couldn't find reference on their website. Thank you!


You don't need to use the Energia libraries all the time; you can access the registers of the flash controller directly.

But Energia also ships with the MspFlash library, which appears to be undocumented. Look at the example code.

| improve this answer | |
  • \$\begingroup\$ Thank you! Can I access the registers of the flash controller directly using C if I write my code in Energia? \$\endgroup\$ – Maria Feb 18 '16 at 12:15
  • \$\begingroup\$ Yes, if you really want to. \$\endgroup\$ – CL. Feb 18 '16 at 12:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.