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.

flash programing cumulative programming time

Hi

What happens if during flash program, using the block write method, you stop emulation? The cumulative programming time will be exceeded or emulator will stop the flash programming  and remove the programming voltage?

It is safe to debug code using step-by-step functionality?

Best regards

AES

  • Even if it is safe to do so, I don't see any reason to do it.
  • In block write mode, programming voltage is applied when the first byte is written to the block, and removed from the block when either another block is written or the write mode is disabled.
    The debugger halts the CPU, but does not deactivate block write mode.
    It is not safe to single-step through flash write code, whether running form flash nor from ram.

    if you exceed the cumulative writing time, written flash content is not reliable. Its retention time may decrease significantly, or it may even happen that unprogrammed bits switch to '0'. Flash will recover on next erase cycle, but applying the programming voltage for a prolonged time will also stress the flash cell insulation as if it was programmed (and erased) many times, reducing the number of available write cycles.

**Attention** This is a public forum