MSP430F5529: Memory with LEDs

Part Number: MSP430F5529
Other Parts Discussed in Thread: ENERGIA

Tool/software:

Hi,

I'm using the energia program to do a task that I'm having difficulty with. I want 2 my launchpad to have 2 LEDs. When I tell it to, I want one LED be on while the other is off and vice versa. However, I want the MSP to remember which LED was on before it is turned off. So if I tell it to turn on the RED_LED on the launchpad, I want to be able to unplug the launchpad, plug it back in, and the RED_LED turns on even though I didn't tell it to, it remembers how. Does anyone know how they can help? Also like I said I'm using energia, not CCS because I'm more of a C++ programmer more familiar with Arduinos.

  • Hi,

    Sorry, we do not maintain the energia currently, so I am not familiar with this IDE tools.

    For the method to achieve this, using the MSP internal FLASH, and select a blank area to store the status of the LED.

    Everytime, after you manually change the LED status, you can load a new one into the flash memory to record LED status, and then earse the previous status memery address.

    B.R.

    Sal

  • So how would I do this?

  • This would only work if the status was changed infrequently. Flash memory is only good for so many erase cycles. 10,000 minimum

    If that works for you, look for the flash programming examples and use the information memory area.

  • Hi,

    For frequently status changing, it requires EEPROM emulation (We currently maintian the EEPROM emulation solution based on MSPM0 platform) or external EEPROM to do the recording. We do not have examples for this in msp430 but this is the idea to achieve.

    B.R.

    Sal 

**Attention** This is a public forum