srv 2 Posted December 19, 2013 Share Posted December 19, 2013 Can anyone please help me how can i store a data/value in MC flash memory during prgram execution and use that value always (means after reset the launchpad)????? i want to store ADC value in my launchpad memory and use that value algin after several reset. Quote Link to post Share on other sites
Rei Vilo 695 Posted December 19, 2013 Share Posted December 19, 2013 Please specify the MCU you're using, so it makes easier to those who would help you to answer the question, as each MCU has its dedicated EEPROM management. Of course, EEPROM management is included as a library in Energia. For MSP430: see https://github.com/energia/Energia/tree/master/hardware/msp430/libraries/MspFlash For Stellaris / Tiva C: see https://github.com/energia/Energia/tree/master/hardware/lm4f/libraries/EEPROM Quote Link to post Share on other sites
srv 2 Posted December 19, 2013 Author Share Posted December 19, 2013 Thank You.i am using msp430 launchpad. Quote Link to post Share on other sites
abecedarian 330 Posted December 19, 2013 Share Posted December 19, 2013 Thank You.i am using msp430 launchpad.Which one? There are two: EXP430G2 and EXP430F5529LP. Also, I believe the MspFlash library only works on the G2 variant. Quote Link to post Share on other sites
energia 485 Posted December 20, 2013 Share Posted December 20, 2013 That's correct. MspFlash only supports MSP430G2 series at the moment. Quote Link to post Share on other sites
Rei Vilo 695 Posted December 22, 2013 Share Posted December 22, 2013 @svr Thank You.i am using msp430 launchpad. Please refer to Information to Provide When Asking for Help. Thank you. Quote Link to post Share on other sites
tranduythai 1 Posted April 12, 2014 Share Posted April 12, 2014 I have just use Energia version E0012, but the example Flash dont work like old version, please check it. Thanks Quote Link to post Share on other sites
abecedarian 330 Posted April 12, 2014 Share Posted April 12, 2014 I have just use Energia version E0012, but the example Flash dont work like old version, please check it. Thanks @@tranduythai http://forum.43oh.com/topic/4824-information-to-provide-when-asking-for-help/ Quote Link to post Share on other sites
tranduythai 1 Posted June 13, 2014 Share Posted June 13, 2014 Hi I use MSP 430G2553 Laughpad V1.5, Energia version E0012. So when i use Flash_read_write is very difficult. Hard to save value to segment of MSP. I have code in CCS, i test it and see it good. And then i convert this code to energia, i see have some mistake. I dont know what this. I think is Watdog, but i cant replace this mictake. Please see and check it for me. Thank Code CCS #include "msp430g2553.h" #include "stdio.h" #include "Library/UART.h" #include "Library/Flash.h" void main(void) { unsigned char Temp[5],TempD[5]; long gtri,temp,temp1; char buff[50]; char i; P1DIR|=BIT6; WDTCTL = WDTPW | WDTHOLD; //Stop Watchdog BCSCTL1 = CALBC1_1MHZ; //2 thanh ghi c Quote Link to post Share on other sites
energia 485 Posted June 13, 2014 Share Posted June 13, 2014 @@tranduythai there is an MSPFLASH library for the 2553: examples->MspFlash Also see this thread: http://forum.43oh.com/topic/5352-writing-to-msp430-flash for a fix in MspFlash library. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.