Skip to content
This repository was archived by the owner on Sep 6, 2023. It is now read-only.
This repository was archived by the owner on Sep 6, 2023. It is now read-only.

Cannot flash_erase #139

@LupascuAndrei

Description

@LupascuAndrei

Using the following code:

from esp import * 
def test(st, end):
  for i in range(st, end, 4096):
    try:
      flash_erase(i)
      print('working for ' + str(i))
    except:
      print('not working for ' + str(i))
test(0, 0x400000)

I can see that only a small amount of sectors ( < 5 ) can be erased from the whole flash memory.
I'm new to micropython-esp32, is this an intended flash protection? If so, is there a straightforward way to disable it?
Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions