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.

Data wrong in Flash program memory

Other Parts Discussed in Thread: MSP430G2553

hi,

my end customer return our product cause by malfunction,

after checking, the program data which stored in MSP430G2553's Flash memory got some bytes wrong,

i was using the IAR and msp-fet430uif to burn the code into MSP430G2553,

is there any possibility to make this issue happen?

  • Yes, there are many possible causes. Actually, too many of them. You could provide some information to narrow that down.

    Was there any part of your code that accesses the FCTL?
    Was there any word that matches the addresses of the FCTL registers?
    What were the voltage and temperature when you burn the code?
    What was the storage temperature after the code was burn?
    What were the operating voltage and temperature?
    Was the device subject to radiation? High level EMI?
    Was the JTAG Fuse blown?
    Did the BSL allow wrong password without mass erasing?
    The Flash addresses and contents before and after they were changed?
    Anything else that may be relevant?
  • A possible reason for flash corruption is a flash read access (e.g. code execution) during slowly fading supply voltage. It is possible that the CPU still continues to run (more or less) correctly even though the voltage is already below the operating range, in which case the flash controller might be malfunctioning. At least this seems to be the only explanation found in similar threads.
    Either use the internal SVS unit to prevent this (if the MSP has one) or use an external supply voltage supervisor, or route a regulator 'power good' signal to the MSPs reset pin. Or ensure that on power loss, the supply voltage drops instantly (dirty solution, and not 'low-power', but cheap and easy). (Putting the main capacitance before and not behind the power switch will also cause the voltage to drop fast - unless the switch is on while the battery is removed.)

**Attention** This is a public forum