Quantcast
Channel: MSP430 Technical Forums
Viewing all articles
Browse latest Browse all 2077

Problems understanding MspFlash

$
0
0

Hello,

 

I'm using a Rev 1.5 MSP430G2 with Energia E0012 (to get that out of the way).

 

I'm using the flash_readwrite.ino example on github as my reference.

 

When you use program memory with MspFlash, can you use the const char array (data in the example) in your program?

If so, does it get updated when you call write or only after a reset?

 

The reason I ask is I'd like to have a 10 element array that is essentially non-volatile. I'd like to be able to set calibration values in this array, and use them during my program. I'd also like to be able to run a calibration routine, which would change those values, then continue running. Would it be possible to use program memory this way? Or would it be better to use the info segments and just keep a working copy of the array in memory?

 

Thanks!


Viewing all articles
Browse latest Browse all 2077

Trending Articles