This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

  • TI Thinks Resolved

MSP430F6736A: flash while executing the code

Prodigy 560 points

Replies: 1

Views: 97

Part Number: MSP430F6736A

Hi Team, 

My customer has two questions about our device for new 3 phase smart e-meter project and i would be very happy if you can support:

"

1- Internal EEPROM (to short saving time at power cut for the important data)

2- Write in flash while executing the code.(flashing new program while meter functionality is running and switch to the new downloaded programs at specific time)

"

Could you please assist here?

Thanks in advance

  • Hello,

    Furkan Sefiloglu
    1- Internal EEPROM (to short saving time at power cut for the important data)

    You can use the internal Flash memory to periodically back up the data in case of power failure, but there's a limited number of erases. You'd probably want to use a memory wear leveling algorithm.

    MSP430 FLASH/INFOMEM wear leveling possibility

    You could also use the ADC or SVS to trigger the backup when the power supply is falling. An external option would be to use another MSP430 FRAM device since they can be used in place of EEPROM due to the higher number of writes compared to Flash.

    EEPROM Emulation Using Low-Memory MSP430™ FRAM MCUs

    EEPROM Emulation and Sensing With MSP430 FRAM Microcontrollers

    Furkan Sefiloglu
    2- Write in flash while executing the code.(flashing new program while meter functionality is running and switch to the new downloaded programs at specific time)

    You can write to Flash, but you may need to disable interrupts to ensure it doesn't get interrupted. If you're referring to a firmware update in the field, you may want to consider using the BSL.

    Regards,

    James

    Check out our new Answers to Common Sigma-Delta ADC Questions on MSP MCUs app note!

    NOTE: Replies will be delayed due to US holiday.

This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.